mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
parent
ec09b2dba1
commit
75083704bf
3 changed files with 3 additions and 3 deletions
|
@ -281,7 +281,7 @@ module Gem::GemcutterUtilities
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_user_mfa_level(email, password)
|
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
|
request.basic_auth email, password
|
||||||
end
|
end
|
||||||
with_response response do |resp|
|
with_response response do |resp|
|
||||||
|
|
|
@ -446,7 +446,7 @@ class TestGemCommandsPushCommand < Gem::TestCase
|
||||||
["", 200, "OK"],
|
["", 200, "OK"],
|
||||||
]
|
]
|
||||||
|
|
||||||
@fetcher.data["#{@host}/api/v1/profile"] = [
|
@fetcher.data["#{@host}/api/v1/profile/me"] = [
|
||||||
[response_profile, 200, "OK"],
|
[response_profile, 200, "OK"],
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
@ -172,7 +172,7 @@ class TestGemCommandsSigninCommand < Gem::TestCase
|
||||||
ENV['RUBYGEMS_HOST'] = host || Gem::DEFAULT_HOST
|
ENV['RUBYGEMS_HOST'] = host || Gem::DEFAULT_HOST
|
||||||
data_key = "#{ENV['RUBYGEMS_HOST']}/api/v1/api_key"
|
data_key = "#{ENV['RUBYGEMS_HOST']}/api/v1/api_key"
|
||||||
fetcher.data[data_key] = response
|
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
|
fetcher.data[profile] = profile_response
|
||||||
Gem::RemoteFetcher.fetcher = fetcher
|
Gem::RemoteFetcher.fetcher = fetcher
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue