ruby-changes:63159
From: bronzdoc <ko1@a...>
Date: Mon, 28 Sep 2020 14:54:44 +0900 (JST)
Subject: [ruby-changes:63159] b83787b1ce (master): [rubygems/rubygems] Make --dry-run flag consistent across rubygems commands
https://git.ruby-lang.org/ruby.git/commit/?id=b83787b1ce From b83787b1ceb4441362fd3d966ce099e360a48646 Mon Sep 17 00:00:00 2001 From: bronzdoc <lsagastume1990@g...> Date: Sun, 30 Aug 2020 23:59:38 -0600 Subject: [rubygems/rubygems] Make --dry-run flag consistent across rubygems commands https://github.com/rubygems/rubygems/commit/addc644cad diff --git a/lib/rubygems/commands/cleanup_command.rb b/lib/rubygems/commands/cleanup_command.rb index b9819a4..996733c 100644 --- a/lib/rubygems/commands/cleanup_command.rb +++ b/lib/rubygems/commands/cleanup_command.rb @@ -10,7 +10,7 @@ class Gem::Commands::CleanupCommand < Gem::Command https://github.com/ruby/ruby/blob/trunk/lib/rubygems/commands/cleanup_command.rb#L10 :force => false, :install_dir => Gem.dir, :check_dev => true - add_option('-n', '-d', '--dryrun', + add_option('-n', '-d', '--dry-run', 'Do not uninstall gems') do |value, options| options[:dryrun] = true end diff --git a/test/rubygems/test_gem_commands_cleanup_command.rb b/test/rubygems/test_gem_commands_cleanup_command.rb index 087d847..47d953d 100644 --- a/test/rubygems/test_gem_commands_cleanup_command.rb +++ b/test/rubygems/test_gem_commands_cleanup_command.rb @@ -22,7 +22,7 @@ class TestGemCommandsCleanupCommand < Gem::TestCase https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_commands_cleanup_command.rb#L22 end def test_handle_options_dry_run - @cmd.handle_options %w[--dryrun] + @cmd.handle_options %w[--dry-run] assert @cmd.options[:dryrun] end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/