mirror of
https://github.com/ruby/ruby.git
synced 2025-09-21 03:24:00 +02:00
Merge RubyGems-3.3.20 and Bundler-2.3.20
This commit is contained in:
parent
44c926f3a9
commit
522b75f1b6
135 changed files with 1131 additions and 613 deletions
|
@ -82,7 +82,7 @@ Do you want to add this source?
|
|||
def check_rubygems_https(source_uri) # :nodoc:
|
||||
uri = URI source_uri
|
||||
|
||||
if uri.scheme and uri.scheme.downcase == "http" and
|
||||
if uri.scheme && uri.scheme.downcase == "http" &&
|
||||
uri.host.downcase == "rubygems.org"
|
||||
question = <<-QUESTION.chomp
|
||||
https://rubygems.org is recommended for security over #{uri}
|
||||
|
@ -215,9 +215,9 @@ To remove a source use the --remove argument:
|
|||
def remove_cache_file(desc, path) # :nodoc:
|
||||
FileUtils.rm_rf path
|
||||
|
||||
if not File.exist?(path)
|
||||
if !File.exist?(path)
|
||||
say "*** Removed #{desc} source cache ***"
|
||||
elsif not File.writable?(path)
|
||||
elsif !File.writable?(path)
|
||||
say "*** Unable to remove #{desc} source cache (write protected) ***"
|
||||
else
|
||||
say "*** Unable to remove #{desc} source cache ***"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue