Merge prepare version of RubyGems 3.2.0

This commit is contained in:
Hiroshi SHIBATA 2020-12-08 16:33:39 +09:00
parent 6a6a24df9b
commit 4aca77edde
Notes: git 2020-12-08 17:30:31 +09:00
134 changed files with 2002 additions and 745 deletions

View file

@ -34,6 +34,10 @@ class Gem::Commands::SourcesCommand < Gem::Command
options[:update] = value
end
add_option '-f', '--[no-]force', "Do not show any confirmation prompts and behave as if 'yes' was always answered" do |value, options|
options[:force] = value
end
add_proxy_option
end
@ -71,7 +75,7 @@ class Gem::Commands::SourcesCommand < Gem::Command
Do you want to add this source?
QUESTION
terminate_interaction 1 unless ask_yes_no question
terminate_interaction 1 unless options[:force] || ask_yes_no(question)
end
end
@ -86,7 +90,7 @@ https://rubygems.org is recommended for security over #{uri}
Do you want to add this insecure source?
QUESTION
terminate_interaction 1 unless ask_yes_no question
terminate_interaction 1 unless options[:force] || ask_yes_no(question)
end
end