Skip to content

Commit

Permalink
Update endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
aellispierce committed Feb 22, 2022
1 parent 08c2d88 commit a5a7b3e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/rubygems/gemcutter_utilities.rb
Expand Up @@ -281,7 +281,7 @@ def get_mfa_params(email, password)
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|
Expand Down
2 changes: 1 addition & 1 deletion test/rubygems/test_gem_commands_push_command.rb
Expand Up @@ -446,7 +446,7 @@ def test_sending_gem_with_no_local_creds
["", 200, "OK"],
]

@fetcher.data["#{@host}/api/v1/profile"] = [
@fetcher.data["#{@host}/api/v1/profile/me"] = [
[response_profile, 200, "OK"],
]

Expand Down
2 changes: 1 addition & 1 deletion test/rubygems/test_gem_commands_signin_command.rb
Expand Up @@ -172,7 +172,7 @@ def util_capture(ui_stub = nil, host = nil, api_key = nil, fetcher = Gem::FakeFe
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

Expand Down

0 comments on commit a5a7b3e

Please sign in to comment.