[rubygems/rubygems] Support Symbol and URL keys

https://github.com/rubygems/rubygems/commit/3bda049c73
This commit is contained in:
Hiroshi SHIBATA 2023-04-19 18:56:42 +09:00 коммит произвёл git
Родитель 4bb0e01da2
Коммит b42f0094ce
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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.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