diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-04 00:29:40 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-04 00:29:40 +0000 |
commit | e373d99f356779c1823c81603eaee6ed71cf68f5 (patch) | |
tree | e15086587f691a1f5bd3c7ddbfa38e825828caf6 /lib/rubygems/gemcutter_utilities.rb | |
parent | 984ea2cb815c33cfd50eb103a604e1c7462069a2 (diff) | |
download | ruby-e373d99f356779c1823c81603eaee6ed71cf68f5.tar.gz |
* lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.6.1.
Please see entries of 2.6.0 and 2.6.1 on
https://github.com/rubygems/rubygems/blob/master/History.txt
[fix GH-1270] Patch by @segiddins
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems/gemcutter_utilities.rb')
-rw-r--r-- | lib/rubygems/gemcutter_utilities.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/rubygems/gemcutter_utilities.rb b/lib/rubygems/gemcutter_utilities.rb index 464993b11f..7c6d6bb364 100644 --- a/lib/rubygems/gemcutter_utilities.rb +++ b/lib/rubygems/gemcutter_utilities.rb @@ -115,7 +115,7 @@ module Gem::GemcutterUtilities with_response response do |resp| say "Signed in." - Gem.configuration.rubygems_api_key = resp.body + set_api_key host, resp.body end end @@ -156,5 +156,13 @@ module Gem::GemcutterUtilities end end + def set_api_key host, key + if host == Gem::DEFAULT_HOST + Gem.configuration.rubygems_api_key = key + else + Gem.configuration.set_api_key host, key + end + end + end |