json 1.6.1 → 1.6.2

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.

@@ -1,6 +1,6 @@
1
1
  module JSON
2
2
  # JSON version
3
- VERSION = '1.6.1'
3
+ VERSION = '1.6.2'
4
4
  VERSION_ARRAY = VERSION.split(/\./).map { |x| x.to_i } # :nodoc:
5
5
  VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
6
6
  VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
@@ -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 test_load_dump
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))
@@ -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.inspect, JSON(JSON(t)).inspect
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
@@ -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 => false,
125
- :array_nl => "\n",
126
- :ascii_only => false,
127
- :quirks_mode => false,
128
- :depth => 0,
129
- :indent => " ",
130
- :max_nesting => 19,
131
- :object_nl => "\n",
132
- :space => " ",
133
- :space_before => "",
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 => false,
141
- :array_nl => "",
142
- :ascii_only => false,
143
- :quirks_mode => false,
144
- :depth => 0,
145
- :indent => "",
146
- :max_nesting => 19,
147
- :object_nl => "",
148
- :space => "",
149
- :space_before => "",
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 => false,
157
- :array_nl => "",
158
- :ascii_only => false,
159
- :quirks_mode => false,
160
- :depth => 0,
161
- :indent => "",
162
- :max_nesting => 0,
163
- :object_nl => "",
164
- :space => "",
165
- :space_before => "",
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
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
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-09-18 00:00:00.000000000Z
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: &81829900 !ruby/object:Gem::Requirement
16
+ requirement: &2152671600 !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: *81829900
24
+ version_requirements: *2152671600
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: bullshit
27
- requirement: &81829680 !ruby/object:Gem::Requirement
27
+ requirement: &2152671020 !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: *81829680
35
+ version_requirements: *2152671020
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: sdoc
38
- requirement: &81829470 !ruby/object:Gem::Requirement
38
+ requirement: &2152670420 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,158 +43,167 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *81829470
46
+ version_requirements: *2152670420
47
47
  description: This is a JSON implementation as a Ruby extension in C.
48
48
  email: flori@ping.de
49
49
  executables: []
50
50
  extensions:
51
- - ext/json/ext/parser/extconf.rb
52
51
  - ext/json/ext/generator/extconf.rb
52
+ - ext/json/ext/parser/extconf.rb
53
53
  extra_rdoc_files:
54
54
  - README.rdoc
55
55
  files:
56
- - tests/test_json_string_matching.rb
57
- - tests/test_json_fixtures.rb
58
- - tests/setup_variant.rb
59
- - tests/fixtures/fail6.json
60
- - tests/fixtures/fail9.json
61
- - tests/fixtures/fail10.json
62
- - tests/fixtures/fail24.json
63
- - tests/fixtures/fail28.json
64
- - tests/fixtures/fail13.json
65
- - tests/fixtures/fail4.json
66
- - tests/fixtures/pass3.json
67
- - tests/fixtures/fail11.json
68
- - tests/fixtures/fail14.json
69
- - tests/fixtures/fail3.json
70
- - tests/fixtures/fail12.json
71
- - tests/fixtures/pass16.json
72
- - tests/fixtures/pass15.json
73
- - tests/fixtures/fail20.json
74
- - tests/fixtures/fail8.json
75
- - tests/fixtures/pass2.json
76
- - tests/fixtures/fail5.json
77
- - tests/fixtures/fail1.json
78
- - tests/fixtures/fail25.json
79
- - tests/fixtures/pass17.json
80
- - tests/fixtures/fail7.json
81
- - tests/fixtures/pass26.json
82
- - tests/fixtures/fail21.json
83
- - tests/fixtures/pass1.json
84
- - tests/fixtures/fail23.json
85
- - tests/fixtures/fail18.json
86
- - tests/fixtures/fail2.json
87
- - tests/fixtures/fail22.json
88
- - tests/fixtures/fail27.json
89
- - tests/fixtures/fail19.json
90
- - tests/test_json_unicode.rb
91
- - tests/test_json_addition.rb
92
- - tests/test_json_generate.rb
93
- - tests/test_json_encoding.rb
94
- - tests/test_json.rb
56
+ - .gitignore
57
+ - .travis.yml
58
+ - CHANGES
95
59
  - COPYING
96
- - TODO
60
+ - COPYING-json-jruby
61
+ - GPL
62
+ - Gemfile
63
+ - README-json-jruby.markdown
64
+ - README.rdoc
97
65
  - Rakefile
98
- - benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser.dat
99
- - benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure.log
100
- - benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML.log
101
- - benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails.log
102
- - benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails.log
103
- - benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe.dat
104
- - benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML#parser.dat
105
- - benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator.dat
106
- - benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure.log
107
- - benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty-autocorrelation.dat
108
- - benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser-autocorrelation.dat
109
- - benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser-autocorrelation.dat
110
- - benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser.dat
111
- - benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser-autocorrelation.dat
112
- - benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt.log
113
- - benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_fast.dat
114
- - benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe.dat
115
- - benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty.dat
66
+ - TODO
67
+ - VERSION
68
+ - benchmarks/data-p4-3GHz-ruby18/.keep
116
69
  - benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkComparison.log
117
- - benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser.dat
118
- - benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt.log
119
- - benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe-autocorrelation.dat
120
- - benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator-autocorrelation.dat
121
70
  - benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_fast-autocorrelation.dat
71
+ - benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_fast.dat
72
+ - benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_pretty-autocorrelation.dat
122
73
  - benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_pretty.dat
74
+ - benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe-autocorrelation.dat
75
+ - benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe.dat
76
+ - benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt.log
123
77
  - benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_fast-autocorrelation.dat
124
78
  - benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_fast.dat
79
+ - benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty-autocorrelation.dat
80
+ - benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty.dat
81
+ - benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe-autocorrelation.dat
82
+ - benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe.dat
83
+ - benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure.log
84
+ - benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator-autocorrelation.dat
85
+ - benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator.dat
86
+ - benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails.log
125
87
  - benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkComparison.log
126
- - benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_pretty-autocorrelation.dat
88
+ - benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser-autocorrelation.dat
89
+ - benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser.dat
90
+ - benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt.log
91
+ - benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser-autocorrelation.dat
92
+ - benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser.dat
93
+ - benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure.log
94
+ - benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser-autocorrelation.dat
95
+ - benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser.dat
96
+ - benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails.log
127
97
  - benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML#parser-autocorrelation.dat
128
- - benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe-autocorrelation.dat
129
- - benchmarks/parser2_benchmark.rb
130
- - benchmarks/parser_benchmark.rb
98
+ - benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML#parser.dat
99
+ - benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML.log
100
+ - benchmarks/data/.keep
131
101
  - benchmarks/generator2_benchmark.rb
132
102
  - benchmarks/generator_benchmark.rb
133
- - benchmarks/ohai.ruby
134
103
  - benchmarks/ohai.json
135
- - lib/json/version.rb
136
- - lib/json/add/symbol.rb
137
- - lib/json/add/struct.rb
138
- - lib/json/add/complex.rb
139
- - lib/json/add/rational.rb
140
- - lib/json/add/exception.rb
141
- - lib/json/add/time.rb
142
- - lib/json/add/date_time.rb
143
- - lib/json/add/core.rb
144
- - lib/json/add/range.rb
145
- - lib/json/add/date.rb
146
- - lib/json/add/regexp.rb
147
- - lib/json/common.rb
148
- - lib/json/pure/generator.rb
149
- - lib/json/pure/parser.rb
150
- - lib/json/ext.rb
151
- - lib/json/pure.rb
152
- - lib/json.rb
153
- - Gemfile
154
- - README.rdoc
155
- - json_pure.gemspec
156
- - GPL
157
- - CHANGES
158
- - COPYING-json-jruby
159
- - ext/json/ext/parser/parser.h
160
- - ext/json/ext/parser/extconf.rb
161
- - ext/json/ext/parser/parser.rl
162
- - ext/json/ext/parser/parser.c
163
- - ext/json/ext/generator/generator.c
104
+ - benchmarks/ohai.ruby
105
+ - benchmarks/parser2_benchmark.rb
106
+ - benchmarks/parser_benchmark.rb
107
+ - data/example.json
108
+ - data/index.html
109
+ - data/prototype.js
110
+ - diagrams/.keep
111
+ - ext/json/ext/fbuffer/fbuffer.h
164
112
  - ext/json/ext/generator/extconf.rb
113
+ - ext/json/ext/generator/generator.c
165
114
  - ext/json/ext/generator/generator.h
166
- - VERSION
167
- - data/prototype.js
168
- - data/index.html
169
- - data/example.json
170
- - json.gemspec
171
- - java/src/json/ext/Parser.java
172
- - java/src/json/ext/RuntimeInfo.java
115
+ - ext/json/ext/parser/extconf.rb
116
+ - ext/json/ext/parser/parser.c
117
+ - ext/json/ext/parser/parser.h
118
+ - ext/json/ext/parser/parser.rl
119
+ - install.rb
120
+ - java/lib/bytelist-1.0.6.jar
121
+ - java/lib/jcodings.jar
122
+ - java/src/json/ext/ByteListTranscoder.java
123
+ - java/src/json/ext/Generator.java
124
+ - java/src/json/ext/GeneratorMethods.java
125
+ - java/src/json/ext/GeneratorService.java
173
126
  - java/src/json/ext/GeneratorState.java
174
127
  - java/src/json/ext/OptionsReader.java
175
- - java/src/json/ext/ParserService.java
128
+ - java/src/json/ext/Parser.java
176
129
  - java/src/json/ext/Parser.rl
130
+ - java/src/json/ext/ParserService.java
131
+ - java/src/json/ext/RuntimeInfo.java
132
+ - java/src/json/ext/StringDecoder.java
177
133
  - java/src/json/ext/StringEncoder.java
178
- - java/src/json/ext/GeneratorService.java
179
134
  - java/src/json/ext/Utils.java
180
- - java/src/json/ext/StringDecoder.java
181
- - java/src/json/ext/Generator.java
182
- - java/src/json/ext/ByteListTranscoder.java
183
- - java/src/json/ext/GeneratorMethods.java
184
- - java/lib/bytelist-1.0.6.jar
185
- - java/lib/jcodings.jar
186
- - README-json-jruby.markdown
187
- - install.rb
188
135
  - json-java.gemspec
136
+ - json.gemspec
137
+ - json_pure.gemspec
138
+ - lib/json.rb
139
+ - lib/json/add/bigdecimal.rb
140
+ - lib/json/add/complex.rb
141
+ - lib/json/add/core.rb
142
+ - lib/json/add/date.rb
143
+ - lib/json/add/date_time.rb
144
+ - lib/json/add/exception.rb
145
+ - lib/json/add/ostruct.rb
146
+ - lib/json/add/range.rb
147
+ - lib/json/add/rational.rb
148
+ - lib/json/add/regexp.rb
149
+ - lib/json/add/struct.rb
150
+ - lib/json/add/symbol.rb
151
+ - lib/json/add/time.rb
152
+ - lib/json/common.rb
153
+ - lib/json/ext.rb
154
+ - lib/json/ext/.keep
155
+ - lib/json/pure.rb
156
+ - lib/json/pure/generator.rb
157
+ - lib/json/pure/parser.rb
158
+ - lib/json/version.rb
159
+ - tests/fixtures/fail1.json
160
+ - tests/fixtures/fail10.json
161
+ - tests/fixtures/fail11.json
162
+ - tests/fixtures/fail12.json
163
+ - tests/fixtures/fail13.json
164
+ - tests/fixtures/fail14.json
165
+ - tests/fixtures/fail18.json
166
+ - tests/fixtures/fail19.json
167
+ - tests/fixtures/fail2.json
168
+ - tests/fixtures/fail20.json
169
+ - tests/fixtures/fail21.json
170
+ - tests/fixtures/fail22.json
171
+ - tests/fixtures/fail23.json
172
+ - tests/fixtures/fail24.json
173
+ - tests/fixtures/fail25.json
174
+ - tests/fixtures/fail27.json
175
+ - tests/fixtures/fail28.json
176
+ - tests/fixtures/fail3.json
177
+ - tests/fixtures/fail4.json
178
+ - tests/fixtures/fail5.json
179
+ - tests/fixtures/fail6.json
180
+ - tests/fixtures/fail7.json
181
+ - tests/fixtures/fail8.json
182
+ - tests/fixtures/fail9.json
183
+ - tests/fixtures/pass1.json
184
+ - tests/fixtures/pass15.json
185
+ - tests/fixtures/pass16.json
186
+ - tests/fixtures/pass17.json
187
+ - tests/fixtures/pass2.json
188
+ - tests/fixtures/pass26.json
189
+ - tests/fixtures/pass3.json
190
+ - tests/setup_variant.rb
191
+ - tests/test_json.rb
192
+ - tests/test_json_addition.rb
193
+ - tests/test_json_encoding.rb
194
+ - tests/test_json_fixtures.rb
195
+ - tests/test_json_generate.rb
196
+ - tests/test_json_string_matching.rb
197
+ - tests/test_json_unicode.rb
189
198
  - tools/fuzz.rb
190
199
  - tools/server.rb
191
- - ./tests/test_json_string_matching.rb
192
- - ./tests/test_json_fixtures.rb
193
- - ./tests/test_json_unicode.rb
200
+ - ./tests/test_json.rb
194
201
  - ./tests/test_json_addition.rb
195
- - ./tests/test_json_generate.rb
196
202
  - ./tests/test_json_encoding.rb
197
- - ./tests/test_json.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
  homepage: http://flori.github.com/json
199
208
  licenses: []
200
209
  post_install_message:
@@ -221,15 +230,15 @@ required_rubygems_version: !ruby/object:Gem::Requirement
221
230
  version: '0'
222
231
  requirements: []
223
232
  rubyforge_project: json
224
- rubygems_version: 1.8.6
233
+ rubygems_version: 1.8.11
225
234
  signing_key:
226
235
  specification_version: 3
227
236
  summary: JSON Implementation for Ruby
228
237
  test_files:
229
- - ./tests/test_json_string_matching.rb
230
- - ./tests/test_json_fixtures.rb
231
- - ./tests/test_json_unicode.rb
238
+ - ./tests/test_json.rb
232
239
  - ./tests/test_json_addition.rb
233
- - ./tests/test_json_generate.rb
234
240
  - ./tests/test_json_encoding.rb
235
- - ./tests/test_json.rb
241
+ - ./tests/test_json_fixtures.rb
242
+ - ./tests/test_json_generate.rb
243
+ - ./tests/test_json_string_matching.rb
244
+ - ./tests/test_json_unicode.rb