Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Gem::GemcutterUtilities#get_scope_params
get_scope_params(scope)
lib/rubygems/gemcutter_utilities.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/rubygems/gemcutter_utilities.rb, line 311
def get_scope_params(scope)
scope_params = {}
if scope
scope_params = { scope => true }
else
say "Please select scopes you want to enable for the API key (y/n)"
API_SCOPES.each do |s|
selected = ask_yes_no(s.to_s, false)
scope_params[s] = true if selected
end
say "\n"
end
scope_params
end
No documentation available
See also
#get_mfa_params
#get_user_profile
#get_key_name
#host
also in
4.1 · 4.0 · 3.4 · 3.2 · 3.1 · 3.0