* lib/rubygems/*.rb: Update to RubyGems master(3e36528).

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
hsbt 2014-11-10 07:20:48 +00:00
parent eae536ec3a
commit e899fb19e9
3 changed files with 28 additions and 22 deletions

View file

@ -1,23 +1,25 @@
require 'rubygems/command'
class Gem::Commands::MirrorCommand < Gem::Command
def initialize
super('mirror', 'Mirror all gem files (requires rubygems-mirror)')
begin
Gem::Specification.find_by_name('rubygems-mirror').activate
rescue Gem::LoadError
# no-op
unless defined? Gem::Commands::MirrorCommand
class Gem::Commands::MirrorCommand < Gem::Command
def initialize
super('mirror', 'Mirror all gem files (requires rubygems-mirror)')
begin
Gem::Specification.find_by_name('rubygems-mirror').activate
rescue Gem::LoadError
# no-op
end
end
end
def description # :nodoc:
<<-EOF
def description # :nodoc:
<<-EOF
The mirror command has been moved to the rubygems-mirror gem.
EOF
end
EOF
end
def execute
alert_error "Install the rubygems-mirror gem for the mirror command"
end
def execute
alert_error "Install the rubygems-mirror gem for the mirror command"
end
end
end