diff --git a/lib/rubygems/commands/update_command.rb b/lib/rubygems/commands/update_command.rb index 14a9cb76f8..facccc5c03 100644 --- a/lib/rubygems/commands/update_command.rb +++ b/lib/rubygems/commands/update_command.rb @@ -36,10 +36,10 @@ class Gem::Commands::UpdateCommand < Gem::Command end add_option("--system [VERSION]", Gem::Version, - "Update the RubyGems system software") do |value, options| + "Update the RubyGems system software") do |value, opts| value ||= true - options[:system] = value + opts[:system] = value end add_local_remote_options diff --git a/lib/rubygems/gemcutter_utilities.rb b/lib/rubygems/gemcutter_utilities.rb index 10e535266d..58a51aad92 100644 --- a/lib/rubygems/gemcutter_utilities.rb +++ b/lib/rubygems/gemcutter_utilities.rb @@ -268,9 +268,9 @@ module Gem::GemcutterUtilities scope_params = { scope => true } else say "Please select scopes you want to enable for the API key (y/n)" - API_SCOPES.each do |scope| - selected = ask_yes_no(scope.to_s, false) - scope_params[scope] = true if selected + API_SCOPES.each do |s| + selected = ask_yes_no(s.to_s, false) + scope_params[s] = true if selected end say "\n" end