[前][次][番号順一覧][スレッド一覧]

ruby-changes:71643

From: Ashley <ko1@a...>
Date: Wed, 6 Apr 2022 08:55:16 +0900 (JST)
Subject: [ruby-changes:71643] 75083704bf (master): [rubygems/rubygems] Update endpoint

https://git.ruby-lang.org/ruby.git/commit/?id=75083704bf

From 75083704bfeac2fb2a3e104389cd10ddf752b7d2 Mon Sep 17 00:00:00 2001
From: Ashley Ellis Pierce <anellis12@g...>
Date: Tue, 22 Feb 2022 10:26:43 +0000
Subject: [rubygems/rubygems] Update endpoint

https://github.com/rubygems/rubygems/commit/a5a7b3ec96
---
 lib/rubygems/gemcutter_utilities.rb               | 2 +-
 test/rubygems/test_gem_commands_push_command.rb   | 2 +-
 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 https://github.com/ruby/ruby/blob/trunk/lib/rubygems/gemcutter_utilities.rb#L281
   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 https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_commands_push_command.rb#L446
       ["", 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 https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_commands_signin_command.rb#L172
     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
 
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]