diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-04-17 16:10:26 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-04-19 06:56:17 +0000 |
commit | 7e537e96131fd5f244544d3b07a362a2938ad1a2 (patch) | |
tree | 4bd952290f5a014f8fd2a53610f90df2e0d09424 /lib | |
parent | e684eb9e6126b3cae7d63efca9fe365a22ddefd7 (diff) | |
download | ruby-7e537e96131fd5f244544d3b07a362a2938ad1a2.tar.gz |
[rubygems/rubygems] Only convert old URL key name when it's contained double underscore
https://github.com/rubygems/rubygems/commit/a4bfa2ef94
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bundler/yaml_serializer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/yaml_serializer.rb b/lib/bundler/yaml_serializer.rb index 32a1a8c67b..eab140d5b5 100644 --- a/lib/bundler/yaml_serializer.rb +++ b/lib/bundler/yaml_serializer.rb @@ -58,7 +58,7 @@ module Bundler str.split(/\r?\n/).each do |line| if match = HASH_REGEX.match(line) indent, key, quote, val = match.captures - key = convert_to_backward_compatible_key(key) + key = convert_to_backward_compatible_key(key) if key.match?(/__/) key = key[1..-1].to_sym if key.start_with?(":") depth = indent.scan(/ /).length if quote.empty? && val.empty? |