Merge RubyGems-3.3.11 and Bundler-2.3.11

This commit is contained in:
Hiroshi SHIBATA 2022-05-02 19:42:15 +09:00 committed by nagachika
parent ec5dae0d81
commit 8ba584ff3c
69 changed files with 1603 additions and 119 deletions

View file

@ -435,6 +435,7 @@ class TestGemCommandsPushCommand < Gem::TestCase
response_mfa_enabled = "You have enabled multifactor authentication but your request doesn't have the correct OTP code. Please check it and retry."
response_success = 'Successfully registered gem: freewill (1.0.0)'
response_profile = "mfa: disabled\n"
@fetcher.data["#{@host}/api/v1/gems"] = [
[response_success, 200, "OK"],
@ -445,6 +446,10 @@ class TestGemCommandsPushCommand < Gem::TestCase
["", 200, "OK"],
]
@fetcher.data["#{@host}/api/v1/profile/me.yaml"] = [
[response_profile, 200, "OK"],
]
@cmd.instance_variable_set :@scope, :push_rubygem
@cmd.options[:args] = [@path]
@cmd.options[:host] = @host