diff --git a/lib/rubygems/commands/unpack_command.rb b/lib/rubygems/commands/unpack_command.rb index f7ffea3e95..938db701e5 100644 --- a/lib/rubygems/commands/unpack_command.rb +++ b/lib/rubygems/commands/unpack_command.rb @@ -3,6 +3,7 @@ require 'rubygems/command' require 'rubygems/version_option' require 'rubygems/security_option' require 'rubygems/remote_fetcher' +require 'rubygems/package' # forward-declare 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 ##