summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-04-29 12:45:35 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2012-04-29 12:45:35 -0700
commit9316aa38859492b06f4339336184fd303a033530 (patch)
treef47f882d02872b40da55d31cf51c7b009c55bce3
parentb01bf0f960ef4a00155dd383adeb1fc031ae6940 (diff)
downloadpsych-9316aa38859492b06f4339336184fd303a033530.tar.gz
* ext/psych/lib/psych/json/yaml_events.rb: implicit styles should not
be changeable for JSON events.
-rw-r--r--CHANGELOG.rdoc5
-rw-r--r--lib/psych/json/yaml_events.rb4
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 <aaron@tenderlovemaking.com>
+
+ * 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 <aaron@tenderlovemaking.com>
* 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