json 2.19.9 → 2.20.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.
data/lib/json/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JSON
4
- VERSION = '2.19.9'
4
+ VERSION = '2.20.0'
5
5
  end
data/lib/json.rb CHANGED
@@ -145,11 +145,11 @@ require 'json/common'
145
145
  # # warning: detected duplicate keys in JSON object.
146
146
  # # This will raise an error in json 3.0 unless enabled via `allow_duplicate_key: true`
147
147
  #
148
- # When set to `+true+`
148
+ # When set to +true+:
149
149
  # # The last value is used.
150
150
  # JSON.parse('{"a": 1, "a":2}') => {"a" => 2}
151
151
  #
152
- # When set to `+false+`, the future default:
152
+ # When set to +false+, the future default:
153
153
  # JSON.parse('{"a": 1, "a":2}') => duplicate key at line 1 column 1 (JSON::ParserError)
154
154
  #
155
155
  # ---
@@ -184,6 +184,20 @@ require 'json/common'
184
184
  #
185
185
  # ---
186
186
  #
187
+ # Option +allow_comments+ (boolean) specifies whether to allow
188
+ # JavaScript style comments (either <tt>// comment</tt> or <tt>/* comment */</tt>);
189
+ # defaults to +false+.
190
+ #
191
+ # When not specified, a deprecation warning is emitted if a comment is encountered.
192
+ #
193
+ # When set to +true+, comments are ignored:
194
+ # JSON.parse('/* comment */ {"a": 1, "a":2}') # => {"a" => 2}
195
+ #
196
+ # When set to +false+, the future default:
197
+ # JSON.parse('/* comment */ {"a": 1, "a":2}') # unexpected character: '/' at line 1 column 1 (JSON::ParserError)
198
+ #
199
+ # ---
200
+ #
187
201
  # Option +allow_control_characters+ (boolean) specifies whether to allow
188
202
  # unescaped ASCII control characters, such as newlines, in strings;
189
203
  # defaults to +false+.
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.19.9
4
+ version: 2.20.0
5
5
  platform: ruby
6
6
  authors:
7
- - Florian Frank
7
+ - Florian Frank
8
8
  bindir: bin
9
9
  cert_chain: []
10
10
  date: 1980-01-02 00:00:00.000000000 Z
@@ -13,80 +13,78 @@ description: This is a JSON implementation as a Ruby extension in C.
13
13
  email: flori@ping.de
14
14
  executables: []
15
15
  extensions:
16
- - ext/json/ext/generator/extconf.rb
17
- - ext/json/ext/parser/extconf.rb
16
+ - ext/json/ext/generator/extconf.rb
17
+ - ext/json/ext/parser/extconf.rb
18
18
  extra_rdoc_files:
19
- - README.md
19
+ - README.md
20
20
  files:
21
- - BSDL
22
- - CHANGES.md
23
- - COPYING
24
- - LEGAL
25
- - README.md
26
- - ext/json/ext/fbuffer/fbuffer.h
27
- - ext/json/ext/generator/extconf.rb
28
- - ext/json/ext/generator/generator.c
29
- - ext/json/ext/json.h
30
- - ext/json/ext/parser/extconf.rb
31
- - ext/json/ext/parser/parser.c
32
- - ext/json/ext/simd/conf.rb
33
- - ext/json/ext/simd/simd.h
34
- - ext/json/ext/vendor/fpconv.c
35
- - ext/json/ext/vendor/jeaiii-ltoa.h
36
- - ext/json/ext/vendor/ryu.h
37
- - json.gemspec
38
- - lib/json.rb
39
- - lib/json/add/bigdecimal.rb
40
- - lib/json/add/complex.rb
41
- - lib/json/add/core.rb
42
- - lib/json/add/date.rb
43
- - lib/json/add/date_time.rb
44
- - lib/json/add/exception.rb
45
- - lib/json/add/ostruct.rb
46
- - lib/json/add/range.rb
47
- - lib/json/add/rational.rb
48
- - lib/json/add/regexp.rb
49
- - lib/json/add/set.rb
50
- - lib/json/add/string.rb
51
- - lib/json/add/struct.rb
52
- - lib/json/add/symbol.rb
53
- - lib/json/add/time.rb
54
- - lib/json/common.rb
55
- - lib/json/ext.rb
56
- - lib/json/ext/generator/state.rb
57
- - lib/json/generic_object.rb
58
- - lib/json/truffle_ruby/generator.rb
59
- - lib/json/version.rb
60
- homepage: "https://github.com/ruby/json"
21
+ - BSDL
22
+ - CHANGES.md
23
+ - COPYING
24
+ - LEGAL
25
+ - README.md
26
+ - ext/json/ext/fbuffer/fbuffer.h
27
+ - ext/json/ext/generator/extconf.rb
28
+ - ext/json/ext/generator/generator.c
29
+ - ext/json/ext/json.h
30
+ - ext/json/ext/parser/extconf.rb
31
+ - ext/json/ext/parser/parser.c
32
+ - ext/json/ext/simd/conf.rb
33
+ - ext/json/ext/simd/simd.h
34
+ - ext/json/ext/vendor/fast_float_parser.h
35
+ - ext/json/ext/vendor/fpconv.c
36
+ - ext/json/ext/vendor/jeaiii-ltoa.h
37
+ - json.gemspec
38
+ - lib/json.rb
39
+ - lib/json/add/bigdecimal.rb
40
+ - lib/json/add/complex.rb
41
+ - lib/json/add/core.rb
42
+ - lib/json/add/date.rb
43
+ - lib/json/add/date_time.rb
44
+ - lib/json/add/exception.rb
45
+ - lib/json/add/ostruct.rb
46
+ - lib/json/add/range.rb
47
+ - lib/json/add/rational.rb
48
+ - lib/json/add/regexp.rb
49
+ - lib/json/add/set.rb
50
+ - lib/json/add/string.rb
51
+ - lib/json/add/struct.rb
52
+ - lib/json/add/symbol.rb
53
+ - lib/json/add/time.rb
54
+ - lib/json/common.rb
55
+ - lib/json/ext.rb
56
+ - lib/json/ext/generator/state.rb
57
+ - lib/json/generic_object.rb
58
+ - lib/json/truffle_ruby/generator.rb
59
+ - lib/json/version.rb
60
+ homepage: https://github.com/ruby/json
61
61
  licenses:
62
- - Ruby
62
+ - Ruby
63
63
  metadata:
64
- bug_tracker_uri: "https://github.com/ruby/json/issues"
65
- changelog_uri: "https://github.com/ruby/json/blob/master/CHANGES.md"
66
- documentation_uri: "https://docs.ruby-lang.org/en/master/JSON.html"
67
- homepage_uri: "https://github.com/ruby/json"
68
- source_code_uri: "https://github.com/ruby/json"
64
+ bug_tracker_uri: https://github.com/ruby/json/issues
65
+ changelog_uri: https://github.com/ruby/json/blob/master/CHANGES.md
66
+ documentation_uri: https://docs.ruby-lang.org/en/master/JSON.html
67
+ homepage_uri: https://github.com/ruby/json
68
+ source_code_uri: https://github.com/ruby/json
69
69
  rdoc_options:
70
- - "--title"
71
- - JSON implementation for Ruby
72
- - "--main"
73
- - README.md
70
+ - "--title"
71
+ - JSON implementation for Ruby
72
+ - "--main"
73
+ - README.md
74
74
  require_paths:
75
- - lib
75
+ - lib
76
76
  required_ruby_version: !ruby/object:Gem::Requirement
77
77
  requirements:
78
- -
79
- - ">="
80
- - !ruby/object:Gem::Version
81
- version: "2.7"
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ version: '2.7'
82
81
  required_rubygems_version: !ruby/object:Gem::Requirement
83
82
  requirements:
84
- -
85
- - ">="
86
- - !ruby/object:Gem::Version
87
- version: "0"
83
+ - - ">="
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
88
86
  requirements: []
89
- rubygems_version: 4.1.0.dev
87
+ rubygems_version: 4.0.12
90
88
  specification_version: 4
91
89
  summary: JSON Implementation for Ruby
92
90
  test_files: []