json 1.5.4 → 1.5.5
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/0001-Security-fix-create_additons-JSON-GenericObject.patch +448 -0
- data/0001-Security-fix-create_additons-problem-1.5.5.patch +630 -0
- data/0001-Security-fix-for-create_additions-problem-1.6.8.patch +685 -0
- data/CHANGES +7 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +60 -0
- data/VERSION +1 -1
- data/ext/json/ext/parser/parser.c +18 -18
- data/ext/json/ext/parser/parser.rl +4 -1
- data/java/src/json/ext/Parser.java +1 -1
- data/java/src/json/ext/Parser.rl +1 -1
- data/json.gemspec +5 -5
- data/json_pure.gemspec +4 -4
- data/lib/json/add/core.rb +6 -3
- data/lib/json/common.rb +12 -5
- data/lib/json/pure/parser.rb +4 -4
- data/lib/json/version.rb +1 -1
- data/tests/test_json.rb +22 -2
- data/tests/test_json_addition.rb +29 -21
- data/tests/test_json_string_matching.rb +5 -6
- metadata +148 -126
data/tests/test_json_addition.rb
CHANGED
@@ -71,11 +71,19 @@ class TC_JSONAddition < Test::Unit::TestCase
|
|
71
71
|
a = A.new(666)
|
72
72
|
assert A.json_creatable?
|
73
73
|
json = generate(a)
|
74
|
-
a_again = JSON.parse(json)
|
74
|
+
a_again = JSON.parse(json, :create_additions => true)
|
75
75
|
assert_kind_of a.class, a_again
|
76
76
|
assert_equal a, a_again
|
77
77
|
end
|
78
78
|
|
79
|
+
def test_extended_json_default
|
80
|
+
a = A.new(666)
|
81
|
+
assert A.json_creatable?
|
82
|
+
json = generate(a)
|
83
|
+
a_hash = JSON.parse(json)
|
84
|
+
assert_kind_of Hash, a_hash
|
85
|
+
end
|
86
|
+
|
79
87
|
def test_extended_json_disabled
|
80
88
|
a = A.new(666)
|
81
89
|
assert A.json_creatable?
|
@@ -102,7 +110,7 @@ class TC_JSONAddition < Test::Unit::TestCase
|
|
102
110
|
c = C.new
|
103
111
|
assert !C.json_creatable?
|
104
112
|
json = generate(c)
|
105
|
-
assert_raises(ArgumentError, NameError) { JSON.parse(json) }
|
113
|
+
assert_raises(ArgumentError, NameError) { JSON.parse(json, :create_additions => true) }
|
106
114
|
end
|
107
115
|
|
108
116
|
def test_raw_strings
|
@@ -120,7 +128,7 @@ class TC_JSONAddition < Test::Unit::TestCase
|
|
120
128
|
assert_match(/\A\{.*\}\Z/, json)
|
121
129
|
assert_match(/"json_class":"String"/, json)
|
122
130
|
assert_match(/"raw":\[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255\]/, json)
|
123
|
-
raw_again = JSON.parse(json)
|
131
|
+
raw_again = JSON.parse(json, :create_additions => true)
|
124
132
|
assert_equal raw, raw_again
|
125
133
|
end
|
126
134
|
|
@@ -128,17 +136,17 @@ class TC_JSONAddition < Test::Unit::TestCase
|
|
128
136
|
|
129
137
|
def test_core
|
130
138
|
t = Time.now
|
131
|
-
assert_equal t
|
139
|
+
assert_equal t, JSON(JSON(t), :create_additions => true)
|
132
140
|
d = Date.today
|
133
|
-
assert_equal d, JSON(JSON(d))
|
141
|
+
assert_equal d, JSON(JSON(d), :create_additions => true)
|
134
142
|
d = DateTime.civil(2007, 6, 14, 14, 57, 10, Rational(1, 12), 2299161)
|
135
|
-
assert_equal d, JSON(JSON(d))
|
136
|
-
assert_equal 1..10, JSON(JSON(1..10))
|
137
|
-
assert_equal 1...10, JSON(JSON(1...10))
|
138
|
-
assert_equal "a".."c", JSON(JSON("a".."c"))
|
139
|
-
assert_equal "a"..."c", JSON(JSON("a"..."c"))
|
143
|
+
assert_equal d, JSON(JSON(d), :create_additions => true)
|
144
|
+
assert_equal 1..10, JSON(JSON(1..10), :create_additions => true)
|
145
|
+
assert_equal 1...10, JSON(JSON(1...10), :create_additions => true)
|
146
|
+
assert_equal "a".."c", JSON(JSON("a".."c"), :create_additions => true)
|
147
|
+
assert_equal "a"..."c", JSON(JSON("a"..."c"), :create_additions => true)
|
140
148
|
s = MyJsonStruct.new 4711, 'foot'
|
141
|
-
assert_equal s, JSON(JSON(s))
|
149
|
+
assert_equal s, JSON(JSON(s), :create_additions => true)
|
142
150
|
struct = Struct.new :foo, :bar
|
143
151
|
s = struct.new 4711, 'foot'
|
144
152
|
assert_raises(JSONError) { JSON(s) }
|
@@ -146,29 +154,29 @@ class TC_JSONAddition < Test::Unit::TestCase
|
|
146
154
|
raise TypeError, "test me"
|
147
155
|
rescue TypeError => e
|
148
156
|
e_json = JSON.generate e
|
149
|
-
e_again = JSON e_json
|
157
|
+
e_again = JSON e_json, :create_additions => true
|
150
158
|
assert_kind_of TypeError, e_again
|
151
159
|
assert_equal e.message, e_again.message
|
152
160
|
assert_equal e.backtrace, e_again.backtrace
|
153
161
|
end
|
154
|
-
assert_equal(/foo/, JSON(JSON(/foo/)))
|
155
|
-
assert_equal(/foo/i, JSON(JSON(/foo/i)))
|
162
|
+
assert_equal(/foo/, JSON(JSON(/foo/), :create_additions => true))
|
163
|
+
assert_equal(/foo/i, JSON(JSON(/foo/i), :create_additions => true))
|
156
164
|
end
|
157
165
|
|
158
166
|
def test_utc_datetime
|
159
167
|
now = Time.now
|
160
|
-
d = DateTime.parse(now.to_s) # usual case
|
161
|
-
assert_equal d, JSON.parse(d.to_json)
|
168
|
+
d = DateTime.parse(now.to_s, :create_additions => true) # usual case
|
169
|
+
assert_equal d, JSON.parse(d.to_json, :create_additions => true)
|
162
170
|
d = DateTime.parse(now.utc.to_s) # of = 0
|
163
|
-
assert_equal d, JSON.parse(d.to_json)
|
171
|
+
assert_equal d, JSON.parse(d.to_json, :create_additions => true)
|
164
172
|
d = DateTime.civil(2008, 6, 17, 11, 48, 32, Rational(1,24))
|
165
|
-
assert_equal d, JSON.parse(d.to_json)
|
173
|
+
assert_equal d, JSON.parse(d.to_json, :create_additions => true)
|
166
174
|
d = DateTime.civil(2008, 6, 17, 11, 48, 32, Rational(12,24))
|
167
|
-
assert_equal d, JSON.parse(d.to_json)
|
175
|
+
assert_equal d, JSON.parse(d.to_json, :create_additions => true)
|
168
176
|
end
|
169
177
|
|
170
178
|
def test_rational_complex
|
171
|
-
assert_equal Rational(2, 9), JSON(JSON(Rational(2, 9)))
|
172
|
-
assert_equal Complex(2, 9), JSON(JSON(Complex(2, 9)))
|
179
|
+
assert_equal Rational(2, 9), JSON.parse(JSON(Rational(2, 9)), :create_additions => true)
|
180
|
+
assert_equal Complex(2, 9), JSON.parse(JSON(Complex(2, 9)), :create_additions => true)
|
173
181
|
end
|
174
182
|
end
|
@@ -27,14 +27,13 @@ class TestJsonStringMatching < Test::Unit::TestCase
|
|
27
27
|
t = TestTime.new
|
28
28
|
t_json = [ t ].to_json
|
29
29
|
assert_equal [ t ],
|
30
|
-
JSON.parse(t_json,
|
31
|
-
:match_string => { /\A\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}[+-]\d{4}\
|
30
|
+
JSON.parse(t_json, :create_additions => true,
|
31
|
+
:match_string => { /\A\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}[+-]\d{4}\z/ => TestTime })
|
32
32
|
assert_equal [ t.strftime('%FT%T%z') ],
|
33
|
-
JSON.parse(t_json,
|
34
|
-
:match_string => { /\A\d{3}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}[+-]\d{4}\
|
33
|
+
JSON.parse(t_json, :create_additions => true,
|
34
|
+
:match_string => { /\A\d{3}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}[+-]\d{4}\z/ => TestTime })
|
35
35
|
assert_equal [ t.strftime('%FT%T%z') ],
|
36
36
|
JSON.parse(t_json,
|
37
|
-
:match_string => { /\A\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}[+-]\d{4}\
|
38
|
-
:create_additions => false)
|
37
|
+
:match_string => { /\A\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}[+-]\d{4}\z/ => TestTime })
|
39
38
|
end
|
40
39
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: json
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-02-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: permutation
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,15 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
25
30
|
- !ruby/object:Gem::Dependency
|
26
31
|
name: bullshit
|
27
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
28
33
|
none: false
|
29
34
|
requirements:
|
30
35
|
- - ! '>='
|
@@ -32,10 +37,15 @@ dependencies:
|
|
32
37
|
version: '0'
|
33
38
|
type: :development
|
34
39
|
prerelease: false
|
35
|
-
version_requirements:
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
36
46
|
- !ruby/object:Gem::Dependency
|
37
47
|
name: sdoc
|
38
|
-
requirement:
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
39
49
|
none: false
|
40
50
|
requirements:
|
41
51
|
- - ! '>='
|
@@ -43,155 +53,164 @@ dependencies:
|
|
43
53
|
version: '0'
|
44
54
|
type: :development
|
45
55
|
prerelease: false
|
46
|
-
version_requirements:
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
47
62
|
description: This is a JSON implementation as a Ruby extension in C.
|
48
63
|
email: flori@ping.de
|
49
64
|
executables:
|
50
65
|
- edit_json.rb
|
51
66
|
- prettify_json.rb
|
52
67
|
extensions:
|
53
|
-
- ext/json/ext/parser/extconf.rb
|
54
68
|
- ext/json/ext/generator/extconf.rb
|
69
|
+
- ext/json/ext/parser/extconf.rb
|
55
70
|
extra_rdoc_files:
|
56
71
|
- README.rdoc
|
57
72
|
files:
|
58
|
-
-
|
59
|
-
-
|
60
|
-
-
|
61
|
-
-
|
62
|
-
- tests/fixtures/fail9.json
|
63
|
-
- tests/fixtures/fail10.json
|
64
|
-
- tests/fixtures/fail24.json
|
65
|
-
- tests/fixtures/fail28.json
|
66
|
-
- tests/fixtures/fail13.json
|
67
|
-
- tests/fixtures/fail4.json
|
68
|
-
- tests/fixtures/pass3.json
|
69
|
-
- tests/fixtures/fail11.json
|
70
|
-
- tests/fixtures/fail14.json
|
71
|
-
- tests/fixtures/fail3.json
|
72
|
-
- tests/fixtures/fail12.json
|
73
|
-
- tests/fixtures/pass16.json
|
74
|
-
- tests/fixtures/pass15.json
|
75
|
-
- tests/fixtures/fail20.json
|
76
|
-
- tests/fixtures/fail8.json
|
77
|
-
- tests/fixtures/pass2.json
|
78
|
-
- tests/fixtures/fail5.json
|
79
|
-
- tests/fixtures/fail1.json
|
80
|
-
- tests/fixtures/fail25.json
|
81
|
-
- tests/fixtures/pass17.json
|
82
|
-
- tests/fixtures/fail7.json
|
83
|
-
- tests/fixtures/pass26.json
|
84
|
-
- tests/fixtures/fail21.json
|
85
|
-
- tests/fixtures/pass1.json
|
86
|
-
- tests/fixtures/fail23.json
|
87
|
-
- tests/fixtures/fail18.json
|
88
|
-
- tests/fixtures/fail2.json
|
89
|
-
- tests/fixtures/fail22.json
|
90
|
-
- tests/fixtures/fail27.json
|
91
|
-
- tests/fixtures/fail19.json
|
92
|
-
- tests/test_json_unicode.rb
|
93
|
-
- tests/test_json_addition.rb
|
94
|
-
- tests/test_json_generate.rb
|
95
|
-
- tests/test_json_encoding.rb
|
96
|
-
- tests/test_json.rb
|
73
|
+
- 0001-Security-fix-create_additons-JSON-GenericObject.patch
|
74
|
+
- 0001-Security-fix-create_additons-problem-1.5.5.patch
|
75
|
+
- 0001-Security-fix-for-create_additions-problem-1.6.8.patch
|
76
|
+
- CHANGES
|
97
77
|
- COPYING
|
98
|
-
-
|
78
|
+
- COPYING-json-jruby
|
79
|
+
- GPL
|
80
|
+
- Gemfile
|
81
|
+
- Gemfile.lock
|
82
|
+
- README-json-jruby.markdown
|
83
|
+
- README.rdoc
|
99
84
|
- Rakefile
|
100
|
-
-
|
101
|
-
-
|
102
|
-
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML.log
|
103
|
-
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails.log
|
104
|
-
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails.log
|
105
|
-
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe.dat
|
106
|
-
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML#parser.dat
|
107
|
-
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator.dat
|
108
|
-
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure.log
|
109
|
-
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty-autocorrelation.dat
|
110
|
-
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser-autocorrelation.dat
|
111
|
-
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser-autocorrelation.dat
|
112
|
-
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser.dat
|
113
|
-
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser-autocorrelation.dat
|
114
|
-
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt.log
|
115
|
-
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_fast.dat
|
116
|
-
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe.dat
|
117
|
-
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty.dat
|
85
|
+
- TODO
|
86
|
+
- VERSION
|
118
87
|
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkComparison.log
|
119
|
-
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser.dat
|
120
|
-
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt.log
|
121
|
-
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe-autocorrelation.dat
|
122
|
-
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator-autocorrelation.dat
|
123
88
|
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_fast-autocorrelation.dat
|
89
|
+
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_fast.dat
|
90
|
+
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_pretty-autocorrelation.dat
|
124
91
|
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_pretty.dat
|
92
|
+
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe-autocorrelation.dat
|
93
|
+
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe.dat
|
94
|
+
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt.log
|
125
95
|
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_fast-autocorrelation.dat
|
126
96
|
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_fast.dat
|
97
|
+
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty-autocorrelation.dat
|
98
|
+
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty.dat
|
99
|
+
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe-autocorrelation.dat
|
100
|
+
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe.dat
|
101
|
+
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure.log
|
102
|
+
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator-autocorrelation.dat
|
103
|
+
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator.dat
|
104
|
+
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails.log
|
127
105
|
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkComparison.log
|
128
|
-
- benchmarks/data-p4-3GHz-ruby18/
|
106
|
+
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser-autocorrelation.dat
|
107
|
+
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser.dat
|
108
|
+
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt.log
|
109
|
+
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser-autocorrelation.dat
|
110
|
+
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser.dat
|
111
|
+
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure.log
|
112
|
+
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser-autocorrelation.dat
|
113
|
+
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser.dat
|
114
|
+
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails.log
|
129
115
|
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML#parser-autocorrelation.dat
|
130
|
-
- benchmarks/data-p4-3GHz-ruby18/
|
131
|
-
- benchmarks/
|
132
|
-
- benchmarks/parser_benchmark.rb
|
116
|
+
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML#parser.dat
|
117
|
+
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML.log
|
133
118
|
- benchmarks/generator2_benchmark.rb
|
134
119
|
- benchmarks/generator_benchmark.rb
|
135
|
-
- benchmarks/ohai.ruby
|
136
120
|
- benchmarks/ohai.json
|
137
|
-
-
|
138
|
-
-
|
139
|
-
-
|
140
|
-
- lib/json/Array.xpm
|
141
|
-
- lib/json/add/complex.rb
|
142
|
-
- lib/json/add/rational.rb
|
143
|
-
- lib/json/add/core.rb
|
144
|
-
- lib/json/common.rb
|
145
|
-
- lib/json/pure/generator.rb
|
146
|
-
- lib/json/pure/parser.rb
|
147
|
-
- lib/json/ext.rb
|
148
|
-
- lib/json/pure.rb
|
149
|
-
- lib/json/Key.xpm
|
150
|
-
- lib/json/FalseClass.xpm
|
151
|
-
- lib/json/editor.rb
|
152
|
-
- lib/json/Numeric.xpm
|
153
|
-
- lib/json/NilClass.xpm
|
154
|
-
- lib/json/String.xpm
|
155
|
-
- lib/json/Hash.xpm
|
156
|
-
- lib/json.rb
|
157
|
-
- Gemfile
|
158
|
-
- README.rdoc
|
159
|
-
- json_pure.gemspec
|
160
|
-
- GPL
|
161
|
-
- CHANGES
|
162
|
-
- bin/prettify_json.rb
|
121
|
+
- benchmarks/ohai.ruby
|
122
|
+
- benchmarks/parser2_benchmark.rb
|
123
|
+
- benchmarks/parser_benchmark.rb
|
163
124
|
- bin/edit_json.rb
|
164
|
-
-
|
165
|
-
-
|
166
|
-
-
|
167
|
-
-
|
168
|
-
- ext/json/ext/parser/parser.c
|
169
|
-
- ext/json/ext/generator/generator.c
|
125
|
+
- bin/prettify_json.rb
|
126
|
+
- data/example.json
|
127
|
+
- data/index.html
|
128
|
+
- data/prototype.js
|
170
129
|
- ext/json/ext/generator/extconf.rb
|
130
|
+
- ext/json/ext/generator/generator.c
|
171
131
|
- ext/json/ext/generator/generator.h
|
172
|
-
-
|
173
|
-
-
|
174
|
-
-
|
175
|
-
-
|
176
|
-
-
|
177
|
-
- java/
|
178
|
-
- java/
|
132
|
+
- ext/json/ext/parser/extconf.rb
|
133
|
+
- ext/json/ext/parser/parser.c
|
134
|
+
- ext/json/ext/parser/parser.h
|
135
|
+
- ext/json/ext/parser/parser.rl
|
136
|
+
- install.rb
|
137
|
+
- java/lib/bytelist-1.0.6.jar
|
138
|
+
- java/lib/jcodings.jar
|
139
|
+
- java/src/json/ext/ByteListTranscoder.java
|
140
|
+
- java/src/json/ext/Generator.java
|
141
|
+
- java/src/json/ext/GeneratorMethods.java
|
142
|
+
- java/src/json/ext/GeneratorService.java
|
179
143
|
- java/src/json/ext/GeneratorState.java
|
180
144
|
- java/src/json/ext/OptionsReader.java
|
181
|
-
- java/src/json/ext/
|
145
|
+
- java/src/json/ext/Parser.java
|
182
146
|
- java/src/json/ext/Parser.rl
|
147
|
+
- java/src/json/ext/ParserService.java
|
148
|
+
- java/src/json/ext/RuntimeInfo.java
|
149
|
+
- java/src/json/ext/StringDecoder.java
|
183
150
|
- java/src/json/ext/StringEncoder.java
|
184
|
-
- java/src/json/ext/GeneratorService.java
|
185
151
|
- java/src/json/ext/Utils.java
|
186
|
-
- java/src/json/ext/StringDecoder.java
|
187
|
-
- java/src/json/ext/Generator.java
|
188
|
-
- java/src/json/ext/ByteListTranscoder.java
|
189
|
-
- java/src/json/ext/GeneratorMethods.java
|
190
|
-
- java/lib/bytelist-1.0.6.jar
|
191
|
-
- java/lib/jcodings.jar
|
192
|
-
- README-json-jruby.markdown
|
193
|
-
- install.rb
|
194
152
|
- json-java.gemspec
|
153
|
+
- json.gemspec
|
154
|
+
- json_pure.gemspec
|
155
|
+
- lib/json.rb
|
156
|
+
- lib/json/Array.xpm
|
157
|
+
- lib/json/FalseClass.xpm
|
158
|
+
- lib/json/Hash.xpm
|
159
|
+
- lib/json/Key.xpm
|
160
|
+
- lib/json/NilClass.xpm
|
161
|
+
- lib/json/Numeric.xpm
|
162
|
+
- lib/json/String.xpm
|
163
|
+
- lib/json/TrueClass.xpm
|
164
|
+
- lib/json/add/complex.rb
|
165
|
+
- lib/json/add/core.rb
|
166
|
+
- lib/json/add/rational.rb
|
167
|
+
- lib/json/common.rb
|
168
|
+
- lib/json/editor.rb
|
169
|
+
- lib/json/ext.rb
|
170
|
+
- lib/json/json.xpm
|
171
|
+
- lib/json/pure.rb
|
172
|
+
- lib/json/pure/generator.rb
|
173
|
+
- lib/json/pure/parser.rb
|
174
|
+
- lib/json/version.rb
|
175
|
+
- tests/fixtures/fail1.json
|
176
|
+
- tests/fixtures/fail10.json
|
177
|
+
- tests/fixtures/fail11.json
|
178
|
+
- tests/fixtures/fail12.json
|
179
|
+
- tests/fixtures/fail13.json
|
180
|
+
- tests/fixtures/fail14.json
|
181
|
+
- tests/fixtures/fail18.json
|
182
|
+
- tests/fixtures/fail19.json
|
183
|
+
- tests/fixtures/fail2.json
|
184
|
+
- tests/fixtures/fail20.json
|
185
|
+
- tests/fixtures/fail21.json
|
186
|
+
- tests/fixtures/fail22.json
|
187
|
+
- tests/fixtures/fail23.json
|
188
|
+
- tests/fixtures/fail24.json
|
189
|
+
- tests/fixtures/fail25.json
|
190
|
+
- tests/fixtures/fail27.json
|
191
|
+
- tests/fixtures/fail28.json
|
192
|
+
- tests/fixtures/fail3.json
|
193
|
+
- tests/fixtures/fail4.json
|
194
|
+
- tests/fixtures/fail5.json
|
195
|
+
- tests/fixtures/fail6.json
|
196
|
+
- tests/fixtures/fail7.json
|
197
|
+
- tests/fixtures/fail8.json
|
198
|
+
- tests/fixtures/fail9.json
|
199
|
+
- tests/fixtures/pass1.json
|
200
|
+
- tests/fixtures/pass15.json
|
201
|
+
- tests/fixtures/pass16.json
|
202
|
+
- tests/fixtures/pass17.json
|
203
|
+
- tests/fixtures/pass2.json
|
204
|
+
- tests/fixtures/pass26.json
|
205
|
+
- tests/fixtures/pass3.json
|
206
|
+
- tests/setup_variant.rb
|
207
|
+
- tests/test_json.rb
|
208
|
+
- tests/test_json_addition.rb
|
209
|
+
- tests/test_json_encoding.rb
|
210
|
+
- tests/test_json_fixtures.rb
|
211
|
+
- tests/test_json_generate.rb
|
212
|
+
- tests/test_json_string_matching.rb
|
213
|
+
- tests/test_json_unicode.rb
|
195
214
|
- tools/fuzz.rb
|
196
215
|
- tools/server.rb
|
197
216
|
- ./tests/test_json_string_matching.rb
|
@@ -219,6 +238,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
219
238
|
- - ! '>='
|
220
239
|
- !ruby/object:Gem::Version
|
221
240
|
version: '0'
|
241
|
+
segments:
|
242
|
+
- 0
|
243
|
+
hash: -399171405044678908
|
222
244
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
223
245
|
none: false
|
224
246
|
requirements:
|
@@ -227,7 +249,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
227
249
|
version: '0'
|
228
250
|
requirements: []
|
229
251
|
rubyforge_project: json
|
230
|
-
rubygems_version: 1.8.
|
252
|
+
rubygems_version: 1.8.25
|
231
253
|
signing_key:
|
232
254
|
specification_version: 3
|
233
255
|
summary: JSON Implementation for Ruby
|