[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
|
end
|
||||||
|
|
||||||
add_option("--system [VERSION]", Gem::Version,
|
add_option("--system [VERSION]", Gem::Version,
|
||||||
"Update the RubyGems system software") do |value, options|
|
"Update the RubyGems system software") do |value, opts|
|
||||||
value ||= true
|
value ||= true
|
||||||
|
|
||||||
options[:system] = value
|
opts[:system] = value
|
||||||
end
|
end
|
||||||
|
|
||||||
add_local_remote_options
|
add_local_remote_options
|
||||||
|
@ -268,9 +268,9 @@ module Gem::GemcutterUtilities
|
|||||||
scope_params = { scope => true }
|
scope_params = { scope => true }
|
||||||
else
|
else
|
||||||
say "Please select scopes you want to enable for the API key (y/n)"
|
say "Please select scopes you want to enable for the API key (y/n)"
|
||||||
API_SCOPES.each do |scope|
|
API_SCOPES.each do |s|
|
||||||
selected = ask_yes_no(scope.to_s, false)
|
selected = ask_yes_no(s.to_s, false)
|
||||||
scope_params[scope] = true if selected
|
scope_params[s] = true if selected
|
||||||
end
|
end
|
||||||
say "\n"
|
say "\n"
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user