summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-04-19 18:56:42 +0900
committergit <svn-admin@ruby-lang.org>2023-04-20 01:57:17 +0000
commitb42f0094ce4198fac535bd69bf173732c0e53ab5 (patch)
tree03bcad5de20b1293a1f12a14043a3fabf4675408 /lib
parent4bb0e01da2083bd537444ce7f27f3e1cdfa23712 (diff)
[rubygems/rubygems] Support Symbol and URL keys
https://github.com/rubygems/rubygems/commit/3bda049c73
Diffstat (limited to 'lib')
-rw-r--r--lib/rubygems/config_file.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/config_file.rb b/lib/rubygems/config_file.rb
index 1261e1e1a6..3e9438ec0e 100644
--- a/lib/rubygems/config_file.rb
+++ b/lib/rubygems/config_file.rb
@@ -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