mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Import rubygems 1.8.5 (released @ 137c80f)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4752539e3f
commit
d22130922e
103 changed files with 4890 additions and 3599 deletions
|
@ -10,6 +10,7 @@
|
|||
# See LICENSE.txt for permissions.
|
||||
#++
|
||||
|
||||
require "rubygems"
|
||||
require 'rubygems/command_manager'
|
||||
require 'rubygems/config_file'
|
||||
require 'rubygems/doc_manager'
|
||||
|
@ -31,6 +32,7 @@ Gem.load_env_plugins rescue nil
|
|||
class Gem::GemRunner
|
||||
|
||||
def initialize(options={})
|
||||
# TODO: nuke these options
|
||||
@command_manager_class = options[:command_manager] || Gem::CommandManager
|
||||
@config_file_class = options[:config_file] || Gem::ConfigFile
|
||||
@doc_manager_class = options[:doc_manager] || Gem::DocManager
|
||||
|
@ -80,7 +82,7 @@ class Gem::GemRunner
|
|||
|
||||
def do_configuration(args)
|
||||
Gem.configuration = @config_file_class.new(args)
|
||||
Gem.use_paths(Gem.configuration[:gemhome], Gem.configuration[:gempath])
|
||||
Gem.use_paths Gem.configuration[:gemhome], Gem.configuration[:gempath]
|
||||
Gem::Command.extra_args = Gem.configuration[:gem]
|
||||
@doc_manager_class.configured_args = Gem.configuration[:rdoc]
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue