mirror of
https://github.com/ruby/ruby.git
synced 2025-08-25 05:55:46 +02:00
Merge prepare version of RubyGems 3.2.0
This commit is contained in:
parent
6a6a24df9b
commit
4aca77edde
Notes:
git
2020-12-08 17:30:31 +09:00
134 changed files with 2002 additions and 745 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue