oj 3.7.3 → 3.7.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 233fbd1545ef5a4c1064168b9fe19f08b056e8f471f7f4f35f6655130808c5d8
4
- data.tar.gz: f31719ad7ca3f780b024bc24b6282bc5c476d6cf16e836d439afde436bffcef8
3
+ metadata.gz: 63afe8de8789be3dcae927133f970ce4c1ebcf2a95e559fd74d001002f21a976
4
+ data.tar.gz: 241ad4cdb767fbaa9b39eb3772748db8217d0a3bf9545300ff63d16722abf826
5
5
  SHA512:
6
- metadata.gz: b7f7fe1fd40e08647e012ea1935bc5f047fadd41e3315560c0659d896b80dd2f60021ab0c6307dc8c3b6b8be23c52b07b501720179538d7760bc7b6fc21d565f
7
- data.tar.gz: 945beb1ef3489c36e56e85a7500ed45ff2673024263c02d81ac4de31833b652c5ff1497a7a490350eb9223a926273ca80008f6e87a0fbcce436c448c53ae9b4d
6
+ metadata.gz: c8b9183590f1ca6673d53c5e885afa958164ea0b7ad1e6ade77d5527ecad0d56ea2e9738daa85707c1f2d5fedb7c23779bc4b932a4345ca9f63e8e6520e579b5
7
+ data.tar.gz: 3a51f9db59bdf848f16eed3ddc24ebe1c9d96d408fd0ec11f513c335c85deb79cf2c6b2c7f587f2acc9f9fa77510f51094331fba1150993b6d396b8f4774336e
@@ -646,8 +646,15 @@ oj_parse2(ParseInfo pi) {
646
646
  read_str(pi);
647
647
  break;
648
648
  //case '+':
649
- case '-':
650
649
  case '+':
650
+ if (CompatMode == pi->options.mode) {
651
+ oj_set_error_at(pi, oj_parse_error_class, __FILE__, __LINE__, "unexpected character");
652
+ return;
653
+ }
654
+ pi->cur--;
655
+ read_num(pi);
656
+ break;
657
+ case '-':
651
658
  case '0':
652
659
  case '1':
653
660
  case '2':
@@ -664,6 +664,13 @@ oj_sparse2(ParseInfo pi) {
664
664
  read_str(pi);
665
665
  break;
666
666
  case '+':
667
+ if (CompatMode == pi->options.mode) {
668
+ oj_set_error_at(pi, oj_parse_error_class, __FILE__, __LINE__, "unexpected character");
669
+ return;
670
+ }
671
+ pi->cur--;
672
+ read_num(pi);
673
+ break;
667
674
  case '-':
668
675
  case '0':
669
676
  case '1':
@@ -1,5 +1,5 @@
1
1
 
2
2
  module Oj
3
3
  # Current version of the module.
4
- VERSION = '3.7.3'
4
+ VERSION = '3.7.4'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oj
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.7.3
4
+ version: 3.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Ohler