summaryrefslogtreecommitdiff
path: root/lib/rubygems/source
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems/source')
-rw-r--r--lib/rubygems/source/local.rb2
-rw-r--r--lib/rubygems/source/specific_file.rb2
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/rubygems/source/local.rb b/lib/rubygems/source/local.rb
index 875e992d85..f68715cdf0 100644
--- a/lib/rubygems/source/local.rb
+++ b/lib/rubygems/source/local.rb
@@ -3,6 +3,8 @@
# The local source finds gems in the current directory for fulfilling
# dependencies.
+require 'rubygems/package'
+
class Gem::Source::Local < Gem::Source
def initialize # :nodoc:
diff --git a/lib/rubygems/source/specific_file.rb b/lib/rubygems/source/specific_file.rb
index a22772b9c0..0905f6d0e9 100644
--- a/lib/rubygems/source/specific_file.rb
+++ b/lib/rubygems/source/specific_file.rb
@@ -3,6 +3,8 @@
# A source representing a single .gem file. This is used for installation of
# local gems.
+require 'rubygems/package'
+
class Gem::Source::SpecificFile < Gem::Source
##