json 1.7.3-java → 1.7.4-java

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.

Binary file
Binary file
@@ -1,6 +1,6 @@
1
1
  module JSON
2
2
  # JSON version
3
- VERSION = '1.7.3'
3
+ VERSION = '1.7.4'
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:
@@ -119,7 +119,7 @@ class TestJSONAddition < Test::Unit::TestCase
119
119
  json_raw_object = raw.to_json_raw_object
120
120
  hash = { 'json_class' => 'String', 'raw'=> raw_array }
121
121
  assert_equal hash, json_raw_object
122
- assert_match(/\A\{.*\}\Z/, json)
122
+ assert_match(/\A\{.*\}\z/, json)
123
123
  assert_match(/"json_class":"String"/, json)
124
124
  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)
125
125
  raw_again = JSON.parse(json)
@@ -28,13 +28,13 @@ class TestJSONStringMatching < Test::Unit::TestCase
28
28
  t_json = [ t ].to_json
29
29
  assert_equal [ t ],
30
30
  JSON.parse(t_json,
31
- :match_string => { /\A\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}[+-]\d{4}\Z/ => TestTime })
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
33
  JSON.parse(t_json,
34
- :match_string => { /\A\d{3}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}[+-]\d{4}\Z/ => TestTime })
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}\Z/ => TestTime },
37
+ :match_string => { /\A\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}[+-]\d{4}\z/ => TestTime },
38
38
  :create_additions => false)
39
39
  end
40
40
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: json
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.7.3
5
+ version: 1.7.4
6
6
  platform: java
7
7
  authors:
8
8
  - Daniel Luz
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-05-11 00:00:00 Z
13
+ date: 2012-07-26 00:00:00 Z
14
14
  dependencies: []
15
15
 
16
16
  description: A JSON implementation as a JRuby extension.
@@ -23,68 +23,68 @@ extra_rdoc_files: []
23
23
 
24
24
  files:
25
25
  - lib/json.rb
26
- - lib/json/version.rb
27
26
  - lib/json/common.rb
28
27
  - lib/json/ext.rb
29
- - lib/json/pure.rb
30
28
  - lib/json/generic_object.rb
31
- - lib/json/add/symbol.rb
32
- - lib/json/add/struct.rb
33
- - lib/json/add/complex.rb
34
- - lib/json/add/rational.rb
35
- - lib/json/add/exception.rb
36
- - lib/json/add/time.rb
29
+ - lib/json/pure.rb
30
+ - lib/json/version.rb
37
31
  - lib/json/add/bigdecimal.rb
38
- - lib/json/add/date_time.rb
32
+ - lib/json/add/complex.rb
39
33
  - lib/json/add/core.rb
40
- - lib/json/add/range.rb
41
34
  - lib/json/add/date.rb
42
- - lib/json/add/regexp.rb
35
+ - lib/json/add/date_time.rb
36
+ - lib/json/add/exception.rb
43
37
  - lib/json/add/ostruct.rb
44
- - lib/json/pure/generator.rb
45
- - lib/json/pure/parser.rb
38
+ - lib/json/add/range.rb
39
+ - lib/json/add/rational.rb
40
+ - lib/json/add/regexp.rb
41
+ - lib/json/add/struct.rb
42
+ - lib/json/add/symbol.rb
43
+ - lib/json/add/time.rb
46
44
  - lib/json/ext/generator.jar
47
45
  - lib/json/ext/parser.jar
48
- - tests/test_json_string_matching.rb
49
- - tests/test_json_fixtures.rb
46
+ - lib/json/pure/generator.rb
47
+ - lib/json/pure/parser.rb
50
48
  - tests/setup_variant.rb
51
- - tests/test_json_unicode.rb
49
+ - tests/test_json.rb
52
50
  - tests/test_json_addition.rb
53
- - tests/test_json_generate.rb
54
51
  - tests/test_json_encoding.rb
52
+ - tests/test_json_fixtures.rb
53
+ - tests/test_json_generate.rb
55
54
  - tests/test_json_generic_object.rb
56
- - tests/test_json.rb
57
- - tests/fixtures/fail6.json
58
- - tests/fixtures/fail9.json
55
+ - tests/test_json_string_matching.rb
56
+ - tests/test_json_unicode.rb
57
+ - tests/fixtures/fail1.json
59
58
  - tests/fixtures/fail10.json
60
- - tests/fixtures/fail24.json
61
- - tests/fixtures/fail28.json
62
- - tests/fixtures/fail13.json
63
- - tests/fixtures/fail4.json
64
- - tests/fixtures/pass3.json
65
59
  - tests/fixtures/fail11.json
66
- - tests/fixtures/fail14.json
67
- - tests/fixtures/fail3.json
68
60
  - tests/fixtures/fail12.json
69
- - tests/fixtures/pass16.json
70
- - tests/fixtures/pass15.json
71
- - tests/fixtures/fail20.json
72
- - tests/fixtures/fail8.json
73
- - tests/fixtures/pass2.json
74
- - tests/fixtures/fail5.json
75
- - tests/fixtures/fail1.json
76
- - tests/fixtures/fail25.json
77
- - tests/fixtures/pass17.json
78
- - tests/fixtures/fail7.json
79
- - tests/fixtures/pass26.json
80
- - tests/fixtures/fail21.json
81
- - tests/fixtures/pass1.json
82
- - tests/fixtures/fail23.json
61
+ - tests/fixtures/fail13.json
62
+ - tests/fixtures/fail14.json
83
63
  - tests/fixtures/fail18.json
64
+ - tests/fixtures/fail19.json
84
65
  - tests/fixtures/fail2.json
66
+ - tests/fixtures/fail20.json
67
+ - tests/fixtures/fail21.json
85
68
  - tests/fixtures/fail22.json
69
+ - tests/fixtures/fail23.json
70
+ - tests/fixtures/fail24.json
71
+ - tests/fixtures/fail25.json
86
72
  - tests/fixtures/fail27.json
87
- - tests/fixtures/fail19.json
73
+ - tests/fixtures/fail28.json
74
+ - tests/fixtures/fail3.json
75
+ - tests/fixtures/fail4.json
76
+ - tests/fixtures/fail5.json
77
+ - tests/fixtures/fail6.json
78
+ - tests/fixtures/fail7.json
79
+ - tests/fixtures/fail8.json
80
+ - tests/fixtures/fail9.json
81
+ - tests/fixtures/pass1.json
82
+ - tests/fixtures/pass15.json
83
+ - tests/fixtures/pass16.json
84
+ - tests/fixtures/pass17.json
85
+ - tests/fixtures/pass2.json
86
+ - tests/fixtures/pass26.json
87
+ - tests/fixtures/pass3.json
88
88
  homepage: http://json-jruby.rubyforge.org/
89
89
  licenses: []
90
90