json 2.6.2 → 2.7.0
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.
- checksums.yaml +4 -4
- data/CHANGES.md +39 -0
- data/README.md +4 -4
- data/VERSION +1 -1
- data/ext/json/ext/generator/generator.c +86 -21
- data/ext/json/ext/generator/generator.h +8 -5
- data/ext/json/ext/parser/parser.c +1828 -2964
- data/ext/json/ext/parser/parser.rl +85 -100
- data/json.gemspec +3 -3
- data/lib/json/add/bigdecimal.rb +5 -2
- data/lib/json/add/range.rb +22 -7
- data/lib/json/common.rb +11 -27
- data/lib/json/pure/generator.rb +62 -28
- data/lib/json/pure/parser.rb +1 -1
- data/lib/json/version.rb +1 -1
- data/lib/json.rb +9 -0
- metadata +6 -6
data/lib/json.rb
CHANGED
|
@@ -285,6 +285,15 @@ require 'json/common'
|
|
|
285
285
|
# # Raises JSON::NestingError (nesting of 2 is too deep):
|
|
286
286
|
# JSON.generate(obj, max_nesting: 2)
|
|
287
287
|
#
|
|
288
|
+
# ====== Escaping Options
|
|
289
|
+
#
|
|
290
|
+
# Options +script_safe+ (boolean) specifies wether <tt>'\u2028'</tt>, <tt>'\u2029'</tt>
|
|
291
|
+
# and <tt>'/'</tt> should be escaped as to make the JSON object safe to interpolate in script
|
|
292
|
+
# tags.
|
|
293
|
+
#
|
|
294
|
+
# Options +ascii_only+ (boolean) specifies wether all characters outside the ASCII range
|
|
295
|
+
# should be escaped.
|
|
296
|
+
#
|
|
288
297
|
# ====== Output Options
|
|
289
298
|
#
|
|
290
299
|
# The default formatting options generate the most compact
|
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.
|
|
4
|
+
version: 2.7.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Florian Frank
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-12-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: This is a JSON implementation as a Ruby extension in C.
|
|
14
14
|
email: flori@ping.de
|
|
@@ -58,14 +58,14 @@ files:
|
|
|
58
58
|
- lib/json/pure/generator.rb
|
|
59
59
|
- lib/json/pure/parser.rb
|
|
60
60
|
- lib/json/version.rb
|
|
61
|
-
homepage:
|
|
61
|
+
homepage: https://flori.github.io/json
|
|
62
62
|
licenses:
|
|
63
63
|
- Ruby
|
|
64
64
|
metadata:
|
|
65
65
|
bug_tracker_uri: https://github.com/flori/json/issues
|
|
66
66
|
changelog_uri: https://github.com/flori/json/blob/master/CHANGES.md
|
|
67
|
-
documentation_uri:
|
|
68
|
-
homepage_uri:
|
|
67
|
+
documentation_uri: https://flori.github.io/json/doc/index.html
|
|
68
|
+
homepage_uri: https://flori.github.io/json
|
|
69
69
|
source_code_uri: https://github.com/flori/json
|
|
70
70
|
wiki_uri: https://github.com/flori/json/wiki
|
|
71
71
|
post_install_message:
|
|
@@ -87,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
87
87
|
- !ruby/object:Gem::Version
|
|
88
88
|
version: '0'
|
|
89
89
|
requirements: []
|
|
90
|
-
rubygems_version: 3.
|
|
90
|
+
rubygems_version: 3.5.0.dev
|
|
91
91
|
signing_key:
|
|
92
92
|
specification_version: 4
|
|
93
93
|
summary: JSON Implementation for Ruby
|