1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Update to RubyGems 1.3.7.pre.1

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2010-04-22 08:24:42 +00:00
parent d0e5a34ac7
commit 372dcece3f
64 changed files with 759 additions and 240 deletions

View file

@ -75,10 +75,10 @@ class Gem::CommandManager
end
##
# Register the command object.
# Register the Symbol +command+ as a gem command.
def register_command(command_obj)
@commands[command_obj] = false
def register_command(command)
@commands[command] = false
end
##
@ -123,7 +123,7 @@ class Gem::CommandManager
say Gem::Command::HELP
terminate_interaction(0)
when '-v', '--version'
say Gem::RubyGemsVersion
say Gem::VERSION
terminate_interaction(0)
when /^-/
alert_error "Invalid option: #{args[0]}. See 'gem --help'."
@ -161,15 +161,19 @@ class Gem::CommandManager
retried = false
begin
commands.const_get(const_name)
commands.const_get const_name
rescue NameError
if retried then
raise
else
retried = true
raise if retried
retried = true
begin
require "rubygems/commands/#{command_name}_command"
retry
rescue Exception => e
alert_error "Loading command: #{command_name} (#{e.class})\n #{e}"
ui.errs.puts "\t#{e.backtrace.join "\n\t"}" if
Gem.configuration.backtrace
end
retry
end.new
end