json_pure 1.5.4 → 1.5.5
Sign up to get free protection for your applications and to get access to all the features.
- 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 +161 -129
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_pure
|
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,10 +53,15 @@ 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
|
- !ruby/object:Gem::Dependency
|
48
63
|
name: rake
|
49
|
-
requirement:
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
50
65
|
none: false
|
51
66
|
requirements:
|
52
67
|
- - ~>
|
@@ -54,10 +69,15 @@ dependencies:
|
|
54
69
|
version: 0.9.2
|
55
70
|
type: :development
|
56
71
|
prerelease: false
|
57
|
-
version_requirements:
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 0.9.2
|
58
78
|
- !ruby/object:Gem::Dependency
|
59
79
|
name: spruz
|
60
|
-
requirement:
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
61
81
|
none: false
|
62
82
|
requirements:
|
63
83
|
- - ~>
|
@@ -65,7 +85,12 @@ dependencies:
|
|
65
85
|
version: 0.2.8
|
66
86
|
type: :runtime
|
67
87
|
prerelease: false
|
68
|
-
version_requirements:
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ~>
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 0.2.8
|
69
94
|
description: This is a JSON implementation in pure Ruby.
|
70
95
|
email: flori@ping.de
|
71
96
|
executables:
|
@@ -75,143 +100,147 @@ extensions: []
|
|
75
100
|
extra_rdoc_files:
|
76
101
|
- README.rdoc
|
77
102
|
files:
|
78
|
-
-
|
79
|
-
-
|
80
|
-
-
|
81
|
-
-
|
82
|
-
- tests/fixtures/fail9.json
|
83
|
-
- tests/fixtures/fail10.json
|
84
|
-
- tests/fixtures/fail24.json
|
85
|
-
- tests/fixtures/fail28.json
|
86
|
-
- tests/fixtures/fail13.json
|
87
|
-
- tests/fixtures/fail4.json
|
88
|
-
- tests/fixtures/pass3.json
|
89
|
-
- tests/fixtures/fail11.json
|
90
|
-
- tests/fixtures/fail14.json
|
91
|
-
- tests/fixtures/fail3.json
|
92
|
-
- tests/fixtures/fail12.json
|
93
|
-
- tests/fixtures/pass16.json
|
94
|
-
- tests/fixtures/pass15.json
|
95
|
-
- tests/fixtures/fail20.json
|
96
|
-
- tests/fixtures/fail8.json
|
97
|
-
- tests/fixtures/pass2.json
|
98
|
-
- tests/fixtures/fail5.json
|
99
|
-
- tests/fixtures/fail1.json
|
100
|
-
- tests/fixtures/fail25.json
|
101
|
-
- tests/fixtures/pass17.json
|
102
|
-
- tests/fixtures/fail7.json
|
103
|
-
- tests/fixtures/pass26.json
|
104
|
-
- tests/fixtures/fail21.json
|
105
|
-
- tests/fixtures/pass1.json
|
106
|
-
- tests/fixtures/fail23.json
|
107
|
-
- tests/fixtures/fail18.json
|
108
|
-
- tests/fixtures/fail2.json
|
109
|
-
- tests/fixtures/fail22.json
|
110
|
-
- tests/fixtures/fail27.json
|
111
|
-
- tests/fixtures/fail19.json
|
112
|
-
- tests/test_json_unicode.rb
|
113
|
-
- tests/test_json_addition.rb
|
114
|
-
- tests/test_json_generate.rb
|
115
|
-
- tests/test_json_encoding.rb
|
116
|
-
- tests/test_json.rb
|
103
|
+
- 0001-Security-fix-create_additons-JSON-GenericObject.patch
|
104
|
+
- 0001-Security-fix-create_additons-problem-1.5.5.patch
|
105
|
+
- 0001-Security-fix-for-create_additions-problem-1.6.8.patch
|
106
|
+
- CHANGES
|
117
107
|
- COPYING
|
118
|
-
-
|
108
|
+
- COPYING-json-jruby
|
109
|
+
- GPL
|
110
|
+
- Gemfile
|
111
|
+
- Gemfile.lock
|
112
|
+
- README-json-jruby.markdown
|
113
|
+
- README.rdoc
|
119
114
|
- Rakefile
|
120
|
-
-
|
121
|
-
-
|
122
|
-
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML.log
|
123
|
-
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails.log
|
124
|
-
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails.log
|
125
|
-
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe.dat
|
126
|
-
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML#parser.dat
|
127
|
-
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator.dat
|
128
|
-
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure.log
|
129
|
-
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty-autocorrelation.dat
|
130
|
-
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser-autocorrelation.dat
|
131
|
-
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser-autocorrelation.dat
|
132
|
-
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser.dat
|
133
|
-
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser-autocorrelation.dat
|
134
|
-
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt.log
|
135
|
-
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_fast.dat
|
136
|
-
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe.dat
|
137
|
-
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty.dat
|
115
|
+
- TODO
|
116
|
+
- VERSION
|
138
117
|
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkComparison.log
|
139
|
-
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser.dat
|
140
|
-
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt.log
|
141
|
-
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe-autocorrelation.dat
|
142
|
-
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator-autocorrelation.dat
|
143
118
|
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_fast-autocorrelation.dat
|
119
|
+
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_fast.dat
|
120
|
+
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_pretty-autocorrelation.dat
|
144
121
|
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_pretty.dat
|
122
|
+
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe-autocorrelation.dat
|
123
|
+
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe.dat
|
124
|
+
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt.log
|
145
125
|
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_fast-autocorrelation.dat
|
146
126
|
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_fast.dat
|
127
|
+
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty-autocorrelation.dat
|
128
|
+
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty.dat
|
129
|
+
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe-autocorrelation.dat
|
130
|
+
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe.dat
|
131
|
+
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure.log
|
132
|
+
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator-autocorrelation.dat
|
133
|
+
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator.dat
|
134
|
+
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails.log
|
147
135
|
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkComparison.log
|
148
|
-
- benchmarks/data-p4-3GHz-ruby18/
|
136
|
+
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser-autocorrelation.dat
|
137
|
+
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser.dat
|
138
|
+
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt.log
|
139
|
+
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser-autocorrelation.dat
|
140
|
+
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser.dat
|
141
|
+
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure.log
|
142
|
+
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser-autocorrelation.dat
|
143
|
+
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser.dat
|
144
|
+
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails.log
|
149
145
|
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML#parser-autocorrelation.dat
|
150
|
-
- benchmarks/data-p4-3GHz-ruby18/
|
151
|
-
- benchmarks/
|
152
|
-
- benchmarks/parser_benchmark.rb
|
146
|
+
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML#parser.dat
|
147
|
+
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML.log
|
153
148
|
- benchmarks/generator2_benchmark.rb
|
154
149
|
- benchmarks/generator_benchmark.rb
|
155
|
-
- benchmarks/ohai.ruby
|
156
150
|
- benchmarks/ohai.json
|
157
|
-
-
|
158
|
-
-
|
159
|
-
-
|
160
|
-
- lib/json/Array.xpm
|
161
|
-
- lib/json/add/complex.rb
|
162
|
-
- lib/json/add/rational.rb
|
163
|
-
- lib/json/add/core.rb
|
164
|
-
- lib/json/common.rb
|
165
|
-
- lib/json/pure/generator.rb
|
166
|
-
- lib/json/pure/parser.rb
|
167
|
-
- lib/json/ext.rb
|
168
|
-
- lib/json/pure.rb
|
169
|
-
- lib/json/Key.xpm
|
170
|
-
- lib/json/FalseClass.xpm
|
171
|
-
- lib/json/editor.rb
|
172
|
-
- lib/json/Numeric.xpm
|
173
|
-
- lib/json/NilClass.xpm
|
174
|
-
- lib/json/String.xpm
|
175
|
-
- lib/json/Hash.xpm
|
176
|
-
- lib/json.rb
|
177
|
-
- Gemfile
|
178
|
-
- README.rdoc
|
179
|
-
- json_pure.gemspec
|
180
|
-
- GPL
|
181
|
-
- CHANGES
|
182
|
-
- bin/prettify_json.rb
|
151
|
+
- benchmarks/ohai.ruby
|
152
|
+
- benchmarks/parser2_benchmark.rb
|
153
|
+
- benchmarks/parser_benchmark.rb
|
183
154
|
- bin/edit_json.rb
|
184
|
-
-
|
185
|
-
-
|
186
|
-
-
|
187
|
-
-
|
188
|
-
- ext/json/ext/parser/parser.c
|
189
|
-
- ext/json/ext/generator/generator.c
|
155
|
+
- bin/prettify_json.rb
|
156
|
+
- data/example.json
|
157
|
+
- data/index.html
|
158
|
+
- data/prototype.js
|
190
159
|
- ext/json/ext/generator/extconf.rb
|
160
|
+
- ext/json/ext/generator/generator.c
|
191
161
|
- ext/json/ext/generator/generator.h
|
192
|
-
-
|
193
|
-
-
|
194
|
-
-
|
195
|
-
-
|
196
|
-
-
|
197
|
-
- java/
|
198
|
-
- java/
|
162
|
+
- ext/json/ext/parser/extconf.rb
|
163
|
+
- ext/json/ext/parser/parser.c
|
164
|
+
- ext/json/ext/parser/parser.h
|
165
|
+
- ext/json/ext/parser/parser.rl
|
166
|
+
- install.rb
|
167
|
+
- java/lib/bytelist-1.0.6.jar
|
168
|
+
- java/lib/jcodings.jar
|
169
|
+
- java/src/json/ext/ByteListTranscoder.java
|
170
|
+
- java/src/json/ext/Generator.java
|
171
|
+
- java/src/json/ext/GeneratorMethods.java
|
172
|
+
- java/src/json/ext/GeneratorService.java
|
199
173
|
- java/src/json/ext/GeneratorState.java
|
200
174
|
- java/src/json/ext/OptionsReader.java
|
201
|
-
- java/src/json/ext/
|
175
|
+
- java/src/json/ext/Parser.java
|
202
176
|
- java/src/json/ext/Parser.rl
|
177
|
+
- java/src/json/ext/ParserService.java
|
178
|
+
- java/src/json/ext/RuntimeInfo.java
|
179
|
+
- java/src/json/ext/StringDecoder.java
|
203
180
|
- java/src/json/ext/StringEncoder.java
|
204
|
-
- java/src/json/ext/GeneratorService.java
|
205
181
|
- java/src/json/ext/Utils.java
|
206
|
-
- java/src/json/ext/StringDecoder.java
|
207
|
-
- java/src/json/ext/Generator.java
|
208
|
-
- java/src/json/ext/ByteListTranscoder.java
|
209
|
-
- java/src/json/ext/GeneratorMethods.java
|
210
|
-
- java/lib/bytelist-1.0.6.jar
|
211
|
-
- java/lib/jcodings.jar
|
212
|
-
- README-json-jruby.markdown
|
213
|
-
- install.rb
|
214
182
|
- json-java.gemspec
|
183
|
+
- json.gemspec
|
184
|
+
- json_pure.gemspec
|
185
|
+
- lib/json.rb
|
186
|
+
- lib/json/Array.xpm
|
187
|
+
- lib/json/FalseClass.xpm
|
188
|
+
- lib/json/Hash.xpm
|
189
|
+
- lib/json/Key.xpm
|
190
|
+
- lib/json/NilClass.xpm
|
191
|
+
- lib/json/Numeric.xpm
|
192
|
+
- lib/json/String.xpm
|
193
|
+
- lib/json/TrueClass.xpm
|
194
|
+
- lib/json/add/complex.rb
|
195
|
+
- lib/json/add/core.rb
|
196
|
+
- lib/json/add/rational.rb
|
197
|
+
- lib/json/common.rb
|
198
|
+
- lib/json/editor.rb
|
199
|
+
- lib/json/ext.rb
|
200
|
+
- lib/json/json.xpm
|
201
|
+
- lib/json/pure.rb
|
202
|
+
- lib/json/pure/generator.rb
|
203
|
+
- lib/json/pure/parser.rb
|
204
|
+
- lib/json/version.rb
|
205
|
+
- tests/fixtures/fail1.json
|
206
|
+
- tests/fixtures/fail10.json
|
207
|
+
- tests/fixtures/fail11.json
|
208
|
+
- tests/fixtures/fail12.json
|
209
|
+
- tests/fixtures/fail13.json
|
210
|
+
- tests/fixtures/fail14.json
|
211
|
+
- tests/fixtures/fail18.json
|
212
|
+
- tests/fixtures/fail19.json
|
213
|
+
- tests/fixtures/fail2.json
|
214
|
+
- tests/fixtures/fail20.json
|
215
|
+
- tests/fixtures/fail21.json
|
216
|
+
- tests/fixtures/fail22.json
|
217
|
+
- tests/fixtures/fail23.json
|
218
|
+
- tests/fixtures/fail24.json
|
219
|
+
- tests/fixtures/fail25.json
|
220
|
+
- tests/fixtures/fail27.json
|
221
|
+
- tests/fixtures/fail28.json
|
222
|
+
- tests/fixtures/fail3.json
|
223
|
+
- tests/fixtures/fail4.json
|
224
|
+
- tests/fixtures/fail5.json
|
225
|
+
- tests/fixtures/fail6.json
|
226
|
+
- tests/fixtures/fail7.json
|
227
|
+
- tests/fixtures/fail8.json
|
228
|
+
- tests/fixtures/fail9.json
|
229
|
+
- tests/fixtures/pass1.json
|
230
|
+
- tests/fixtures/pass15.json
|
231
|
+
- tests/fixtures/pass16.json
|
232
|
+
- tests/fixtures/pass17.json
|
233
|
+
- tests/fixtures/pass2.json
|
234
|
+
- tests/fixtures/pass26.json
|
235
|
+
- tests/fixtures/pass3.json
|
236
|
+
- tests/setup_variant.rb
|
237
|
+
- tests/test_json.rb
|
238
|
+
- tests/test_json_addition.rb
|
239
|
+
- tests/test_json_encoding.rb
|
240
|
+
- tests/test_json_fixtures.rb
|
241
|
+
- tests/test_json_generate.rb
|
242
|
+
- tests/test_json_string_matching.rb
|
243
|
+
- tests/test_json_unicode.rb
|
215
244
|
- tools/fuzz.rb
|
216
245
|
- tools/server.rb
|
217
246
|
- ./tests/test_json_string_matching.rb
|
@@ -237,6 +266,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
237
266
|
- - ! '>='
|
238
267
|
- !ruby/object:Gem::Version
|
239
268
|
version: '0'
|
269
|
+
segments:
|
270
|
+
- 0
|
271
|
+
hash: -399171405044678908
|
240
272
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
241
273
|
none: false
|
242
274
|
requirements:
|
@@ -245,7 +277,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
245
277
|
version: '0'
|
246
278
|
requirements: []
|
247
279
|
rubyforge_project: json
|
248
|
-
rubygems_version: 1.8.
|
280
|
+
rubygems_version: 1.8.25
|
249
281
|
signing_key:
|
250
282
|
specification_version: 3
|
251
283
|
summary: JSON Implementation for Ruby
|