End of Life Ruby 3.1 has reached end of life and gets no more fixes. 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-3.1.3/lib/rubygems/gemcutter_utilities.rb, line 234
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
#update_scope
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0