Skip to content

Commit

Permalink
[rubygems/rubygems] Support Symbol and URL keys
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt authored and matzbot committed Apr 20, 2023
1 parent 4bb0e01 commit b42f009
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubygems/config_file.rb
Expand Up @@ -348,7 +348,7 @@ def load_file(filename)

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
Expand Down

0 comments on commit b42f009

Please sign in to comment.