diff options
author | Hiroshi SHIBATA <[email protected]> | 2023-04-18 19:30:39 +0900 |
---|---|---|
committer | git <[email protected]> | 2023-04-19 06:56:23 +0000 |
commit | 40d1a0004041f60301c8090ab8955024ebc35cc2 () | |
tree | 8c5c01f2dd4c041ca2fc0e0c4ec5ccd2a649e590 /lib/rubygems/config_file.rb | |
parent | 62e5ba537acbb439366ddfa99992c1151df55a24 (diff) |
[rubygems/rubygems] Copy YAMLSerializer from Bundler
https://.com/rubygems/rubygems/commit/6a97346708
-rw-r--r-- | lib/rubygems/config_file.rb | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -517,14 +517,14 @@ if you believe they were disclosed to a third party. k.is_a?(Symbol) ? ":#{k}" : k end - require "bundler/yaml_serializer" - Bundler::YAMLSerializer.dump(content) end def self.load_with_rubygems_config_hash(yaml) - require "bundler/yaml_serializer" - content = Bundler::YAMLSerializer.load(yaml) content.transform_keys! do |k| if k.match?(/\A:(.*)\Z/) |