From 9316aa38859492b06f4339336184fd303a033530 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Sun, 29 Apr 2012 12:45:35 -0700 Subject: * ext/psych/lib/psych/json/yaml_events.rb: implicit styles should not be changeable for JSON events. --- CHANGELOG.rdoc | 5 +++++ lib/psych/json/yaml_events.rb | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.rdoc b/CHANGELOG.rdoc index c48b7aa..ea6c92d 100644 --- a/CHANGELOG.rdoc +++ b/CHANGELOG.rdoc @@ -1,3 +1,8 @@ +Mon Apr 30 04:43:53 2012 Aaron Patterson + + * ext/psych/lib/psych/json/yaml_events.rb: implicit styles should not + be changeable for JSON events. + Sat Apr 7 02:07:00 2012 Aaron Patterson * ext/psych/parser.c: fall back to any encoding if the external diff --git a/lib/psych/json/yaml_events.rb b/lib/psych/json/yaml_events.rb index 01d4660..d054d9b 100644 --- a/lib/psych/json/yaml_events.rb +++ b/lib/psych/json/yaml_events.rb @@ -10,11 +10,11 @@ module Psych end def start_mapping anchor, tag, implicit, style - super(anchor, nil, implicit, Nodes::Mapping::FLOW) + super(anchor, nil, true, Nodes::Mapping::FLOW) end def start_sequence anchor, tag, implicit, style - super(anchor, nil, implicit, Nodes::Sequence::FLOW) + super(anchor, nil, true, Nodes::Sequence::FLOW) end def scalar value, anchor, tag, plain, quoted, style -- cgit v1.2.3