mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
require rubygems/package where used
* lib/rubygems/commands/unpack_command.rb: 'rubygems/package' is required. fix the failure of `gem unpack` command. * lib/rubygems/source/local.rb: ditto. * lib/rubygems/source/specific_file.rb: ditto.
This commit is contained in:
parent
6566919176
commit
b76630f73e
3 changed files with 5 additions and 0 deletions
|
@ -3,6 +3,7 @@ require 'rubygems/command'
|
||||||
require 'rubygems/version_option'
|
require 'rubygems/version_option'
|
||||||
require 'rubygems/security_option'
|
require 'rubygems/security_option'
|
||||||
require 'rubygems/remote_fetcher'
|
require 'rubygems/remote_fetcher'
|
||||||
|
require 'rubygems/package'
|
||||||
|
|
||||||
# forward-declare
|
# forward-declare
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,8 @@
|
||||||
# The local source finds gems in the current directory for fulfilling
|
# The local source finds gems in the current directory for fulfilling
|
||||||
# dependencies.
|
# dependencies.
|
||||||
|
|
||||||
|
require 'rubygems/package'
|
||||||
|
|
||||||
class Gem::Source::Local < Gem::Source
|
class Gem::Source::Local < Gem::Source
|
||||||
|
|
||||||
def initialize # :nodoc:
|
def initialize # :nodoc:
|
||||||
|
|
|
@ -3,6 +3,8 @@
|
||||||
# A source representing a single .gem file. This is used for installation of
|
# A source representing a single .gem file. This is used for installation of
|
||||||
# local gems.
|
# local gems.
|
||||||
|
|
||||||
|
require 'rubygems/package'
|
||||||
|
|
||||||
class Gem::Source::SpecificFile < Gem::Source
|
class Gem::Source::SpecificFile < Gem::Source
|
||||||
|
|
||||||
##
|
##
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue