зеркало из https://github.com/github/ruby.git
[rubygems/rubygems] util/rubocop -A
https://github.com/rubygems/rubygems/commit/784e5e2fe5
This commit is contained in:
Родитель
b42f0094ce
Коммит
ce38ad6963
|
@ -348,7 +348,7 @@ if you believe they were disclosed to a third party.
|
|||
|
||||
begin
|
||||
config = self.class.load_with_rubygems_config_hash(File.read(filename))
|
||||
if config.keys.any? { |k| k.to_s.gsub(%r{https?:\/\/}, "").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"
|
||||
return {}
|
||||
else
|
||||
|
|
Загрузка…
Ссылка в новой задаче