diff options
author | Ashley Ellis Pierce <anellis12@gmail.com> | 2022-02-22 10:26:43 +0000 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-04-06 08:54:58 +0900 |
commit | 75083704bfeac2fb2a3e104389cd10ddf752b7d2 (patch) | |
tree | f52612aca4f3fe833cfea0de723f843bfb51f955 | |
parent | ec09b2dba15ce4f47c98cbd5daf1bdbc1852b5e5 (diff) |
[rubygems/rubygems] Update endpoint
https://github.com/rubygems/rubygems/commit/a5a7b3ec96
-rw-r--r-- | lib/rubygems/gemcutter_utilities.rb | 2 | ||||
-rw-r--r-- | test/rubygems/test_gem_commands_push_command.rb | 2 | ||||
-rw-r--r-- | test/rubygems/test_gem_commands_signin_command.rb | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/rubygems/gemcutter_utilities.rb b/lib/rubygems/gemcutter_utilities.rb index 187a4f65fa..80d70c5c90 100644 --- a/lib/rubygems/gemcutter_utilities.rb +++ b/lib/rubygems/gemcutter_utilities.rb @@ -281,7 +281,7 @@ module Gem::GemcutterUtilities end def get_user_mfa_level(email, password) - response = rubygems_api_request(:get, "api/v1/profile") do |request| + response = rubygems_api_request(:get, "api/v1/profile/me") do |request| request.basic_auth email, password end with_response response do |resp| diff --git a/test/rubygems/test_gem_commands_push_command.rb b/test/rubygems/test_gem_commands_push_command.rb index e219ae170e..7efbcc77b4 100644 --- a/test/rubygems/test_gem_commands_push_command.rb +++ b/test/rubygems/test_gem_commands_push_command.rb @@ -446,7 +446,7 @@ class TestGemCommandsPushCommand < Gem::TestCase ["", 200, "OK"], ] - @fetcher.data["#{@host}/api/v1/profile"] = [ + @fetcher.data["#{@host}/api/v1/profile/me"] = [ [response_profile, 200, "OK"], ] diff --git a/test/rubygems/test_gem_commands_signin_command.rb b/test/rubygems/test_gem_commands_signin_command.rb index 7dc5d6d23a..bdd7690c41 100644 --- a/test/rubygems/test_gem_commands_signin_command.rb +++ b/test/rubygems/test_gem_commands_signin_command.rb @@ -172,7 +172,7 @@ class TestGemCommandsSigninCommand < Gem::TestCase ENV['RUBYGEMS_HOST'] = host || Gem::DEFAULT_HOST data_key = "#{ENV['RUBYGEMS_HOST']}/api/v1/api_key" fetcher.data[data_key] = response - profile = "#{ENV['RUBYGEMS_HOST']}/api/v1/profile" + profile = "#{ENV['RUBYGEMS_HOST']}/api/v1/profile/me" fetcher.data[profile] = profile_response Gem::RemoteFetcher.fetcher = fetcher |