json-jruby 1.4.0-universal-java-1.6 → 1.4.1-universal-java-1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
Binary file
data/lib/json/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module JSON
2
2
  # JSON version
3
- VERSION = '1.4.0'
3
+ VERSION = '1.4.1'
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:
data/tests/test_json.rb CHANGED
@@ -324,4 +324,17 @@ EOT
324
324
  JSON.dump(eval(too_deep), output, 20)
325
325
  assert_equal too_deep, output.string
326
326
  end
327
+
328
+ def test_big_integers
329
+ json1 = JSON([orig = (1 << 31) - 1])
330
+ assert_equal orig, JSON[json1][0]
331
+ json2 = JSON([orig = 1 << 31])
332
+ assert_equal orig, JSON[json2][0]
333
+ json3 = JSON([orig = (1 << 62) - 1])
334
+ assert_equal orig, JSON[json3][0]
335
+ json4 = JSON([orig = 1 << 62])
336
+ assert_equal orig, JSON[json4][0]
337
+ json5 = JSON([orig = 1 << 64])
338
+ assert_equal orig, JSON[json5][0]
339
+ end
327
340
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 4
8
- - 0
9
- version: 1.4.0
8
+ - 1
9
+ version: 1.4.1
10
10
  platform: universal-java-1.6
11
11
  authors:
12
12
  - Daniel Luz
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-23 00:00:00 -03:00
17
+ date: 2010-04-25 00:00:00 -03:00
18
18
  default_executable:
19
19
  dependencies: []
20
20