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

* 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,3 +1,7 @@
Mon Nov 10 16:20:42 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
* lib/rubygems/*.rb: Update to RubyGems master(3e36528).
Mon Nov 10 16:09:43 2014 Nobuyoshi Nakada <nobu@ruby-lang.org> Mon Nov 10 16:09:43 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
* signal.c (rb_f_kill): [DOC] mention known signal list. * signal.c (rb_f_kill): [DOC] mention known signal list.

View file

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

View file

@ -265,13 +265,13 @@ class Gem::Specification < Gem::BasicSpecification
# #
# Most gems contain pure Ruby code; they should simply leave the default # Most gems contain pure Ruby code; they should simply leave the default
# value in place. Some gems contain C (or other) code to be compiled into a # value in place. Some gems contain C (or other) code to be compiled into a
# Ruby "extension". The should leave the default value in place unless # Ruby "extension". The gem should leave the default value in place unless
# their code will only compile on a certain type of system. Some gems # the code will only compile on a certain type of system. Some gems consist
# consist of pre-compiled code ("binary gems"). It's especially important # of pre-compiled code ("binary gems"). It's especially important that they
# that they set the platform attribute appropriately. A shortcut is to set # set the platform attribute appropriately. A shortcut is to set the
# the platform to Gem::Platform::CURRENT, which will cause the gem builder # platform to Gem::Platform::CURRENT, which will cause the gem builder to set
# to set the platform to the appropriate value for the system on which the # the platform to the appropriate value for the system on which the build is
# build is being performed. # being performed.
# #
# If this attribute is set to a non-default value, it will be included in # If this attribute is set to a non-default value, it will be included in
# the filename of the gem when it is built such as: # the filename of the gem when it is built such as: