[rubygems/rubygems] Added push_rubygem to default scope at gem signin command

https://github.com/rubygems/rubygems/commit/9b9ba0bf1e
This commit is contained in:
Hiroshi SHIBATA 2025-05-02 15:06:33 +09:00
parent bda2d90969
commit 0761af2399
2 changed files with 2 additions and 2 deletions

View File

@ -319,7 +319,7 @@ module Gem::GemcutterUtilities
end
def get_scope_params(scope)
scope_params = { index_rubygems: true }
scope_params = { index_rubygems: true, push_rubygem: true }
if scope
scope_params = { scope => true }

View File

@ -121,7 +121,7 @@ class TestGemCommandsSigninCommand < Gem::TestCase
assert_match "The default access scope is:", key_name_ui.output
assert_match "index_rubygems: y", key_name_ui.output
assert_match "Do you want to customise scopes? [yN]", key_name_ui.output
assert_equal "name=test-key&index_rubygems=true", fetcher.last_request.body
assert_equal "name=test-key&index_rubygems=true&push_rubygem=true", fetcher.last_request.body
credentials = load_yaml_file Gem.configuration.credentials_path
assert_equal api_key, credentials[:rubygems_api_key]