ruby-changes:7917
From: naruse <ko1@a...>
Date: Sun, 21 Sep 2008 02:58:00 +0900 (JST)
Subject: [ruby-changes:7917] Ruby:r19438 (trunk): * ext/json/ext/parser/parse.c: use ruby_xfree().
naruse 2008-09-21 02:57:51 +0900 (Sun, 21 Sep 2008) New Revision: 19438 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=19438 Log: * ext/json/ext/parser/parse.c: use ruby_xfree(). * ext/json/ext/parser/parse.rl: ditto. * ext/json/ext/parser/unicode.c: ditto. Modified files: trunk/ext/json/lib/json/add/core.rb Index: ext/json/lib/json/add/core.rb =================================================================== --- ext/json/lib/json/add/core.rb (revision 19437) +++ ext/json/lib/json/add/core.rb (revision 19438) @@ -96,7 +96,7 @@ def to_json(*args) klass = self.class.name - klass.to_s.empty? and raise JSON::JSONError, "Only named structs are supported!" + klass.nil? and raise JSON::JSONError, "Only named structs are supported!" { 'json_class' => klass, 'v' => values, -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/