json_pure 1.6.1 → 1.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +8 -0
- data/.travis.yml +15 -0
- data/CHANGES +10 -0
- data/Gemfile +4 -0
- data/Rakefile +1 -2
- data/VERSION +1 -1
- data/benchmarks/data-p4-3GHz-ruby18/.keep +0 -0
- data/benchmarks/data/.keep +0 -0
- data/benchmarks/generator2_benchmark.rb +1 -1
- data/benchmarks/generator_benchmark.rb +1 -1
- data/benchmarks/parser2_benchmark.rb +1 -1
- data/benchmarks/parser_benchmark.rb +1 -1
- data/diagrams/.keep +0 -0
- data/ext/json/ext/fbuffer/fbuffer.h +156 -0
- data/ext/json/ext/generator/extconf.rb +0 -7
- data/ext/json/ext/generator/generator.c +57 -132
- data/ext/json/ext/generator/generator.h +4 -43
- data/ext/json/ext/parser/extconf.rb +0 -3
- data/ext/json/ext/parser/parser.c +94 -87
- data/ext/json/ext/parser/parser.h +2 -7
- data/ext/json/ext/parser/parser.rl +12 -2
- data/java/src/json/ext/GeneratorState.java +21 -0
- data/json.gemspec +16 -16
- data/json_pure.gemspec +15 -15
- data/lib/json/add/bigdecimal.rb +21 -0
- data/lib/json/add/ostruct.rb +31 -0
- data/lib/json/add/time.rb +2 -2
- data/lib/json/common.rb +39 -5
- data/lib/json/ext.rb +6 -0
- data/lib/json/ext/.keep +0 -0
- data/lib/json/pure.rb +6 -0
- data/lib/json/pure/generator.rb +20 -9
- data/lib/json/pure/parser.rb +7 -2
- data/lib/json/version.rb +1 -1
- data/tests/test_json.rb +16 -1
- data/tests/test_json_addition.rb +15 -1
- data/tests/test_json_generate.rb +66 -30
- metadata +143 -134
data/lib/json/version.rb
CHANGED
data/tests/test_json.rb
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
require 'test/unit'
|
5
5
|
require File.join(File.dirname(__FILE__), 'setup_variant')
|
6
6
|
require 'stringio'
|
7
|
+
require 'tempfile'
|
7
8
|
|
8
9
|
unless Array.method_defined?(:permutation)
|
9
10
|
begin
|
@@ -107,6 +108,8 @@ class TC_JSON < Test::Unit::TestCase
|
|
107
108
|
def test_parse_json_primitive_values
|
108
109
|
assert_raise(JSON::ParserError) { JSON.parse('') }
|
109
110
|
assert_raise(JSON::ParserError) { JSON.parse('', :quirks_mode => true) }
|
111
|
+
assert_raise(TypeError) { JSON.parse(nil) }
|
112
|
+
assert_raise(TypeError) { JSON.parse(nil, :quirks_mode => true) }
|
110
113
|
assert_raise(JSON::ParserError) { JSON.parse(' /* foo */ ') }
|
111
114
|
assert_raise(JSON::ParserError) { JSON.parse(' /* foo */ ', :quirks_mode => true) }
|
112
115
|
parser = JSON::Parser.new('null')
|
@@ -414,7 +417,19 @@ EOT
|
|
414
417
|
JSON.parse('{"foo":"bar", "baz":"quux"}', :symbolize_names => true))
|
415
418
|
end
|
416
419
|
|
417
|
-
def
|
420
|
+
def test_load
|
421
|
+
assert_equal @hash, JSON.load(@json)
|
422
|
+
tempfile = Tempfile.open('json')
|
423
|
+
tempfile.write @json
|
424
|
+
tempfile.rewind
|
425
|
+
assert_equal @hash, JSON.load(tempfile)
|
426
|
+
stringio = StringIO.new(@json)
|
427
|
+
stringio.rewind
|
428
|
+
assert_equal @hash, JSON.load(stringio)
|
429
|
+
assert_equal nil, JSON.load(nil)
|
430
|
+
end
|
431
|
+
|
432
|
+
def test_dump
|
418
433
|
too_deep = '[[[[[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]]]]]]'
|
419
434
|
assert_equal too_deep, JSON.dump(eval(too_deep))
|
420
435
|
assert_kind_of String, Marshal.dump(eval(too_deep))
|
data/tests/test_json_addition.rb
CHANGED
@@ -6,6 +6,8 @@ require File.join(File.dirname(__FILE__), 'setup_variant')
|
|
6
6
|
require 'json/add/core'
|
7
7
|
require 'json/add/complex'
|
8
8
|
require 'json/add/rational'
|
9
|
+
require 'json/add/bigdecimal'
|
10
|
+
require 'json/add/ostruct'
|
9
11
|
require 'date'
|
10
12
|
|
11
13
|
class TC_JSONAddition < Test::Unit::TestCase
|
@@ -128,7 +130,7 @@ class TC_JSONAddition < Test::Unit::TestCase
|
|
128
130
|
|
129
131
|
def test_core
|
130
132
|
t = Time.now
|
131
|
-
assert_equal t
|
133
|
+
assert_equal t, JSON(JSON(t))
|
132
134
|
d = Date.today
|
133
135
|
assert_equal d, JSON(JSON(d))
|
134
136
|
d = DateTime.civil(2007, 6, 14, 14, 57, 10, Rational(1, 12), 2299161)
|
@@ -171,4 +173,16 @@ class TC_JSONAddition < Test::Unit::TestCase
|
|
171
173
|
assert_equal Rational(2, 9), JSON(JSON(Rational(2, 9)))
|
172
174
|
assert_equal Complex(2, 9), JSON(JSON(Complex(2, 9)))
|
173
175
|
end
|
176
|
+
|
177
|
+
def test_bigdecimal
|
178
|
+
assert_equal BigDecimal('3.141', 23), JSON(JSON(BigDecimal('3.141', 23)))
|
179
|
+
assert_equal BigDecimal('3.141', 666), JSON(JSON(BigDecimal('3.141', 666)))
|
180
|
+
end
|
181
|
+
|
182
|
+
def test_ostruct
|
183
|
+
o = OpenStruct.new
|
184
|
+
# XXX this won't work; o.foo = { :bar => true }
|
185
|
+
o.foo = { 'bar' => true }
|
186
|
+
assert_equal o, JSON(JSON(o))
|
187
|
+
end
|
174
188
|
end
|
data/tests/test_json_generate.rb
CHANGED
@@ -43,6 +43,8 @@ EOT
|
|
43
43
|
def test_generate
|
44
44
|
json = generate(@hash)
|
45
45
|
assert_equal(JSON.parse(@json2), JSON.parse(json))
|
46
|
+
json = JSON[@hash]
|
47
|
+
assert_equal(JSON.parse(@json2), JSON.parse(json))
|
46
48
|
parsed_json = parse(json)
|
47
49
|
assert_equal(@hash, parsed_json)
|
48
50
|
json = generate({1=>2})
|
@@ -121,48 +123,51 @@ EOT
|
|
121
123
|
def test_pretty_state
|
122
124
|
state = PRETTY_STATE_PROTOTYPE.dup
|
123
125
|
assert_equal({
|
124
|
-
:allow_nan
|
125
|
-
:array_nl
|
126
|
-
:ascii_only
|
127
|
-
:
|
128
|
-
:
|
129
|
-
:
|
130
|
-
:
|
131
|
-
:
|
132
|
-
:
|
133
|
-
:
|
126
|
+
:allow_nan => false,
|
127
|
+
:array_nl => "\n",
|
128
|
+
:ascii_only => false,
|
129
|
+
:buffer_initial_length => 1024,
|
130
|
+
:quirks_mode => false,
|
131
|
+
:depth => 0,
|
132
|
+
:indent => " ",
|
133
|
+
:max_nesting => 19,
|
134
|
+
:object_nl => "\n",
|
135
|
+
:space => " ",
|
136
|
+
:space_before => "",
|
134
137
|
}.sort_by { |n,| n.to_s }, state.to_h.sort_by { |n,| n.to_s })
|
135
138
|
end
|
136
139
|
|
137
140
|
def test_safe_state
|
138
141
|
state = SAFE_STATE_PROTOTYPE.dup
|
139
142
|
assert_equal({
|
140
|
-
:allow_nan
|
141
|
-
:array_nl
|
142
|
-
:ascii_only
|
143
|
-
:
|
144
|
-
:
|
145
|
-
:
|
146
|
-
:
|
147
|
-
:
|
148
|
-
:
|
149
|
-
:
|
143
|
+
:allow_nan => false,
|
144
|
+
:array_nl => "",
|
145
|
+
:ascii_only => false,
|
146
|
+
:buffer_initial_length => 1024,
|
147
|
+
:quirks_mode => false,
|
148
|
+
:depth => 0,
|
149
|
+
:indent => "",
|
150
|
+
:max_nesting => 19,
|
151
|
+
:object_nl => "",
|
152
|
+
:space => "",
|
153
|
+
:space_before => "",
|
150
154
|
}.sort_by { |n,| n.to_s }, state.to_h.sort_by { |n,| n.to_s })
|
151
155
|
end
|
152
156
|
|
153
157
|
def test_fast_state
|
154
158
|
state = FAST_STATE_PROTOTYPE.dup
|
155
159
|
assert_equal({
|
156
|
-
:allow_nan
|
157
|
-
:array_nl
|
158
|
-
:ascii_only
|
159
|
-
:
|
160
|
-
:
|
161
|
-
:
|
162
|
-
:
|
163
|
-
:
|
164
|
-
:
|
165
|
-
:
|
160
|
+
:allow_nan => false,
|
161
|
+
:array_nl => "",
|
162
|
+
:ascii_only => false,
|
163
|
+
:buffer_initial_length => 1024,
|
164
|
+
:quirks_mode => false,
|
165
|
+
:depth => 0,
|
166
|
+
:indent => "",
|
167
|
+
:max_nesting => 0,
|
168
|
+
:object_nl => "",
|
169
|
+
:space => "",
|
170
|
+
:space_before => "",
|
166
171
|
}.sort_by { |n,| n.to_s }, state.to_h.sort_by { |n,| n.to_s })
|
167
172
|
end
|
168
173
|
|
@@ -198,6 +203,17 @@ EOT
|
|
198
203
|
assert_equal 19, s.depth
|
199
204
|
end
|
200
205
|
|
206
|
+
def test_buffer_initial_length
|
207
|
+
s = JSON.state.new
|
208
|
+
assert_equal 1024, s.buffer_initial_length
|
209
|
+
s.buffer_initial_length = 0
|
210
|
+
assert_equal 1024, s.buffer_initial_length
|
211
|
+
s.buffer_initial_length = -1
|
212
|
+
assert_equal 1024, s.buffer_initial_length
|
213
|
+
s.buffer_initial_length = 128
|
214
|
+
assert_equal 128, s.buffer_initial_length
|
215
|
+
end
|
216
|
+
|
201
217
|
def test_gc
|
202
218
|
bignum_too_long_to_embed_as_string = 1234567890123456789012345
|
203
219
|
expect = bignum_too_long_to_embed_as_string.to_s
|
@@ -210,4 +226,24 @@ EOT
|
|
210
226
|
ensure
|
211
227
|
GC.stress = stress
|
212
228
|
end if GC.respond_to?(:stress=)
|
229
|
+
|
230
|
+
def test_broken_bignum # [ruby-core:38867]
|
231
|
+
pid = fork do
|
232
|
+
Bignum.class_eval do
|
233
|
+
def to_s
|
234
|
+
end
|
235
|
+
end
|
236
|
+
begin
|
237
|
+
JSON::Ext::Generator::State.new.generate(1<<64)
|
238
|
+
exit 1
|
239
|
+
rescue TypeError
|
240
|
+
exit 0
|
241
|
+
end
|
242
|
+
end
|
243
|
+
_, status = Process.waitpid2(pid)
|
244
|
+
assert status.success?
|
245
|
+
rescue NotImplementedError
|
246
|
+
# forking to avoid modifying core class of a parent process and
|
247
|
+
# introducing race conditions of tests are run in parallel
|
248
|
+
end if defined?(JSON::Ext)
|
213
249
|
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.6.
|
4
|
+
version: 1.6.2
|
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: 2011-
|
12
|
+
date: 2011-11-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: permutation
|
16
|
-
requirement: &
|
16
|
+
requirement: &2152575020 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2152575020
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: bullshit
|
27
|
-
requirement: &
|
27
|
+
requirement: &2152574400 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2152574400
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: sdoc
|
38
|
-
requirement: &
|
38
|
+
requirement: &2152573780 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2152573780
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rake
|
49
|
-
requirement: &
|
49
|
+
requirement: &2152573180 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: 0.9.2
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *2152573180
|
58
58
|
description: This is a JSON implementation in pure Ruby.
|
59
59
|
email: flori@ping.de
|
60
60
|
executables: []
|
@@ -62,148 +62,157 @@ extensions: []
|
|
62
62
|
extra_rdoc_files:
|
63
63
|
- README.rdoc
|
64
64
|
files:
|
65
|
-
-
|
66
|
-
-
|
67
|
-
-
|
68
|
-
- tests/fixtures/fail6.json
|
69
|
-
- tests/fixtures/fail9.json
|
70
|
-
- tests/fixtures/fail10.json
|
71
|
-
- tests/fixtures/fail24.json
|
72
|
-
- tests/fixtures/fail28.json
|
73
|
-
- tests/fixtures/fail13.json
|
74
|
-
- tests/fixtures/fail4.json
|
75
|
-
- tests/fixtures/pass3.json
|
76
|
-
- tests/fixtures/fail11.json
|
77
|
-
- tests/fixtures/fail14.json
|
78
|
-
- tests/fixtures/fail3.json
|
79
|
-
- tests/fixtures/fail12.json
|
80
|
-
- tests/fixtures/pass16.json
|
81
|
-
- tests/fixtures/pass15.json
|
82
|
-
- tests/fixtures/fail20.json
|
83
|
-
- tests/fixtures/fail8.json
|
84
|
-
- tests/fixtures/pass2.json
|
85
|
-
- tests/fixtures/fail5.json
|
86
|
-
- tests/fixtures/fail1.json
|
87
|
-
- tests/fixtures/fail25.json
|
88
|
-
- tests/fixtures/pass17.json
|
89
|
-
- tests/fixtures/fail7.json
|
90
|
-
- tests/fixtures/pass26.json
|
91
|
-
- tests/fixtures/fail21.json
|
92
|
-
- tests/fixtures/pass1.json
|
93
|
-
- tests/fixtures/fail23.json
|
94
|
-
- tests/fixtures/fail18.json
|
95
|
-
- tests/fixtures/fail2.json
|
96
|
-
- tests/fixtures/fail22.json
|
97
|
-
- tests/fixtures/fail27.json
|
98
|
-
- tests/fixtures/fail19.json
|
99
|
-
- tests/test_json_unicode.rb
|
100
|
-
- tests/test_json_addition.rb
|
101
|
-
- tests/test_json_generate.rb
|
102
|
-
- tests/test_json_encoding.rb
|
103
|
-
- tests/test_json.rb
|
65
|
+
- .gitignore
|
66
|
+
- .travis.yml
|
67
|
+
- CHANGES
|
104
68
|
- COPYING
|
105
|
-
-
|
69
|
+
- COPYING-json-jruby
|
70
|
+
- GPL
|
71
|
+
- Gemfile
|
72
|
+
- README-json-jruby.markdown
|
73
|
+
- README.rdoc
|
106
74
|
- Rakefile
|
107
|
-
-
|
108
|
-
-
|
109
|
-
- benchmarks/data-p4-3GHz-ruby18
|
110
|
-
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails.log
|
111
|
-
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails.log
|
112
|
-
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe.dat
|
113
|
-
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML#parser.dat
|
114
|
-
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator.dat
|
115
|
-
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure.log
|
116
|
-
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty-autocorrelation.dat
|
117
|
-
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser-autocorrelation.dat
|
118
|
-
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser-autocorrelation.dat
|
119
|
-
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser.dat
|
120
|
-
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser-autocorrelation.dat
|
121
|
-
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt.log
|
122
|
-
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_fast.dat
|
123
|
-
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe.dat
|
124
|
-
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty.dat
|
75
|
+
- TODO
|
76
|
+
- VERSION
|
77
|
+
- benchmarks/data-p4-3GHz-ruby18/.keep
|
125
78
|
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkComparison.log
|
126
|
-
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser.dat
|
127
|
-
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt.log
|
128
|
-
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe-autocorrelation.dat
|
129
|
-
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator-autocorrelation.dat
|
130
79
|
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_fast-autocorrelation.dat
|
80
|
+
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_fast.dat
|
81
|
+
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_pretty-autocorrelation.dat
|
131
82
|
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_pretty.dat
|
83
|
+
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe-autocorrelation.dat
|
84
|
+
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe.dat
|
85
|
+
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt.log
|
132
86
|
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_fast-autocorrelation.dat
|
133
87
|
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_fast.dat
|
88
|
+
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty-autocorrelation.dat
|
89
|
+
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty.dat
|
90
|
+
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe-autocorrelation.dat
|
91
|
+
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe.dat
|
92
|
+
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure.log
|
93
|
+
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator-autocorrelation.dat
|
94
|
+
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator.dat
|
95
|
+
- benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails.log
|
134
96
|
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkComparison.log
|
135
|
-
- benchmarks/data-p4-3GHz-ruby18/
|
97
|
+
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser-autocorrelation.dat
|
98
|
+
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser.dat
|
99
|
+
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt.log
|
100
|
+
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser-autocorrelation.dat
|
101
|
+
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser.dat
|
102
|
+
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure.log
|
103
|
+
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser-autocorrelation.dat
|
104
|
+
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser.dat
|
105
|
+
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails.log
|
136
106
|
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML#parser-autocorrelation.dat
|
137
|
-
- benchmarks/data-p4-3GHz-ruby18/
|
138
|
-
- benchmarks/
|
139
|
-
- benchmarks/
|
107
|
+
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML#parser.dat
|
108
|
+
- benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML.log
|
109
|
+
- benchmarks/data/.keep
|
140
110
|
- benchmarks/generator2_benchmark.rb
|
141
111
|
- benchmarks/generator_benchmark.rb
|
142
|
-
- benchmarks/ohai.ruby
|
143
112
|
- benchmarks/ohai.json
|
144
|
-
-
|
145
|
-
-
|
146
|
-
-
|
147
|
-
-
|
148
|
-
-
|
149
|
-
-
|
150
|
-
-
|
151
|
-
-
|
152
|
-
- lib/json/add/core.rb
|
153
|
-
- lib/json/add/range.rb
|
154
|
-
- lib/json/add/date.rb
|
155
|
-
- lib/json/add/regexp.rb
|
156
|
-
- lib/json/common.rb
|
157
|
-
- lib/json/pure/generator.rb
|
158
|
-
- lib/json/pure/parser.rb
|
159
|
-
- lib/json/ext.rb
|
160
|
-
- lib/json/pure.rb
|
161
|
-
- lib/json.rb
|
162
|
-
- Gemfile
|
163
|
-
- README.rdoc
|
164
|
-
- json_pure.gemspec
|
165
|
-
- GPL
|
166
|
-
- CHANGES
|
167
|
-
- COPYING-json-jruby
|
168
|
-
- ext/json/ext/parser/parser.h
|
169
|
-
- ext/json/ext/parser/extconf.rb
|
170
|
-
- ext/json/ext/parser/parser.rl
|
171
|
-
- ext/json/ext/parser/parser.c
|
172
|
-
- ext/json/ext/generator/generator.c
|
113
|
+
- benchmarks/ohai.ruby
|
114
|
+
- benchmarks/parser2_benchmark.rb
|
115
|
+
- benchmarks/parser_benchmark.rb
|
116
|
+
- data/example.json
|
117
|
+
- data/index.html
|
118
|
+
- data/prototype.js
|
119
|
+
- diagrams/.keep
|
120
|
+
- ext/json/ext/fbuffer/fbuffer.h
|
173
121
|
- ext/json/ext/generator/extconf.rb
|
122
|
+
- ext/json/ext/generator/generator.c
|
174
123
|
- ext/json/ext/generator/generator.h
|
175
|
-
-
|
176
|
-
-
|
177
|
-
-
|
178
|
-
-
|
179
|
-
-
|
180
|
-
- java/
|
181
|
-
- java/
|
124
|
+
- ext/json/ext/parser/extconf.rb
|
125
|
+
- ext/json/ext/parser/parser.c
|
126
|
+
- ext/json/ext/parser/parser.h
|
127
|
+
- ext/json/ext/parser/parser.rl
|
128
|
+
- install.rb
|
129
|
+
- java/lib/bytelist-1.0.6.jar
|
130
|
+
- java/lib/jcodings.jar
|
131
|
+
- java/src/json/ext/ByteListTranscoder.java
|
132
|
+
- java/src/json/ext/Generator.java
|
133
|
+
- java/src/json/ext/GeneratorMethods.java
|
134
|
+
- java/src/json/ext/GeneratorService.java
|
182
135
|
- java/src/json/ext/GeneratorState.java
|
183
136
|
- java/src/json/ext/OptionsReader.java
|
184
|
-
- java/src/json/ext/
|
137
|
+
- java/src/json/ext/Parser.java
|
185
138
|
- java/src/json/ext/Parser.rl
|
139
|
+
- java/src/json/ext/ParserService.java
|
140
|
+
- java/src/json/ext/RuntimeInfo.java
|
141
|
+
- java/src/json/ext/StringDecoder.java
|
186
142
|
- java/src/json/ext/StringEncoder.java
|
187
|
-
- java/src/json/ext/GeneratorService.java
|
188
143
|
- java/src/json/ext/Utils.java
|
189
|
-
- java/src/json/ext/StringDecoder.java
|
190
|
-
- java/src/json/ext/Generator.java
|
191
|
-
- java/src/json/ext/ByteListTranscoder.java
|
192
|
-
- java/src/json/ext/GeneratorMethods.java
|
193
|
-
- java/lib/bytelist-1.0.6.jar
|
194
|
-
- java/lib/jcodings.jar
|
195
|
-
- README-json-jruby.markdown
|
196
|
-
- install.rb
|
197
144
|
- json-java.gemspec
|
145
|
+
- json.gemspec
|
146
|
+
- json_pure.gemspec
|
147
|
+
- lib/json.rb
|
148
|
+
- lib/json/add/bigdecimal.rb
|
149
|
+
- lib/json/add/complex.rb
|
150
|
+
- lib/json/add/core.rb
|
151
|
+
- lib/json/add/date.rb
|
152
|
+
- lib/json/add/date_time.rb
|
153
|
+
- lib/json/add/exception.rb
|
154
|
+
- lib/json/add/ostruct.rb
|
155
|
+
- lib/json/add/range.rb
|
156
|
+
- lib/json/add/rational.rb
|
157
|
+
- lib/json/add/regexp.rb
|
158
|
+
- lib/json/add/struct.rb
|
159
|
+
- lib/json/add/symbol.rb
|
160
|
+
- lib/json/add/time.rb
|
161
|
+
- lib/json/common.rb
|
162
|
+
- lib/json/ext.rb
|
163
|
+
- lib/json/ext/.keep
|
164
|
+
- lib/json/pure.rb
|
165
|
+
- lib/json/pure/generator.rb
|
166
|
+
- lib/json/pure/parser.rb
|
167
|
+
- lib/json/version.rb
|
168
|
+
- tests/fixtures/fail1.json
|
169
|
+
- tests/fixtures/fail10.json
|
170
|
+
- tests/fixtures/fail11.json
|
171
|
+
- tests/fixtures/fail12.json
|
172
|
+
- tests/fixtures/fail13.json
|
173
|
+
- tests/fixtures/fail14.json
|
174
|
+
- tests/fixtures/fail18.json
|
175
|
+
- tests/fixtures/fail19.json
|
176
|
+
- tests/fixtures/fail2.json
|
177
|
+
- tests/fixtures/fail20.json
|
178
|
+
- tests/fixtures/fail21.json
|
179
|
+
- tests/fixtures/fail22.json
|
180
|
+
- tests/fixtures/fail23.json
|
181
|
+
- tests/fixtures/fail24.json
|
182
|
+
- tests/fixtures/fail25.json
|
183
|
+
- tests/fixtures/fail27.json
|
184
|
+
- tests/fixtures/fail28.json
|
185
|
+
- tests/fixtures/fail3.json
|
186
|
+
- tests/fixtures/fail4.json
|
187
|
+
- tests/fixtures/fail5.json
|
188
|
+
- tests/fixtures/fail6.json
|
189
|
+
- tests/fixtures/fail7.json
|
190
|
+
- tests/fixtures/fail8.json
|
191
|
+
- tests/fixtures/fail9.json
|
192
|
+
- tests/fixtures/pass1.json
|
193
|
+
- tests/fixtures/pass15.json
|
194
|
+
- tests/fixtures/pass16.json
|
195
|
+
- tests/fixtures/pass17.json
|
196
|
+
- tests/fixtures/pass2.json
|
197
|
+
- tests/fixtures/pass26.json
|
198
|
+
- tests/fixtures/pass3.json
|
199
|
+
- tests/setup_variant.rb
|
200
|
+
- tests/test_json.rb
|
201
|
+
- tests/test_json_addition.rb
|
202
|
+
- tests/test_json_encoding.rb
|
203
|
+
- tests/test_json_fixtures.rb
|
204
|
+
- tests/test_json_generate.rb
|
205
|
+
- tests/test_json_string_matching.rb
|
206
|
+
- tests/test_json_unicode.rb
|
198
207
|
- tools/fuzz.rb
|
199
208
|
- tools/server.rb
|
200
|
-
- ./tests/
|
201
|
-
- ./tests/test_json_fixtures.rb
|
202
|
-
- ./tests/test_json_unicode.rb
|
209
|
+
- ./tests/test_json.rb
|
203
210
|
- ./tests/test_json_addition.rb
|
204
|
-
- ./tests/test_json_generate.rb
|
205
211
|
- ./tests/test_json_encoding.rb
|
206
|
-
- ./tests/
|
212
|
+
- ./tests/test_json_fixtures.rb
|
213
|
+
- ./tests/test_json_generate.rb
|
214
|
+
- ./tests/test_json_string_matching.rb
|
215
|
+
- ./tests/test_json_unicode.rb
|
207
216
|
homepage: http://flori.github.com/json
|
208
217
|
licenses: []
|
209
218
|
post_install_message:
|
@@ -228,15 +237,15 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
228
237
|
version: '0'
|
229
238
|
requirements: []
|
230
239
|
rubyforge_project: json
|
231
|
-
rubygems_version: 1.8.
|
240
|
+
rubygems_version: 1.8.11
|
232
241
|
signing_key:
|
233
242
|
specification_version: 3
|
234
243
|
summary: JSON Implementation for Ruby
|
235
244
|
test_files:
|
236
|
-
- ./tests/
|
237
|
-
- ./tests/test_json_fixtures.rb
|
238
|
-
- ./tests/test_json_unicode.rb
|
245
|
+
- ./tests/test_json.rb
|
239
246
|
- ./tests/test_json_addition.rb
|
240
|
-
- ./tests/test_json_generate.rb
|
241
247
|
- ./tests/test_json_encoding.rb
|
242
|
-
- ./tests/
|
248
|
+
- ./tests/test_json_fixtures.rb
|
249
|
+
- ./tests/test_json_generate.rb
|
250
|
+
- ./tests/test_json_string_matching.rb
|
251
|
+
- ./tests/test_json_unicode.rb
|