yajl-ruby 0.6.2 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.md +3 -0
- data/VERSION.yml +1 -1
- data/lib/yajl.rb +1 -1
- data/lib/yajl/json_gem/encoding.rb +1 -1
- data/spec/json_gem_compatibility/compatibility_spec.rb +4 -4
- data/yajl-ruby.gemspec +1 -1
- metadata +1 -1
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.6.3 (August 25th, 2009)
|
|
4
|
+
* Fixed a bug in the JSON gem compatibility API where strings weren't being properly escaped
|
|
5
|
+
|
|
3
6
|
## 0.6.2 (August 25th, 2009)
|
|
4
7
|
* Fixed a bug surfaced by an existing library providing a to_json method, and Yajl would double-quote the values provided
|
|
5
8
|
|
data/VERSION.yml
CHANGED
data/lib/yajl.rb
CHANGED
|
@@ -53,16 +53,16 @@ describe "JSON Gem compatability API" do
|
|
|
53
53
|
|
|
54
54
|
it "should encode arbitrary classes via their default to_json method" do
|
|
55
55
|
d = Dummy.new
|
|
56
|
-
d.to_json.should == "#{d.to_s}"
|
|
56
|
+
d.to_json.should == "\"#{d.to_s}\""
|
|
57
57
|
|
|
58
58
|
t = Time.now
|
|
59
|
-
t.to_json.should == "#{t.to_s}"
|
|
59
|
+
t.to_json.should == "\"#{t.to_s}\""
|
|
60
60
|
|
|
61
61
|
da = Date.today
|
|
62
|
-
da.to_json.should == "#{da.to_s}"
|
|
62
|
+
da.to_json.should == "\"#{da.to_s}\""
|
|
63
63
|
|
|
64
64
|
dt = DateTime.new
|
|
65
|
-
dt.to_json.should == "#{dt.to_s}"
|
|
65
|
+
dt.to_json.should == "\"#{dt.to_s}\""
|
|
66
66
|
end
|
|
67
67
|
|
|
68
68
|
context "ported tests for Unicode" do
|
data/yajl-ruby.gemspec
CHANGED