1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/psych/lib/psych/json/tree_builder.rb (start_mapping): tags

should not be included in JSON mapping

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
tenderlove 2011-01-06 02:29:18 +00:00
parent b092e967b0
commit 10284a049a
3 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Thu Jan 6 11:27:01 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/lib/psych/json/tree_builder.rb (start_mapping): tags
should not be included in JSON mapping
Thu Jan 6 09:23:33 2011 Aaron Patterson <aaron@tenderlovemaking.com>
* lib/net/protocol.rb (eof?): BufferedIO should proxy eof? to the

View file

@ -13,7 +13,7 @@ module Psych
end
def start_mapping anchor, tag, implicit, style
super(anchor, tag, implicit, Nodes::Mapping::FLOW)
super(anchor, nil, implicit, Nodes::Mapping::FLOW)
end
def start_sequence anchor, tag, implicit, style

View file

@ -89,6 +89,10 @@ module Psych
end
end
def test_json_dump_exclude_tag
refute_match('TestCoder::InitApi', Psych.to_json(InitApi.new))
end
def test_map_takes_block
coder = Psych::Coder.new 'foo'
tag = coder.tag