diff options
author | Florian Frank <flori@ping.de> | 2016-07-26 12:13:02 +0200 |
---|---|---|
committer | Florian Frank <flori@ping.de> | 2016-07-26 12:13:02 +0200 |
commit | 899f4969496ea74ef82121df6c8affdf163eb623 (patch) | |
tree | b8ee7e0146943749b18a3ba088ffd05545523a91 | |
parent | 047814c7a6916bde393e6080c98385c8170d3f98 (diff) | |
parent | 15e550ceafc3c7609bc47997a6f0013ec6959827 (diff) | |
download | json-899f4969496ea74ef82121df6c8affdf163eb623.tar.gz |
Merge branch 'master' of github.com:flori/json
-rw-r--r-- | CHANGES.md | 2 | ||||
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | ext/json/ext/generator/generator.c | 1 | ||||
-rw-r--r-- | tests/json_common_interface_test.rb | 6 |
4 files changed, 7 insertions, 6 deletions
@@ -28,7 +28,7 @@ `JSON.dump_default_options`. * More tests by Michael Mac-Vicar <mmacvicar@gmail.com> and fixing `space_before` accessor in generator. - * Performance on Jruby improvemed by Ben Browning <bbrownin@redhat.com>. + * Performance on Jruby improved by Ben Browning <bbrownin@redhat.com>. * Some fixes to be compatible with the new Ruby 2.2 by Zachary Scott <e@zzak.io> and SHIBATA Hiroshi <hsbt@ruby-lang.org>. @@ -3,8 +3,8 @@ ## Description -This is a implementation of the JSON specification according to RFC 4627 -http://www.ietf.org/rfc/rfc4627.txt . Starting from version 1.0.0 on there +This is a implementation of the JSON specification according to RFC 7159 +http://www.ietf.org/rfc/rfc7159.txt . Starting from version 1.0.0 on there will be two variants available: * A pure ruby variant, that relies on the iconv and the stringscan diff --git a/ext/json/ext/generator/generator.c b/ext/json/ext/generator/generator.c index 2b56721..ef85bb7 100644 --- a/ext/json/ext/generator/generator.c +++ b/ext/json/ext/generator/generator.c @@ -951,6 +951,7 @@ static VALUE cState_generate(VALUE self, VALUE obj) { VALUE result = cState_partial_generate(self, obj); GET_STATE(self); + (void)state; return result; } diff --git a/tests/json_common_interface_test.rb b/tests/json_common_interface_test.rb index b2051d4..29b4a5b 100644 --- a/tests/json_common_interface_test.rb +++ b/tests/json_common_interface_test.rb @@ -47,7 +47,7 @@ class JSONCommonInterfaceTest < Test::Unit::TestCase end def test_deep_const_get - assert_raises(ArgumentError) { JSON.deep_const_get('Nix::Da') } + assert_raise(ArgumentError) { JSON.deep_const_get('Nix::Da') } assert_equal File::SEPARATOR, JSON.deep_const_get('File::SEPARATOR') end @@ -93,8 +93,8 @@ class JSONCommonInterfaceTest < Test::Unit::TestCase def test_load_null assert_equal nil, JSON.load(nil, nil, :allow_blank => true) - assert_raises(TypeError) { JSON.load(nil, nil, :allow_blank => false) } - assert_raises(JSON::ParserError) { JSON.load('', nil, :allow_blank => false) } + assert_raise(TypeError) { JSON.load(nil, nil, :allow_blank => false) } + assert_raise(JSON::ParserError) { JSON.load('', nil, :allow_blank => false) } end def test_dump |