[rubygems/rubygems] util/rubocop -A --only Lint/ShadowingOuterLocalVariable
https://github.com/rubygems/rubygems/commit/82ed77178d
This commit is contained in:
parent
8260698e74
commit
5efadf8139
Notes:
git
2023-03-23 08:19:25 +00:00
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user