instance method
Gem::GemcutterUtilities#api_key_forbidden?
api_key_forbidden?(response)
lib/rubygems/gemcutter_utilities.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/gemcutter_utilities.rb, line 394
def api_key_forbidden?(response)
response.is_a?(Gem::Net::HTTPForbidden) && response.body.start_with?("The API key doesn't have access")
end
No documentation available
See also
#api_key
#default_host?
#add_otp_option
#fetch_otp
also in
4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0