Skip to content

Commit 7aa564d

Browse files
committed
Fix backwards compatibility for @387ab4e
1 parent 28449c6 commit 7aa564d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/rubygems/psych_tree.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
module Gem
22
if defined? ::Psych::Visitors
33
class NoAliasYAMLTree < Psych::Visitors::YAMLTree
4+
def self.create
5+
new({})
6+
end unless respond_to? :create
7+
48
def visit_String(str)
59
return super unless str == '=' # or whatever you want
610

0 commit comments

Comments
 (0)