Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9b9ba0b

Browse files
committed
Added push_rubygem to default scope at gem signin command
1 parent 0e6688a commit 9b9ba0b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/rubygems/gemcutter_utilities.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def pretty_host(host)
319319
end
320320

321321
def get_scope_params(scope)
322-
scope_params = { index_rubygems: true }
322+
scope_params = { index_rubygems: true, push_rubygem: true }
323323

324324
if scope
325325
scope_params = { scope => true }

test/rubygems/test_gem_commands_signin_command.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def test_execute_with_key_name_default_scope
121121
assert_match "The default access scope is:", key_name_ui.output
122122
assert_match "index_rubygems: y", key_name_ui.output
123123
assert_match "Do you want to customise scopes? [yN]", key_name_ui.output
124-
assert_equal "name=test-key&index_rubygems=true", fetcher.last_request.body
124+
assert_equal "name=test-key&index_rubygems=true&push_rubygem=true", fetcher.last_request.body
125125

126126
credentials = load_yaml_file Gem.configuration.credentials_path
127127
assert_equal api_key, credentials[:rubygems_api_key]

0 commit comments

Comments
 (0)