Skip to content

Commit 63b074a

Browse files
authored
Merge pull request #552 from flori/prepare-to-release-2-7-0
Added changes for 2.7.0 and restore entries to 2.6.3 and 2.6.2
2 parents 10a4542 + ca54612 commit 63b074a

4 files changed

Lines changed: 56 additions & 32 deletions

File tree

CHANGES.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,30 @@
11
# Changes
22

3-
* `escape_slash` option was renamed as `script_safe` and now also escape U+2028 and U+2029. `escape_slash` is now an alias of `script_safe`.
3+
### 2023-12-01 (2.7.0)
4+
5+
* Add a strict option to Generator #519
6+
* `escape_slash` option was renamed as `script_safe` and now also escape U+2028 and U+2029. `escape_slash` is now an alias of `script_safe` #525
7+
* Remove unnecessary initialization of create_id in JSON.parse() #454
8+
* Improvements to Hash#to_json in pure implementation generator #203
9+
* Use ruby_xfree to free buffers #518
10+
* Fix "unexpected token" offset for Infinity #507
11+
* Avoid using deprecated BigDecimal.new on JRuby #546
12+
* Removed code for Ruby 1.8 #540
13+
* Rename JSON::ParseError to JSON:ParserError #530
14+
* Call super in included hook #486
15+
* JRuby requires a minimum of Java 8 #516
16+
* Always indent even if empty #517
17+
18+
### 2022-11-30 (2.6.3)
19+
20+
* bugfix json/pure mixing escaped with literal unicode raises Encoding::CompatibilityError #483
21+
* Stop including the parser source __LINE__ in exceptions #470
22+
23+
### 2022-11-17 (2.6.2)
24+
25+
* Remove unknown keyword arg from DateTime.parse #488
26+
* Ignore java artifacts by @hsbt #489
27+
* Fix parser bug for empty string allocation #496
428

529
### 2021-10-24 (2.6.1)
630

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.6.3
1+
2.7.0

java/src/json/ext/Parser.java

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ private Ruby getRuntime() {
343343

344344

345345

346-
// line 344 "Parser.java"
346+
// line 347 "Parser.java"
347347
private static byte[] init__JSON_value_actions_0()
348348
{
349349
return new byte [] {
@@ -465,14 +465,14 @@ void parseValue(ParserResult res, int p, int pe) {
465465
IRubyObject result = null;
466466

467467

468-
// line 464 "Parser.java"
468+
// line 469 "Parser.java"
469469
{
470470
cs = JSON_value_start;
471471
}
472472

473473
// line 478 "Parser.rl"
474474

475-
// line 469 "Parser.java"
475+
// line 476 "Parser.java"
476476
{
477477
int _klen;
478478
int _trans = 0;
@@ -504,7 +504,7 @@ void parseValue(ParserResult res, int p, int pe) {
504504
{ p += 1; _goto_targ = 5; if (true) continue _goto;}
505505
}
506506
break;
507-
// line 501 "Parser.java"
507+
// line 508 "Parser.java"
508508
}
509509
}
510510

@@ -676,7 +676,7 @@ else if ( data[p] > _JSON_value_trans_keys[_mid+1] )
676676
}
677677
}
678678
break;
679-
// line 673 "Parser.java"
679+
// line 680 "Parser.java"
680680
}
681681
}
682682
}
@@ -709,7 +709,7 @@ else if ( data[p] > _JSON_value_trans_keys[_mid+1] )
709709
}
710710

711711

712-
// line 704 "Parser.java"
712+
// line 713 "Parser.java"
713713
private static byte[] init__JSON_integer_actions_0()
714714
{
715715
return new byte [] {
@@ -826,15 +826,15 @@ int parseIntegerInternal(int p, int pe) {
826826
int cs = EVIL;
827827

828828

829-
// line 819 "Parser.java"
829+
// line 830 "Parser.java"
830830
{
831831
cs = JSON_integer_start;
832832
}
833833

834834
// line 518 "Parser.rl"
835835
int memo = p;
836836

837-
// line 825 "Parser.java"
837+
// line 838 "Parser.java"
838838
{
839839
int _klen;
840840
int _trans = 0;
@@ -921,7 +921,7 @@ else if ( data[p] > _JSON_integer_trans_keys[_mid+1] )
921921
{ p += 1; _goto_targ = 5; if (true) continue _goto;}
922922
}
923923
break;
924-
// line 912 "Parser.java"
924+
// line 925 "Parser.java"
925925
}
926926
}
927927
}
@@ -963,7 +963,7 @@ RubyInteger bytesToInum(Ruby runtime, ByteList num) {
963963
}
964964

965965

966-
// line 952 "Parser.java"
966+
// line 967 "Parser.java"
967967
private static byte[] init__JSON_float_actions_0()
968968
{
969969
return new byte [] {
@@ -1084,15 +1084,15 @@ int parseFloatInternal(int p, int pe) {
10841084
int cs = EVIL;
10851085

10861086

1087-
// line 1071 "Parser.java"
1087+
// line 1088 "Parser.java"
10881088
{
10891089
cs = JSON_float_start;
10901090
}
10911091

10921092
// line 573 "Parser.rl"
10931093
int memo = p;
10941094

1095-
// line 1077 "Parser.java"
1095+
// line 1096 "Parser.java"
10961096
{
10971097
int _klen;
10981098
int _trans = 0;
@@ -1179,7 +1179,7 @@ else if ( data[p] > _JSON_float_trans_keys[_mid+1] )
11791179
{ p += 1; _goto_targ = 5; if (true) continue _goto;}
11801180
}
11811181
break;
1182-
// line 1164 "Parser.java"
1182+
// line 1183 "Parser.java"
11831183
}
11841184
}
11851185
}
@@ -1209,7 +1209,7 @@ else if ( data[p] > _JSON_float_trans_keys[_mid+1] )
12091209
}
12101210

12111211

1212-
// line 1192 "Parser.java"
1212+
// line 1213 "Parser.java"
12131213
private static byte[] init__JSON_string_actions_0()
12141214
{
12151215
return new byte [] {
@@ -1319,15 +1319,15 @@ void parseString(ParserResult res, int p, int pe) {
13191319
IRubyObject result = null;
13201320

13211321

1322-
// line 1300 "Parser.java"
1322+
// line 1323 "Parser.java"
13231323
{
13241324
cs = JSON_string_start;
13251325
}
13261326

13271327
// line 621 "Parser.rl"
13281328
int memo = p;
13291329

1330-
// line 1306 "Parser.java"
1330+
// line 1331 "Parser.java"
13311331
{
13321332
int _klen;
13331333
int _trans = 0;
@@ -1429,7 +1429,7 @@ else if ( data[p] > _JSON_string_trans_keys[_mid+1] )
14291429
{ p += 1; _goto_targ = 5; if (true) continue _goto;}
14301430
}
14311431
break;
1432-
// line 1408 "Parser.java"
1432+
// line 1433 "Parser.java"
14331433
}
14341434
}
14351435
}
@@ -1494,7 +1494,7 @@ public void visit(IRubyObject pattern, IRubyObject klass) {
14941494
}
14951495

14961496

1497-
// line 1471 "Parser.java"
1497+
// line 1498 "Parser.java"
14981498
private static byte[] init__JSON_array_actions_0()
14991499
{
15001500
return new byte [] {
@@ -1627,14 +1627,14 @@ void parseArray(ParserResult res, int p, int pe) {
16271627
}
16281628

16291629

1630-
// line 1602 "Parser.java"
1630+
// line 1631 "Parser.java"
16311631
{
16321632
cs = JSON_array_start;
16331633
}
16341634

16351635
// line 722 "Parser.rl"
16361636

1637-
// line 1607 "Parser.java"
1637+
// line 1638 "Parser.java"
16381638
{
16391639
int _klen;
16401640
int _trans = 0;
@@ -1738,7 +1738,7 @@ else if ( data[p] > _JSON_array_trans_keys[_mid+1] )
17381738
{ p += 1; _goto_targ = 5; if (true) continue _goto;}
17391739
}
17401740
break;
1741-
// line 1711 "Parser.java"
1741+
// line 1742 "Parser.java"
17421742
}
17431743
}
17441744
}
@@ -1768,7 +1768,7 @@ else if ( data[p] > _JSON_array_trans_keys[_mid+1] )
17681768
}
17691769

17701770

1771-
// line 1739 "Parser.java"
1771+
// line 1772 "Parser.java"
17721772
private static byte[] init__JSON_object_actions_0()
17731773
{
17741774
return new byte [] {
@@ -1916,14 +1916,14 @@ void parseObject(ParserResult res, int p, int pe) {
19161916
}
19171917

19181918

1919-
// line 1885 "Parser.java"
1919+
// line 1920 "Parser.java"
19201920
{
19211921
cs = JSON_object_start;
19221922
}
19231923

19241924
// line 806 "Parser.rl"
19251925

1926-
// line 1890 "Parser.java"
1926+
// line 1927 "Parser.java"
19271927
{
19281928
int _klen;
19291929
int _trans = 0;
@@ -2047,7 +2047,7 @@ else if ( data[p] > _JSON_object_trans_keys[_mid+1] )
20472047
{ p += 1; _goto_targ = 5; if (true) continue _goto;}
20482048
}
20492049
break;
2050-
// line 2014 "Parser.java"
2050+
// line 2051 "Parser.java"
20512051
}
20522052
}
20532053
}
@@ -2100,7 +2100,7 @@ else if ( data[p] > _JSON_object_trans_keys[_mid+1] )
21002100
}
21012101

21022102

2103-
// line 2065 "Parser.java"
2103+
// line 2104 "Parser.java"
21042104
private static byte[] init__JSON_actions_0()
21052105
{
21062106
return new byte [] {
@@ -2213,7 +2213,7 @@ public IRubyObject parseImplemetation() {
22132213
ParserResult res = new ParserResult();
22142214

22152215

2216-
// line 2176 "Parser.java"
2216+
// line 2217 "Parser.java"
22172217
{
22182218
cs = JSON_start;
22192219
}
@@ -2222,7 +2222,7 @@ public IRubyObject parseImplemetation() {
22222222
p = byteList.begin();
22232223
pe = p + byteList.length();
22242224

2225-
// line 2183 "Parser.java"
2225+
// line 2226 "Parser.java"
22262226
{
22272227
int _klen;
22282228
int _trans = 0;
@@ -2315,7 +2315,7 @@ else if ( data[p] > _JSON_trans_keys[_mid+1] )
23152315
}
23162316
}
23172317
break;
2318-
// line 2276 "Parser.java"
2318+
// line 2319 "Parser.java"
23192319
}
23202320
}
23212321
}

lib/json/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: false
22
module JSON
33
# JSON version
4-
VERSION = '2.6.3'
4+
VERSION = '2.7.0'
55
VERSION_ARRAY = VERSION.split(/\./).map { |x| x.to_i } # :nodoc:
66
VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
77
VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:

0 commit comments

Comments
 (0)