optimistic-json 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 8921b933a425315d98b2a7e4e8ecab560735750f32c7a8a81c7a2a1fd2b9620b
4
+ data.tar.gz: 30221f5b5cce2acfb4638cb2fc07d74de281d100f0312603bc8ff944b76b0b8d
5
+ SHA512:
6
+ metadata.gz: 5d4024cd6f011f6ea726202d948bc56892c7bbf498b7a759dd95775413cc30fb01723623081002dfd956e90aceb5bcc03802d88f63182b3171dc398986525302
7
+ data.tar.gz: f6855058a1a01a3ce7200f3f27c7fd8eafe7d06b579d8ca900201e67094ce5de63389e6961519b73941692543f46f7a94b98ef5f587009ff342db66083531114
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,30 @@
1
+ require: rubocop-rspec
2
+
3
+ AllCops:
4
+ TargetRubyVersion: 2.6
5
+
6
+ Style/StringLiterals:
7
+ Enabled: true
8
+ EnforcedStyle: double_quotes
9
+
10
+ Style/StringLiteralsInInterpolation:
11
+ Enabled: true
12
+ EnforcedStyle: double_quotes
13
+
14
+ Layout/LineLength:
15
+ Max: 120
16
+
17
+ Metrics/MethodLength:
18
+ Max: 20
19
+
20
+ Metrics/ClassLength:
21
+ Max: 200
22
+
23
+ Metrics/AbcSize:
24
+ Max: 30
25
+
26
+ Lint/BooleanSymbol:
27
+ Enabled: false
28
+
29
+ Rspec/NestedGroups:
30
+ Max: 30
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2023-12-03
4
+
5
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at charleschanlee@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2023 Charles C. Lee
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,46 @@
1
+ # Optimistic::Json
2
+
3
+ A Ruby implementation of [`best-effort-json-parser`](https://github.com/beenotung/best-effort-json-parser) which attempts to parse incomplete JSON in a best-effort manner.
4
+
5
+ ## Installation
6
+
7
+ Install the gem and add to the application's Gemfile by executing:
8
+
9
+ $ bundle add optimistic-json
10
+
11
+ If bundler is not being used to manage dependencies, install the gem by executing:
12
+
13
+ $ gem install optimistic-json
14
+
15
+ ## Usage
16
+
17
+ ```ruby
18
+ parser = Optimistic::Json::Parser.new
19
+
20
+ parser.parse('["oops", "this", "is", "missing the end bracket')
21
+ # => ["oops", "this", "is", "missing the end bracket"]
22
+
23
+ parser.parse('{ "maybe_a_float": 12.')
24
+ # => {"maybe_a_float"=>12.0}
25
+
26
+ parser.parse('[1, 2, {"a": "apple')
27
+ # => [1, 2, {"a"=>"apple"}]
28
+ ```
29
+
30
+ ## Development
31
+
32
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
33
+
34
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
35
+
36
+ ## Contributing
37
+
38
+ Bug reports and pull requests are welcome on GitHub at https://github.com/ChanChar/optimistic-json. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/ChanChar/optimistic-json/blob/main/CODE_OF_CONDUCT.md).
39
+
40
+ ## License
41
+
42
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
43
+
44
+ ## Code of Conduct
45
+
46
+ Everyone interacting in the Optimistic::Json project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/ChanChar/optimistic-json/blob/main/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ require "rubocop/rake_task"
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: %i[spec rubocop]
@@ -0,0 +1,229 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "logger"
4
+ require "multi_json"
5
+
6
+ module Optimistic
7
+ module Json
8
+ ##
9
+ # The main parser class
10
+ class Parser
11
+ ##
12
+ # Raised when there is no parser for a given token
13
+ class MissingParser < StandardError
14
+ def initialize(tokens:, msg: nil)
15
+ super(msg || "No registered parser for `#{tokens[0]}`: #{tokens}")
16
+ @tokens = tokens
17
+ end
18
+ end
19
+
20
+ ##
21
+ # Raised when a supported token is found, but is invali
22
+ class InvalidToken < StandardError
23
+ def initialize(tokens:, msg: nil)
24
+ super(msg || "Unknown token starting with `#{tokens[0]}`: #{tokens}")
25
+ @tokens = tokens
26
+ end
27
+ end
28
+
29
+ TOKENS = {
30
+ space: [" ", "\t", "\r", "\n"],
31
+ array: ["["],
32
+ object: ["{"],
33
+ number: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", ".", "-"],
34
+ string: ['"'],
35
+ true: ["t"],
36
+ false: ["f"],
37
+ null: ["n"]
38
+ }.freeze
39
+
40
+ attr_reader :parsers, :logger
41
+
42
+ def initialize(logger: nil)
43
+ @logger = logger || ::Logger.new($stdout)
44
+ @parsers = setup_parsers
45
+ end
46
+
47
+ def parse(tokens)
48
+ ::MultiJson.load(tokens)
49
+ rescue ::MultiJson::ParseError => e
50
+ result = parse_any(tokens, e)
51
+
52
+ if result[:remainder].length.positive?
53
+ logger.warn("Unable to parse the following JSON: #{result[:remainder]}")
54
+
55
+ handle_remaining_tokens(tokens, result[:data], result[:remainder])
56
+ end
57
+
58
+ result[:data]
59
+ end
60
+
61
+ def handle_remaining_tokens(tokens, data, remaining_tokens)
62
+ logger.info({ tokens: tokens, data: data, remaining_tokens: remaining_tokens })
63
+ end
64
+
65
+ private
66
+
67
+ def setup_parsers
68
+ parsers = {}
69
+
70
+ ::Optimistic::Json::Parser::TOKENS.each do |type, tokens|
71
+ tokens.each do |token|
72
+ parsers[token] = method("parse_#{type}")
73
+ end
74
+ end
75
+
76
+ parsers
77
+ end
78
+
79
+ def parse_any(tokens, err)
80
+ parser = parsers[tokens[0]]
81
+
82
+ raise ::Optimistic::Json::Parser::MissingParser.new(tokens: tokens) unless parser
83
+
84
+ parser.call(tokens, err)
85
+ end
86
+
87
+ def parse_space(tokens, err)
88
+ tokens = tokens.lstrip
89
+ parse_any(tokens, err)
90
+ end
91
+
92
+ def parse_array(tokens, err)
93
+ # Skip the opening bracket & remove any spaces
94
+ tokens = tokens[1..].lstrip
95
+
96
+ data = []
97
+
98
+ while tokens.length.positive?
99
+ # Skip the closing bracket
100
+ if tokens[0] == "]"
101
+ tokens = tokens[1..]
102
+ break
103
+ end
104
+
105
+ result = parse_any(tokens, err)
106
+ data << result[:data]
107
+
108
+ tokens = result[:remainder].lstrip
109
+
110
+ # Skip the comma
111
+ tokens = tokens[1..].lstrip if tokens[0] == ","
112
+ end
113
+
114
+ { data: data, remainder: tokens }
115
+ end
116
+
117
+ def parse_object(tokens, err)
118
+ tokens = tokens[1..].lstrip
119
+ data = {}
120
+
121
+ while tokens.length.positive?
122
+ # Skip the closing bracket
123
+ if tokens[0] == "}"
124
+ tokens = tokens[1..]
125
+ break
126
+ end
127
+
128
+ # Parse the key
129
+ result = parse_any(tokens, err)
130
+ key = result[:data]
131
+ tokens = result[:remainder].lstrip
132
+
133
+ # Skip the colon
134
+ tokens = tokens[1..].lstrip
135
+
136
+ # Parse the value
137
+ result = parse_any(tokens, err)
138
+ tokens = result[:remainder].lstrip
139
+
140
+ # Set the key/value pair
141
+ data[key] = result[:data]
142
+
143
+ # Skip the comma
144
+ tokens = tokens[1..].lstrip if tokens[0] == ","
145
+ end
146
+
147
+ { data: data, remainder: tokens }
148
+ end
149
+
150
+ def parse_number(tokens, _err)
151
+ i = 0
152
+ while i < tokens.length
153
+ current = tokens[i]
154
+ if parsers[current] == method(:parse_number)
155
+ i += 1
156
+ next
157
+ end
158
+
159
+ num = tokens[0...i]
160
+ tokens = tokens[i..]
161
+
162
+ return { data: number_or_tokens(num), remainder: tokens }
163
+ end
164
+
165
+ { data: number_or_tokens(tokens), remainder: "" }
166
+ end
167
+
168
+ def number_or_tokens(tokens)
169
+ return 0 if tokens == "-"
170
+
171
+ if tokens.include?(".")
172
+ # Handle incomplete floats
173
+ tokens.end_with?(".") ? Float(tokens[0...-1]) : Float(tokens)
174
+ else
175
+ Integer(tokens)
176
+ end
177
+ rescue ::ArgumentError
178
+ logger.error("Unable to parse number: #{tokens}")
179
+ tokens
180
+ end
181
+
182
+ def parse_string(tokens, _err)
183
+ i = 1
184
+ while i < tokens.length
185
+ current = tokens[i]
186
+ if current == "\\"
187
+ i += 2
188
+ next
189
+ end
190
+
191
+ if current == '"'
192
+ str = tokens[0..i]
193
+ tokens = tokens[(i + 1)..]
194
+
195
+ return { data: MultiJson.load(str), remainder: tokens }
196
+ end
197
+
198
+ i += 1
199
+ end
200
+
201
+ { data: MultiJson.load("#{tokens}\""), remainder: "" }
202
+ end
203
+
204
+ def parse_true(tokens, err)
205
+ parse_token(tokens, "true", true, err)
206
+ end
207
+
208
+ def parse_false(tokens, err)
209
+ parse_token(tokens, "false", false, err)
210
+ end
211
+
212
+ def parse_null(tokens, err)
213
+ parse_token(tokens, "null", nil, err)
214
+ end
215
+
216
+ def parse_token(tokens, token_str, token_val, _err)
217
+ i = token_str.length
218
+
219
+ while i >= 1
220
+ return { data: token_val, remainder: tokens[i..] } if tokens.start_with?(token_str.slice(0, i))
221
+
222
+ i -= 1
223
+ end
224
+
225
+ raise ::Optimistic::Json::Parser::InvalidToken.new(tokens: tokens)
226
+ end
227
+ end
228
+ end
229
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Optimistic
4
+ module Json
5
+ VERSION = "0.1.0"
6
+ end
7
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "logger"
4
+ require "debug"
5
+ require "multi_json"
6
+
7
+ require_relative "json/version"
8
+ require_relative "json/parser"
9
+
10
+ module Optimistic
11
+ ##
12
+ # The main namespace
13
+ module Json
14
+ end
15
+ end
@@ -0,0 +1,6 @@
1
+ module Optimistic
2
+ module Json
3
+ VERSION: String
4
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
5
+ end
6
+ end
metadata ADDED
@@ -0,0 +1,198 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: optimistic-json
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Charles C. Lee
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2023-12-04 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: logger
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: multi_json
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: sorbet-runtime
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: debug
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '13.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '13.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '3.0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '3.0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rubocop
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '1.21'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '1.21'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rubocop-rspec
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: sorbet
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: tapioca
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ description: Heavily inspired by [`best-effort-json-parser`](https://github.com/beenotung/best-effort-json-parser)
154
+ to parse potentially incomplete JSON in a best effort manner.
155
+ email:
156
+ - charleschanlee@gmail.com
157
+ executables: []
158
+ extensions: []
159
+ extra_rdoc_files: []
160
+ files:
161
+ - ".rspec"
162
+ - ".rubocop.yml"
163
+ - CHANGELOG.md
164
+ - CODE_OF_CONDUCT.md
165
+ - LICENSE.txt
166
+ - README.md
167
+ - Rakefile
168
+ - lib/optimistic/json.rb
169
+ - lib/optimistic/json/parser.rb
170
+ - lib/optimistic/json/version.rb
171
+ - sig/optimistic/json.rbs
172
+ homepage: https://github.com/ChanChar/optimistic_json
173
+ licenses:
174
+ - MIT
175
+ metadata:
176
+ homepage_uri: https://github.com/ChanChar/optimistic_json
177
+ source_code_uri: https://github.com/ChanChar/optimistic_json
178
+ changelog_uri: https://github.com/ChanChar/optimistic_json/CHANGELOG.md
179
+ post_install_message:
180
+ rdoc_options: []
181
+ require_paths:
182
+ - lib
183
+ required_ruby_version: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: 2.6.0
188
+ required_rubygems_version: !ruby/object:Gem::Requirement
189
+ requirements:
190
+ - - ">="
191
+ - !ruby/object:Gem::Version
192
+ version: '0'
193
+ requirements: []
194
+ rubygems_version: 3.4.20
195
+ signing_key:
196
+ specification_version: 4
197
+ summary: Parse potentially incomplete JSON in a best effort manner.
198
+ test_files: []