lib/rubygems/gemcutter_utilities.rb in rubygems-update-2.2.5 vs lib/rubygems/gemcutter_utilities.rb in rubygems-update-2.3.0
- old
+ new
@@ -84,10 +84,10 @@
# Signs in with the RubyGems API at +sign_in_host+ and sets the rubygems API
# key.
def sign_in sign_in_host = nil
sign_in_host ||= self.host
- return if Gem.configuration.rubygems_api_key
+ return if api_key
pretty_host = if Gem::DEFAULT_HOST == sign_in_host then
'RubyGems.org'
else
sign_in_host