ruby-changes:36278
From: hsbt <ko1@a...>
Date: Mon, 10 Nov 2014 16:20:55 +0900 (JST)
Subject: [ruby-changes:36278] hsbt:r48359 (trunk): * lib/rubygems/*.rb: Update to RubyGems master(3e36528).
hsbt 2014-11-10 16:20:48 +0900 (Mon, 10 Nov 2014) New Revision: 48359 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48359 Log: * lib/rubygems/*.rb: Update to RubyGems master(3e36528). Modified files: trunk/ChangeLog trunk/lib/rubygems/commands/mirror_command.rb trunk/lib/rubygems/specification.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 48358) +++ ChangeLog (revision 48359) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Mon Nov 10 16:20:42 2014 SHIBATA Hiroshi <shibata.hiroshi@g...> + + * lib/rubygems/*.rb: Update to RubyGems master(3e36528). + Mon Nov 10 16:09:43 2014 Nobuyoshi Nakada <nobu@r...> * signal.c (rb_f_kill): [DOC] mention known signal list. Index: lib/rubygems/specification.rb =================================================================== --- lib/rubygems/specification.rb (revision 48358) +++ lib/rubygems/specification.rb (revision 48359) @@ -265,13 +265,13 @@ class Gem::Specification < Gem::BasicSpe https://github.com/ruby/ruby/blob/trunk/lib/rubygems/specification.rb#L265 # # 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 - # Ruby "extension". The should leave the default value in place unless - # their code will only compile on a certain type of system. Some gems - # consist of pre-compiled code ("binary gems"). It's especially important - # that they set the platform attribute appropriately. A shortcut is to set - # the platform to Gem::Platform::CURRENT, which will cause the gem builder - # to set the platform to the appropriate value for the system on which the - # build is being performed. + # Ruby "extension". The gem should leave the default value in place unless + # the code will only compile on a certain type of system. Some gems consist + # of pre-compiled code ("binary gems"). It's especially important that they + # set the platform attribute appropriately. A shortcut is to set the + # platform to Gem::Platform::CURRENT, which will cause the gem builder to set + # the platform to the appropriate value for the system on which the build is + # being performed. # # 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: Index: lib/rubygems/commands/mirror_command.rb =================================================================== --- lib/rubygems/commands/mirror_command.rb (revision 48358) +++ lib/rubygems/commands/mirror_command.rb (revision 48359) @@ -1,23 +1,25 @@ https://github.com/ruby/ruby/blob/trunk/lib/rubygems/commands/mirror_command.rb#L1 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/