json_pure 1.8.1 → 1.8.2
Sign up to get free protection for your applications and to get access to all the features.
- 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 +32 -31
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,55 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: json_pure
|
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
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: 0.9.2
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 0.9.2
|
55
55
|
description: This is a JSON implementation in pure Ruby.
|
@@ -59,8 +59,16 @@ extensions: []
|
|
59
59
|
extra_rdoc_files:
|
60
60
|
- README.rdoc
|
61
61
|
files:
|
62
|
-
- .
|
63
|
-
- .
|
62
|
+
- "./tests/test_json.rb"
|
63
|
+
- "./tests/test_json_addition.rb"
|
64
|
+
- "./tests/test_json_encoding.rb"
|
65
|
+
- "./tests/test_json_fixtures.rb"
|
66
|
+
- "./tests/test_json_generate.rb"
|
67
|
+
- "./tests/test_json_generic_object.rb"
|
68
|
+
- "./tests/test_json_string_matching.rb"
|
69
|
+
- "./tests/test_json_unicode.rb"
|
70
|
+
- ".gitignore"
|
71
|
+
- ".travis.yml"
|
64
72
|
- CHANGES
|
65
73
|
- COPYING
|
66
74
|
- COPYING-json-jruby
|
@@ -85,6 +93,7 @@ files:
|
|
85
93
|
- ext/json/ext/parser/parser.c
|
86
94
|
- ext/json/ext/parser/parser.h
|
87
95
|
- ext/json/ext/parser/parser.rl
|
96
|
+
- ext/json/extconf.rb
|
88
97
|
- install.rb
|
89
98
|
- java/src/json/ext/ByteListTranscoder.java
|
90
99
|
- java/src/json/ext/Generator.java
|
@@ -166,48 +175,40 @@ files:
|
|
166
175
|
- tests/test_json_unicode.rb
|
167
176
|
- tools/fuzz.rb
|
168
177
|
- tools/server.rb
|
169
|
-
- ./tests/test_json.rb
|
170
|
-
- ./tests/test_json_addition.rb
|
171
|
-
- ./tests/test_json_encoding.rb
|
172
|
-
- ./tests/test_json_fixtures.rb
|
173
|
-
- ./tests/test_json_generate.rb
|
174
|
-
- ./tests/test_json_generic_object.rb
|
175
|
-
- ./tests/test_json_string_matching.rb
|
176
|
-
- ./tests/test_json_unicode.rb
|
177
178
|
homepage: http://flori.github.com/json
|
178
179
|
licenses:
|
179
180
|
- Ruby
|
180
181
|
metadata: {}
|
181
182
|
post_install_message:
|
182
183
|
rdoc_options:
|
183
|
-
- --title
|
184
|
+
- "--title"
|
184
185
|
- JSON implemention for ruby
|
185
|
-
- --main
|
186
|
+
- "--main"
|
186
187
|
- README.rdoc
|
187
188
|
require_paths:
|
188
189
|
- lib
|
189
190
|
required_ruby_version: !ruby/object:Gem::Requirement
|
190
191
|
requirements:
|
191
|
-
- -
|
192
|
+
- - ">="
|
192
193
|
- !ruby/object:Gem::Version
|
193
194
|
version: '0'
|
194
195
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
195
196
|
requirements:
|
196
|
-
- -
|
197
|
+
- - ">="
|
197
198
|
- !ruby/object:Gem::Version
|
198
199
|
version: '0'
|
199
200
|
requirements: []
|
200
201
|
rubyforge_project:
|
201
|
-
rubygems_version: 2.
|
202
|
+
rubygems_version: 2.4.5
|
202
203
|
signing_key:
|
203
204
|
specification_version: 4
|
204
205
|
summary: JSON Implementation for Ruby
|
205
206
|
test_files:
|
206
|
-
- ./tests/test_json.rb
|
207
|
-
- ./tests/test_json_addition.rb
|
208
|
-
- ./tests/test_json_encoding.rb
|
209
|
-
- ./tests/test_json_fixtures.rb
|
210
|
-
- ./tests/test_json_generate.rb
|
211
|
-
- ./tests/test_json_generic_object.rb
|
212
|
-
- ./tests/test_json_string_matching.rb
|
213
|
-
- ./tests/test_json_unicode.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_generic_object.rb"
|
213
|
+
- "./tests/test_json_string_matching.rb"
|
214
|
+
- "./tests/test_json_unicode.rb"
|