From d9c32d62a06edf6bcfaf357e44173cefd92778ee Mon Sep 17 00:00:00 2001 From: hsbt Date: Fri, 27 Feb 2015 13:00:45 +0000 Subject: * lib/rubygems: Update to RubyGems 2.4.6 and HEAD(800f2e6). Fixed #1159, #1171, #1173 on rubygems/rubygems * test/rubygems: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rubygems/commands/pristine_command.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/rubygems/commands/pristine_command.rb') diff --git a/lib/rubygems/commands/pristine_command.rb b/lib/rubygems/commands/pristine_command.rb index dcd5bb76fb..91308d83f6 100644 --- a/lib/rubygems/commands/pristine_command.rb +++ b/lib/rubygems/commands/pristine_command.rb @@ -21,6 +21,11 @@ class Gem::Commands::PristineCommand < Gem::Command options[:all] = value end + add_option('--skip=gem_name', + 'used on --all, skip if name == gem_name') do |value, options| + options[:skip] = value + end + add_option('--[no-]extensions', 'Restore gems with extensions', 'in addition to regular gems') do |value, options| @@ -109,6 +114,11 @@ extensions will be restored. next end + if spec.name == options[:skip] + say "Skipped #{spec.full_name}, it was given through options" + next + end + if spec.bundled_gem_in_old_ruby? say "Skipped #{spec.full_name}, it is bundled with old Ruby" next -- cgit v1.2.3