Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Gem::GemcutterUtilities#set_api_key
set_api_key(host, key)
lib/rubygems/gemcutter_utilities.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/gemcutter_utilities.rb, line 282
def set_api_key(host, key)
if default_host?
Gem.configuration.rubygems_api_key = key
else
Gem.configuration.set_api_key host, key
end
end
Returns true when the user has enabled multifactor authentication from response text and no otp provided by options.
See also
#rubygems_api_request
#sign_in
#request_with_otp
#stored_api_key_named
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0