From 45d87c9bd41a3563bb1d2090b9fc2b2c5615e8ec Mon Sep 17 00:00:00 2001 From: kwatch Date: Sat, 19 Nov 2016 08:32:32 +0900 Subject: [PATCH 2/9] feat(psych): allow custom Hash object for unknown tagged mapping --- ext/psych/lib/psych/visitors/to_ruby.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/psych/lib/psych/visitors/to_ruby.rb b/ext/psych/lib/psych/visitors/to_ruby.rb index fdd1c83..5ecb7e7 100644 --- a/ext/psych/lib/psych/visitors/to_ruby.rb +++ b/ext/psych/lib/psych/visitors/to_ruby.rb @@ -303,7 +303,7 @@ def visit_Psych_Nodes_Mapping o end else - revive_hash(register(o, {}), o) + revive_hash(register(o, empty_mapping(o)), o) end end -- 2.9.3 (Apple Git-75)