summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2025-05-02 15:06:33 +0900
committerHiroshi SHIBATA <[email protected]>2025-06-30 12:56:50 +0900
commit0761af2399ea215ad954d63b60c3e61eb5185a89 (patch)
tree609831d10a46277ed07d050717507da46985f73a
parentbda2d90969524ba72c92d5834e5d988a6dace79c (diff)
[rubygems/rubygems] Added push_rubygem to default scope at gem signin command
https://github.com/rubygems/rubygems/commit/9b9ba0bf1e
-rw-r--r--lib/rubygems/gemcutter_utilities.rb2
-rw-r--r--test/rubygems/test_gem_commands_signin_command.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems/gemcutter_utilities.rb b/lib/rubygems/gemcutter_utilities.rb
index 8d9a9b2d35..afe7957f43 100644
--- a/lib/rubygems/gemcutter_utilities.rb
+++ b/lib/rubygems/gemcutter_utilities.rb
@@ -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 }
diff --git a/test/rubygems/test_gem_commands_signin_command.rb b/test/rubygems/test_gem_commands_signin_command.rb
index 29e5edceb7..e612288faf 100644
--- a/test/rubygems/test_gem_commands_signin_command.rb
+++ b/test/rubygems/test_gem_commands_signin_command.rb
@@ -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]