json 1.1.0-mswin32 → 1.1.1-mswin32
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of json might be problematic. Click here for more details.
- data/CHANGES +18 -0
- data/Rakefile +5 -5
- data/VERSION +1 -1
- data/benchmarks/benchmark_generator.rb +5 -1
- data/benchmarks/benchmark_parser.rb +5 -1
- data/bin/edit_json.rb +11 -11
- data/ext/json/ext/generator.so +0 -0
- data/ext/json/ext/generator/extconf.rb +2 -2
- data/ext/json/ext/generator/generator.c +185 -50
- data/ext/json/ext/parser.so +0 -0
- data/ext/json/ext/parser/extconf.rb +2 -2
- data/ext/json/ext/parser/parser.c +246 -117
- data/ext/json/ext/parser/parser.rl +54 -6
- data/lib/json.rb +23 -0
- data/lib/json/add/core.rb +119 -0
- data/lib/json/add/rails.rb +52 -0
- data/lib/json/common.rb +174 -23
- data/lib/json/editor.rb +12 -14
- data/lib/json/pure/generator.rb +83 -10
- data/lib/json/pure/parser.rb +15 -1
- data/lib/json/version.rb +1 -1
- data/tests/fixtures/fail18.json +1 -1
- data/tests/test_json.rb +51 -12
- data/tests/test_json_addition.rb +34 -3
- data/tests/test_json_fixtures.rb +2 -2
- data/tests/test_json_generate.rb +21 -2
- data/tests/test_json_unicode.rb +4 -1
- data/tools/fuzz.rb +2 -1
- metadata +5 -2
data/tests/test_json_unicode.rb
CHANGED
@@ -40,13 +40,16 @@ class TC_JSONUnicode < Test::Unit::TestCase
|
|
40
40
|
def test_chars
|
41
41
|
(0..0x7f).each do |i|
|
42
42
|
json = '["\u%04x"]' % i
|
43
|
+
if RUBY_VERSION >= "1.9."
|
44
|
+
i = i.chr
|
45
|
+
end
|
43
46
|
assert_equal i, JSON.parse(json).first[0]
|
44
47
|
if i == ?\b
|
45
48
|
generated = JSON.generate(["" << i])
|
46
49
|
assert '["\b"]' == generated || '["\10"]' == generated
|
47
50
|
elsif [?\n, ?\r, ?\t, ?\f].include?(i)
|
48
51
|
assert_equal '[' << ('' << i).dump << ']', JSON.generate(["" << i])
|
49
|
-
elsif i < 0x20
|
52
|
+
elsif i.chr < 0x20.chr
|
50
53
|
assert_equal json, JSON.generate(["" << i])
|
51
54
|
end
|
52
55
|
end
|
data/tools/fuzz.rb
CHANGED
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
|
|
3
3
|
specification_version: 1
|
4
4
|
name: json
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.1.
|
7
|
-
date: 2007-06
|
6
|
+
version: 1.1.1
|
7
|
+
date: 2007-07-06 00:00:00 +02:00
|
8
8
|
summary: A JSON implementation as a Ruby extension
|
9
9
|
require_paths:
|
10
10
|
- ext/json/ext
|
@@ -107,6 +107,9 @@ files:
|
|
107
107
|
- lib/json
|
108
108
|
- lib/json/FalseClass.xpm
|
109
109
|
- lib/json/TrueClass.xpm
|
110
|
+
- lib/json/add
|
111
|
+
- lib/json/add/core.rb
|
112
|
+
- lib/json/add/rails.rb
|
110
113
|
- lib/json/ext.rb
|
111
114
|
- lib/json/common.rb
|
112
115
|
- lib/json/Hash.xpm
|