json 2.0.3-java → 2.0.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.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bc4326a2d8a0a021486ed228c6d6a5291d7734b8
4
- data.tar.gz: e8b3bcdf6d6bd491f5fcdb646b30a977f8324d03
3
+ metadata.gz: d0db7a736d440117cc169284329a8216abff741c
4
+ data.tar.gz: e6d9b23ed0ea1bce5f817986228b0aeb37c20299
5
5
  SHA512:
6
- metadata.gz: c5d00fcbbe4029a563d2cba6c5a349e9f1281138471c74c425df02e208e735c3f57f4c8f2f619ddc1ddf7191a41ea1890db1b479e08cffd1bb012ee8dd7f75f3
7
- data.tar.gz: 350beb5ab66e8af46a92124697350a01435ce4b39a3163b6a8423d16e88c07e14c2d055efaf34537e1066041fb39a262b7247c832fb95f05fb62d29a6735447d
6
+ metadata.gz: 41b6f438f4e8306df74bf7a7ff00921b1512600b91e862d480c27c7c2227a65bcafcc12f40e18f348d006a6dcfee9b2dc93534307b90c1b6f2e2e7dbdecbe8f7
7
+ data.tar.gz: b53ad6c59238d6f52bd96165582df10309ade77010b76a18a8babe3b3a02b6712130058fa46bb51b88a815336ea343c8d9308ee94a0e9b5b5ec1b9b2b2a9975b
Binary file
Binary file
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: false
2
2
  module JSON
3
3
  # JSON version
4
- VERSION = '2.0.3'
4
+ VERSION = '2.0.4'
5
5
  VERSION_ARRAY = VERSION.split(/\./).map { |x| x.to_i } # :nodoc:
6
6
  VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
7
7
  VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
@@ -79,6 +79,8 @@ class JSONEncodingTest < Test::Unit::TestCase
79
79
  json = '["\ud840\udc01"]'
80
80
  assert_equal json, generate(utf8, :ascii_only => true)
81
81
  assert_equal utf8, parse(json)
82
+ assert_raises(JSON::ParserError) { parse('"\u"') }
83
+ assert_raises(JSON::ParserError) { parse('"\ud800"') }
82
84
  end
83
85
 
84
86
  def test_chars
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.0.4
5
5
  platform: java
6
6
  authors:
7
7
  - Daniel Luz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-12 00:00:00.000000000 Z
11
+ date: 2017-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement