mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 05:25:34 +02:00
parent
4bb0e01da2
commit
b42f0094ce
1 changed files with 1 additions and 1 deletions
|
@ -348,7 +348,7 @@ if you believe they were disclosed to a third party.
|
||||||
|
|
||||||
begin
|
begin
|
||||||
config = self.class.load_with_rubygems_config_hash(File.read(filename))
|
config = self.class.load_with_rubygems_config_hash(File.read(filename))
|
||||||
if config.keys.any? { |k| k.include?(":") }
|
if config.keys.any? { |k| k.to_s.gsub(%r{https?:\/\/}, "").include?(":") }
|
||||||
warn "Failed to load #{filename} because it doesn't contain valid YAML hash"
|
warn "Failed to load #{filename} because it doesn't contain valid YAML hash"
|
||||||
return {}
|
return {}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue