diff options
author | Hiroshi SHIBATA <[email protected]> | 2023-03-16 13:08:50 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2023-03-17 18:50:55 +0900 |
commit | 0b632b9cddef76514635ad460d40b3a8d346602f () | |
tree | 33a2b39d30bb0c3de6600de132c7f6a4cda4e775 /lib/rubygems/gemcutter_utilities.rb | |
parent | 567db6064baf572e3510c0322ec536ad84c81d57 (diff) |
[rubygems/rubygems] util/rubocop -A --only Style/ClassCheck
https://.com/rubygems/rubygems/commit/1c3356a872
-rw-r--r-- | lib/rubygems/gemcutter_utilities.rb | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -116,7 +116,7 @@ module Gem::GemcutterUtilities end def mfa_unauthorized?(response) - response.kind_of?(Net::HTTPUnauthorized) && response.body.start_with?("You have enabled multifactor authentication") end def update_scope(scope) @@ -319,6 +319,6 @@ module Gem::GemcutterUtilities end def api_key_forbidden?(response) - response.kind_of?(Net::HTTPForbidden) && response.body.start_with?("The API key doesn't have access") end end |