json 1.8.1 → 1.8.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.
- checksums.yaml +4 -4
- data/.gitignore +3 -0
- data/.travis.yml +9 -5
- data/CHANGES +9 -0
- data/Gemfile +0 -1
- data/VERSION +1 -1
- data/ext/json/ext/fbuffer/fbuffer.h +10 -1
- data/ext/json/ext/generator/extconf.rb +0 -10
- data/ext/json/ext/generator/generator.c +47 -18
- data/ext/json/ext/generator/generator.h +15 -5
- data/ext/json/ext/parser/extconf.rb +0 -10
- data/ext/json/ext/parser/parser.c +25 -6
- data/ext/json/ext/parser/parser.h +11 -4
- data/ext/json/ext/parser/parser.rl +25 -6
- data/ext/json/extconf.rb +3 -0
- data/java/src/json/ext/Parser.java +86 -85
- data/java/src/json/ext/Parser.rl +6 -5
- data/json-java.gemspec +1 -1
- data/json.gemspec +0 -0
- data/json_pure.gemspec +6 -6
- data/lib/json/add/complex.rb +7 -1
- data/lib/json/add/rational.rb +5 -0
- data/lib/json/add/time.rb +1 -1
- data/lib/json/common.rb +5 -5
- data/lib/json/version.rb +1 -1
- data/tests/test_json.rb +8 -0
- data/tests/test_json_generate.rb +23 -8
- metadata +31 -29
data/java/src/json/ext/Parser.rl
CHANGED
@@ -128,7 +128,7 @@ public class Parser extends RubyObject {
|
|
128
128
|
*
|
129
129
|
* <dt><code>:create_additions</code>
|
130
130
|
* <dd>If set to <code>false</code>, the Parser doesn't create additions
|
131
|
-
* even if a
|
131
|
+
* even if a matching class and <code>create_id</code> was found. This option
|
132
132
|
* defaults to <code>true</code>.
|
133
133
|
*
|
134
134
|
* <dt><code>:object_class</code>
|
@@ -246,7 +246,7 @@ public class Parser extends RubyObject {
|
|
246
246
|
*/
|
247
247
|
@JRubyMethod
|
248
248
|
public IRubyObject parse(ThreadContext context) {
|
249
|
-
return new ParserSession(this, context).parse();
|
249
|
+
return new ParserSession(this, context, info).parse();
|
250
250
|
}
|
251
251
|
|
252
252
|
/**
|
@@ -302,6 +302,7 @@ public class Parser extends RubyObject {
|
|
302
302
|
private static class ParserSession {
|
303
303
|
private final Parser parser;
|
304
304
|
private final ThreadContext context;
|
305
|
+
private final RuntimeInfo info;
|
305
306
|
private final ByteList byteList;
|
306
307
|
private final ByteList view;
|
307
308
|
private final byte[] data;
|
@@ -313,9 +314,10 @@ public class Parser extends RubyObject {
|
|
313
314
|
// no idea about the origins of this value, ask Flori ;)
|
314
315
|
private static final int EVIL = 0x666;
|
315
316
|
|
316
|
-
private ParserSession(Parser parser, ThreadContext context) {
|
317
|
+
private ParserSession(Parser parser, ThreadContext context, RuntimeInfo info) {
|
317
318
|
this.parser = parser;
|
318
319
|
this.context = context;
|
320
|
+
this.info = info;
|
319
321
|
this.byteList = parser.checkAndGetSource().getByteList();
|
320
322
|
this.data = byteList.unsafeBytes();
|
321
323
|
this.view = new ByteList(data, false);
|
@@ -646,8 +648,7 @@ public class Parser extends RubyObject {
|
|
646
648
|
}
|
647
649
|
}
|
648
650
|
|
649
|
-
if (cs >= JSON_string_first_final && result != null) {
|
650
|
-
RuntimeInfo info = RuntimeInfo.forRuntime(context.getRuntime());
|
651
|
+
if (cs >= JSON_string_first_final && result != null) {
|
651
652
|
if (info.encodingsSupported() && result instanceof RubyString) {
|
652
653
|
((RubyString)result).force_encoding(context, info.utf8.get());
|
653
654
|
}
|
data/json-java.gemspec
CHANGED
data/json.gemspec
CHANGED
Binary file
|
data/json_pure.gemspec
CHANGED
@@ -1,22 +1,22 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: json_pure 1.8.
|
2
|
+
# stub: json_pure 1.8.2 ruby lib
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "json_pure"
|
6
|
-
s.version = "1.8.
|
6
|
+
s.version = "1.8.2"
|
7
7
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
9
|
+
s.require_paths = ["lib"]
|
9
10
|
s.authors = ["Florian Frank"]
|
10
|
-
s.date = "
|
11
|
+
s.date = "2015-01-09"
|
11
12
|
s.description = "This is a JSON implementation in pure Ruby."
|
12
13
|
s.email = "flori@ping.de"
|
13
14
|
s.extra_rdoc_files = ["README.rdoc"]
|
14
|
-
s.files = [".gitignore", ".travis.yml", "CHANGES", "COPYING", "COPYING-json-jruby", "GPL", "Gemfile", "README-json-jruby.markdown", "README.rdoc", "Rakefile", "TODO", "VERSION", "data/example.json", "data/index.html", "data/prototype.js", "diagrams/.keep", "ext/json/ext/fbuffer/fbuffer.h", "ext/json/ext/generator/depend", "ext/json/ext/generator/extconf.rb", "ext/json/ext/generator/generator.c", "ext/json/ext/generator/generator.h", "ext/json/ext/parser/depend", "ext/json/ext/parser/extconf.rb", "ext/json/ext/parser/parser.c", "ext/json/ext/parser/parser.h", "ext/json/ext/parser/parser.rl", "install.rb", "java/src/json/ext/ByteListTranscoder.java", "java/src/json/ext/Generator.java", "java/src/json/ext/GeneratorMethods.java", "java/src/json/ext/GeneratorService.java", "java/src/json/ext/GeneratorState.java", "java/src/json/ext/OptionsReader.java", "java/src/json/ext/Parser.java", "java/src/json/ext/Parser.rl", "java/src/json/ext/ParserService.java", "java/src/json/ext/RuntimeInfo.java", "java/src/json/ext/StringDecoder.java", "java/src/json/ext/StringEncoder.java", "java/src/json/ext/Utils.java", "json-java.gemspec", "json.gemspec", "json_pure.gemspec", "lib/json.rb", "lib/json/add/bigdecimal.rb", "lib/json/add/complex.rb", "lib/json/add/core.rb", "lib/json/add/date.rb", "lib/json/add/date_time.rb", "lib/json/add/exception.rb", "lib/json/add/ostruct.rb", "lib/json/add/range.rb", "lib/json/add/rational.rb", "lib/json/add/regexp.rb", "lib/json/add/struct.rb", "lib/json/add/symbol.rb", "lib/json/add/time.rb", "lib/json/common.rb", "lib/json/ext.rb", "lib/json/ext/.keep", "lib/json/generic_object.rb", "lib/json/pure.rb", "lib/json/pure/generator.rb", "lib/json/pure/parser.rb", "lib/json/version.rb", "tests/fixtures/fail1.json", "tests/fixtures/fail10.json", "tests/fixtures/fail11.json", "tests/fixtures/fail12.json", "tests/fixtures/fail13.json", "tests/fixtures/fail14.json", "tests/fixtures/fail18.json", "tests/fixtures/fail19.json", "tests/fixtures/fail2.json", "tests/fixtures/fail20.json", "tests/fixtures/fail21.json", "tests/fixtures/fail22.json", "tests/fixtures/fail23.json", "tests/fixtures/fail24.json", "tests/fixtures/fail25.json", "tests/fixtures/fail27.json", "tests/fixtures/fail28.json", "tests/fixtures/fail3.json", "tests/fixtures/fail4.json", "tests/fixtures/fail5.json", "tests/fixtures/fail6.json", "tests/fixtures/fail7.json", "tests/fixtures/fail8.json", "tests/fixtures/fail9.json", "tests/fixtures/pass1.json", "tests/fixtures/pass15.json", "tests/fixtures/pass16.json", "tests/fixtures/pass17.json", "tests/fixtures/pass2.json", "tests/fixtures/pass26.json", "tests/fixtures/pass3.json", "tests/setup_variant.rb", "tests/test_json.rb", "tests/test_json_addition.rb", "tests/test_json_encoding.rb", "tests/test_json_fixtures.rb", "tests/test_json_generate.rb", "tests/test_json_generic_object.rb", "tests/test_json_string_matching.rb", "tests/test_json_unicode.rb", "tools/fuzz.rb", "tools/server.rb"
|
15
|
+
s.files = ["./tests/test_json.rb", "./tests/test_json_addition.rb", "./tests/test_json_encoding.rb", "./tests/test_json_fixtures.rb", "./tests/test_json_generate.rb", "./tests/test_json_generic_object.rb", "./tests/test_json_string_matching.rb", "./tests/test_json_unicode.rb", ".gitignore", ".travis.yml", "CHANGES", "COPYING", "COPYING-json-jruby", "GPL", "Gemfile", "README-json-jruby.markdown", "README.rdoc", "Rakefile", "TODO", "VERSION", "data/example.json", "data/index.html", "data/prototype.js", "diagrams/.keep", "ext/json/ext/fbuffer/fbuffer.h", "ext/json/ext/generator/depend", "ext/json/ext/generator/extconf.rb", "ext/json/ext/generator/generator.c", "ext/json/ext/generator/generator.h", "ext/json/ext/parser/depend", "ext/json/ext/parser/extconf.rb", "ext/json/ext/parser/parser.c", "ext/json/ext/parser/parser.h", "ext/json/ext/parser/parser.rl", "ext/json/extconf.rb", "install.rb", "java/src/json/ext/ByteListTranscoder.java", "java/src/json/ext/Generator.java", "java/src/json/ext/GeneratorMethods.java", "java/src/json/ext/GeneratorService.java", "java/src/json/ext/GeneratorState.java", "java/src/json/ext/OptionsReader.java", "java/src/json/ext/Parser.java", "java/src/json/ext/Parser.rl", "java/src/json/ext/ParserService.java", "java/src/json/ext/RuntimeInfo.java", "java/src/json/ext/StringDecoder.java", "java/src/json/ext/StringEncoder.java", "java/src/json/ext/Utils.java", "json-java.gemspec", "json.gemspec", "json_pure.gemspec", "lib/json.rb", "lib/json/add/bigdecimal.rb", "lib/json/add/complex.rb", "lib/json/add/core.rb", "lib/json/add/date.rb", "lib/json/add/date_time.rb", "lib/json/add/exception.rb", "lib/json/add/ostruct.rb", "lib/json/add/range.rb", "lib/json/add/rational.rb", "lib/json/add/regexp.rb", "lib/json/add/struct.rb", "lib/json/add/symbol.rb", "lib/json/add/time.rb", "lib/json/common.rb", "lib/json/ext.rb", "lib/json/ext/.keep", "lib/json/generic_object.rb", "lib/json/pure.rb", "lib/json/pure/generator.rb", "lib/json/pure/parser.rb", "lib/json/version.rb", "tests/fixtures/fail1.json", "tests/fixtures/fail10.json", "tests/fixtures/fail11.json", "tests/fixtures/fail12.json", "tests/fixtures/fail13.json", "tests/fixtures/fail14.json", "tests/fixtures/fail18.json", "tests/fixtures/fail19.json", "tests/fixtures/fail2.json", "tests/fixtures/fail20.json", "tests/fixtures/fail21.json", "tests/fixtures/fail22.json", "tests/fixtures/fail23.json", "tests/fixtures/fail24.json", "tests/fixtures/fail25.json", "tests/fixtures/fail27.json", "tests/fixtures/fail28.json", "tests/fixtures/fail3.json", "tests/fixtures/fail4.json", "tests/fixtures/fail5.json", "tests/fixtures/fail6.json", "tests/fixtures/fail7.json", "tests/fixtures/fail8.json", "tests/fixtures/fail9.json", "tests/fixtures/pass1.json", "tests/fixtures/pass15.json", "tests/fixtures/pass16.json", "tests/fixtures/pass17.json", "tests/fixtures/pass2.json", "tests/fixtures/pass26.json", "tests/fixtures/pass3.json", "tests/setup_variant.rb", "tests/test_json.rb", "tests/test_json_addition.rb", "tests/test_json_encoding.rb", "tests/test_json_fixtures.rb", "tests/test_json_generate.rb", "tests/test_json_generic_object.rb", "tests/test_json_string_matching.rb", "tests/test_json_unicode.rb", "tools/fuzz.rb", "tools/server.rb"]
|
15
16
|
s.homepage = "http://flori.github.com/json"
|
16
17
|
s.licenses = ["Ruby"]
|
17
18
|
s.rdoc_options = ["--title", "JSON implemention for ruby", "--main", "README.rdoc"]
|
18
|
-
s.
|
19
|
-
s.rubygems_version = "2.1.9"
|
19
|
+
s.rubygems_version = "2.4.5"
|
20
20
|
s.summary = "JSON Implementation for Ruby"
|
21
21
|
s.test_files = ["./tests/test_json.rb", "./tests/test_json_addition.rb", "./tests/test_json_encoding.rb", "./tests/test_json_fixtures.rb", "./tests/test_json_generate.rb", "./tests/test_json_generic_object.rb", "./tests/test_json_string_matching.rb", "./tests/test_json_unicode.rb"]
|
22
22
|
|
data/lib/json/add/complex.rb
CHANGED
@@ -4,10 +4,15 @@ end
|
|
4
4
|
defined?(::Complex) or require 'complex'
|
5
5
|
|
6
6
|
class Complex
|
7
|
+
|
8
|
+
# Deserializes JSON string by converting Real value <tt>r</tt>, imaginary
|
9
|
+
# value <tt>i</tt>, to a Complex object.
|
7
10
|
def self.json_create(object)
|
8
11
|
Complex(object['r'], object['i'])
|
9
12
|
end
|
10
13
|
|
14
|
+
# Returns a hash, that will be turned into a JSON object and represent this
|
15
|
+
# object.
|
11
16
|
def as_json(*)
|
12
17
|
{
|
13
18
|
JSON.create_id => self.class.name,
|
@@ -16,7 +21,8 @@ class Complex
|
|
16
21
|
}
|
17
22
|
end
|
18
23
|
|
24
|
+
# Stores class name (Complex) along with real value <tt>r</tt> and imaginary value <tt>i</tt> as JSON string
|
19
25
|
def to_json(*)
|
20
26
|
as_json.to_json
|
21
27
|
end
|
22
|
-
end
|
28
|
+
end
|
data/lib/json/add/rational.rb
CHANGED
@@ -4,10 +4,14 @@ end
|
|
4
4
|
defined?(::Rational) or require 'rational'
|
5
5
|
|
6
6
|
class Rational
|
7
|
+
# Deserializes JSON string by converting numerator value <tt>n</tt>,
|
8
|
+
# denominator value <tt>d</tt>, to a Rational object.
|
7
9
|
def self.json_create(object)
|
8
10
|
Rational(object['n'], object['d'])
|
9
11
|
end
|
10
12
|
|
13
|
+
# Returns a hash, that will be turned into a JSON object and represent this
|
14
|
+
# object.
|
11
15
|
def as_json(*)
|
12
16
|
{
|
13
17
|
JSON.create_id => self.class.name,
|
@@ -16,6 +20,7 @@ class Rational
|
|
16
20
|
}
|
17
21
|
end
|
18
22
|
|
23
|
+
# Stores class name (Rational) along with numerator value <tt>n</tt> and denominator value <tt>d</tt> as JSON string
|
19
24
|
def to_json(*)
|
20
25
|
as_json.to_json
|
21
26
|
end
|
data/lib/json/add/time.rb
CHANGED
@@ -10,7 +10,7 @@ class Time
|
|
10
10
|
if usec = object.delete('u') # used to be tv_usec -> tv_nsec
|
11
11
|
object['n'] = usec * 1000
|
12
12
|
end
|
13
|
-
if
|
13
|
+
if method_defined?(:tv_nsec)
|
14
14
|
at(object['s'], Rational(object['n'], 1000))
|
15
15
|
else
|
16
16
|
at(object['s'], object['n'] / 1000)
|
data/lib/json/common.rb
CHANGED
@@ -148,7 +148,7 @@ module JSON
|
|
148
148
|
# the default.
|
149
149
|
# * *create_additions*: If set to false, the Parser doesn't create
|
150
150
|
# additions even if a matching class and create_id was found. This option
|
151
|
-
# defaults to
|
151
|
+
# defaults to false.
|
152
152
|
# * *object_class*: Defaults to Hash
|
153
153
|
# * *array_class*: Defaults to Array
|
154
154
|
def parse(source, opts = {})
|
@@ -169,7 +169,7 @@ module JSON
|
|
169
169
|
# to true.
|
170
170
|
# * *create_additions*: If set to false, the Parser doesn't create
|
171
171
|
# additions even if a matching class and create_id was found. This option
|
172
|
-
# defaults to
|
172
|
+
# defaults to false.
|
173
173
|
def parse!(source, opts = {})
|
174
174
|
opts = {
|
175
175
|
:max_nesting => false,
|
@@ -390,7 +390,7 @@ module JSON
|
|
390
390
|
end
|
391
391
|
end
|
392
392
|
opts = JSON.dump_default_options
|
393
|
-
|
393
|
+
opts = opts.merge(:max_nesting => limit) if limit
|
394
394
|
result = generate(obj, opts)
|
395
395
|
if anIO
|
396
396
|
anIO.write result
|
@@ -411,7 +411,7 @@ module JSON
|
|
411
411
|
string
|
412
412
|
end
|
413
413
|
|
414
|
-
#
|
414
|
+
# Shortcut for iconv.
|
415
415
|
if ::String.method_defined?(:encode)
|
416
416
|
# Encodes string using Ruby's _String.encode_
|
417
417
|
def self.iconv(to, from, string)
|
@@ -448,7 +448,7 @@ module ::Kernel
|
|
448
448
|
nil
|
449
449
|
end
|
450
450
|
|
451
|
-
#
|
451
|
+
# Outputs _objs_ to STDOUT as JSON strings in a pretty format, with
|
452
452
|
# indentation and over many lines.
|
453
453
|
def jj(*objs)
|
454
454
|
objs.each do |obj|
|
data/lib/json/version.rb
CHANGED
data/tests/test_json.rb
CHANGED
@@ -491,6 +491,8 @@ EOT
|
|
491
491
|
assert_equal @hash, JSON.load(stringio)
|
492
492
|
assert_equal nil, JSON.load(nil)
|
493
493
|
assert_equal nil, JSON.load('')
|
494
|
+
ensure
|
495
|
+
tempfile.close!
|
494
496
|
end
|
495
497
|
|
496
498
|
def test_load_with_options
|
@@ -515,6 +517,12 @@ EOT
|
|
515
517
|
assert_equal too_deep, output.string
|
516
518
|
end
|
517
519
|
|
520
|
+
def test_dump_should_modify_defaults
|
521
|
+
max_nesting = JSON.dump_default_options[:max_nesting]
|
522
|
+
JSON.dump([], StringIO.new, 10)
|
523
|
+
assert_equal max_nesting, JSON.dump_default_options[:max_nesting]
|
524
|
+
end
|
525
|
+
|
518
526
|
def test_big_integers
|
519
527
|
json1 = JSON([orig = (1 << 31) - 1])
|
520
528
|
assert_equal orig, JSON[json1][0]
|
data/tests/test_json_generate.rb
CHANGED
@@ -73,6 +73,19 @@ EOT
|
|
73
73
|
assert_equal '666', pretty_generate(666, :quirks_mode => true)
|
74
74
|
end
|
75
75
|
|
76
|
+
def test_generate_custom
|
77
|
+
state = State.new(:space_before => " ", :space => " ", :indent => "<i>", :object_nl => "\n", :array_nl => "<a_nl>")
|
78
|
+
json = generate({1=>{2=>3,4=>[5,6]}}, state)
|
79
|
+
assert_equal(<<'EOT'.chomp, json)
|
80
|
+
{
|
81
|
+
<i>"1" : {
|
82
|
+
<i><i>"2" : 3,
|
83
|
+
<i><i>"4" : [<a_nl><i><i><i>5,<a_nl><i><i><i>6<a_nl><i><i>]
|
84
|
+
<i>}
|
85
|
+
}
|
86
|
+
EOT
|
87
|
+
end
|
88
|
+
|
76
89
|
def test_fast_generate
|
77
90
|
json = fast_generate(@hash)
|
78
91
|
assert_equal(JSON.parse(@json2), JSON.parse(json))
|
@@ -215,16 +228,18 @@ EOT
|
|
215
228
|
end
|
216
229
|
|
217
230
|
def test_gc
|
218
|
-
|
219
|
-
|
220
|
-
|
231
|
+
if respond_to?(:assert_in_out_err)
|
232
|
+
assert_in_out_err(%w[-rjson --disable-gems], <<-EOS, [], [])
|
233
|
+
bignum_too_long_to_embed_as_string = 1234567890123456789012345
|
234
|
+
expect = bignum_too_long_to_embed_as_string.to_s
|
235
|
+
GC.stress = true
|
221
236
|
|
222
|
-
|
223
|
-
|
224
|
-
|
237
|
+
10.times do |i|
|
238
|
+
tmp = bignum_too_long_to_embed_as_string.to_json
|
239
|
+
raise "'\#{expect}' is expected, but '\#{tmp}'" unless tmp == expect
|
240
|
+
end
|
241
|
+
EOS
|
225
242
|
end
|
226
|
-
ensure
|
227
|
-
GC.stress = stress
|
228
243
|
end if GC.respond_to?(:stress=)
|
229
244
|
|
230
245
|
def test_configure_using_configure_and_merge
|
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: json
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Frank
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: permutation
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: sdoc
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 0.3.16
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 0.3.16
|
41
41
|
description: This is a JSON implementation as a Ruby extension in C.
|
@@ -44,11 +44,20 @@ executables: []
|
|
44
44
|
extensions:
|
45
45
|
- ext/json/ext/generator/extconf.rb
|
46
46
|
- ext/json/ext/parser/extconf.rb
|
47
|
+
- ext/json/extconf.rb
|
47
48
|
extra_rdoc_files:
|
48
49
|
- README.rdoc
|
49
50
|
files:
|
50
|
-
- .
|
51
|
-
- .
|
51
|
+
- "./tests/test_json.rb"
|
52
|
+
- "./tests/test_json_addition.rb"
|
53
|
+
- "./tests/test_json_encoding.rb"
|
54
|
+
- "./tests/test_json_fixtures.rb"
|
55
|
+
- "./tests/test_json_generate.rb"
|
56
|
+
- "./tests/test_json_generic_object.rb"
|
57
|
+
- "./tests/test_json_string_matching.rb"
|
58
|
+
- "./tests/test_json_unicode.rb"
|
59
|
+
- ".gitignore"
|
60
|
+
- ".travis.yml"
|
52
61
|
- CHANGES
|
53
62
|
- COPYING
|
54
63
|
- COPYING-json-jruby
|
@@ -73,6 +82,7 @@ files:
|
|
73
82
|
- ext/json/ext/parser/parser.c
|
74
83
|
- ext/json/ext/parser/parser.h
|
75
84
|
- ext/json/ext/parser/parser.rl
|
85
|
+
- ext/json/extconf.rb
|
76
86
|
- install.rb
|
77
87
|
- java/src/json/ext/ByteListTranscoder.java
|
78
88
|
- java/src/json/ext/Generator.java
|
@@ -154,48 +164,40 @@ files:
|
|
154
164
|
- tests/test_json_unicode.rb
|
155
165
|
- tools/fuzz.rb
|
156
166
|
- tools/server.rb
|
157
|
-
- ./tests/test_json.rb
|
158
|
-
- ./tests/test_json_addition.rb
|
159
|
-
- ./tests/test_json_encoding.rb
|
160
|
-
- ./tests/test_json_fixtures.rb
|
161
|
-
- ./tests/test_json_generate.rb
|
162
|
-
- ./tests/test_json_generic_object.rb
|
163
|
-
- ./tests/test_json_string_matching.rb
|
164
|
-
- ./tests/test_json_unicode.rb
|
165
167
|
homepage: http://flori.github.com/json
|
166
168
|
licenses:
|
167
169
|
- Ruby
|
168
170
|
metadata: {}
|
169
171
|
post_install_message:
|
170
172
|
rdoc_options:
|
171
|
-
- --title
|
173
|
+
- "--title"
|
172
174
|
- JSON implemention for Ruby
|
173
|
-
- --main
|
175
|
+
- "--main"
|
174
176
|
- README.rdoc
|
175
177
|
require_paths:
|
176
178
|
- lib
|
177
179
|
required_ruby_version: !ruby/object:Gem::Requirement
|
178
180
|
requirements:
|
179
|
-
- -
|
181
|
+
- - ">="
|
180
182
|
- !ruby/object:Gem::Version
|
181
183
|
version: '0'
|
182
184
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
183
185
|
requirements:
|
184
|
-
- -
|
186
|
+
- - ">="
|
185
187
|
- !ruby/object:Gem::Version
|
186
188
|
version: '0'
|
187
189
|
requirements: []
|
188
190
|
rubyforge_project:
|
189
|
-
rubygems_version: 2.
|
191
|
+
rubygems_version: 2.4.5
|
190
192
|
signing_key:
|
191
193
|
specification_version: 4
|
192
194
|
summary: JSON Implementation for Ruby
|
193
195
|
test_files:
|
194
|
-
- ./tests/test_json.rb
|
195
|
-
- ./tests/test_json_addition.rb
|
196
|
-
- ./tests/test_json_encoding.rb
|
197
|
-
- ./tests/test_json_fixtures.rb
|
198
|
-
- ./tests/test_json_generate.rb
|
199
|
-
- ./tests/test_json_generic_object.rb
|
200
|
-
- ./tests/test_json_string_matching.rb
|
201
|
-
- ./tests/test_json_unicode.rb
|
196
|
+
- "./tests/test_json.rb"
|
197
|
+
- "./tests/test_json_addition.rb"
|
198
|
+
- "./tests/test_json_encoding.rb"
|
199
|
+
- "./tests/test_json_fixtures.rb"
|
200
|
+
- "./tests/test_json_generate.rb"
|
201
|
+
- "./tests/test_json_generic_object.rb"
|
202
|
+
- "./tests/test_json_string_matching.rb"
|
203
|
+
- "./tests/test_json_unicode.rb"
|