optimistic-json 0.1.0 → 0.1.2
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/.rubocop.yml +6 -0
- data/CHANGELOG.md +4 -0
- data/README.md +5 -1
- data/lib/optimistic/json/parser.rb +1 -1
- data/lib/optimistic/json/version.rb +1 -1
- data/lib/optimistic/json.rb +0 -1
- metadata +21 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45e3814e28d44c2e46ceb3bcfe8ea5dc8e023ce1a3913160689b2350b1b9c6a6
|
4
|
+
data.tar.gz: 8934140b815b7dee15a613406a936d5b2dda445539a15a43c7c58bf2025a9e0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 311262c5b081205bb62b07727d473f124cb440a81c7516fb2bcc8f2fde3c4ad6a2c5062ae86997ba88da835333d955a4cb2550eb68af45e09217eb0b939b14c4
|
7
|
+
data.tar.gz: 01f2fdcdc3d7e97fb6b3e4b86fde020cd16bbdd57d4910010a3b19fc6becfc77ad1fe2872ecaa94bfa933d51f31e98675630c59109d7b5a132b08d4e5e5fc37e
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,11 @@
|
|
1
|
+
[](https://badge.fury.io/rb/optimistic-json)
|
2
|
+
|
1
3
|
# Optimistic::Json
|
2
4
|
|
3
5
|
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
6
|
|
7
|
+
Uses [`multi_json`](https://github.com/intridea/multi_json#supported-json-engines) to support a number of common JSON engines.
|
8
|
+
|
5
9
|
## Installation
|
6
10
|
|
7
11
|
Install the gem and add to the application's Gemfile by executing:
|
@@ -31,7 +35,7 @@ parser.parse('[1, 2, {"a": "apple')
|
|
31
35
|
|
32
36
|
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
37
|
|
34
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version,
|
38
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, run `gem bump --version <patch|minor|major|#.#.#>`, 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
39
|
|
36
40
|
## Contributing
|
37
41
|
|
data/lib/optimistic/json.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: optimistic-json
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Charles C. Lee
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logger
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: gem-release
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: rake
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -150,7 +164,7 @@ dependencies:
|
|
150
164
|
- - ">="
|
151
165
|
- !ruby/object:Gem::Version
|
152
166
|
version: '0'
|
153
|
-
description:
|
167
|
+
description: Ruby implementation of [`best-effort-json-parser`](https://github.com/beenotung/best-effort-json-parser)
|
154
168
|
to parse potentially incomplete JSON in a best effort manner.
|
155
169
|
email:
|
156
170
|
- charleschanlee@gmail.com
|
@@ -169,13 +183,13 @@ files:
|
|
169
183
|
- lib/optimistic/json/parser.rb
|
170
184
|
- lib/optimistic/json/version.rb
|
171
185
|
- sig/optimistic/json.rbs
|
172
|
-
homepage: https://github.com/ChanChar/
|
186
|
+
homepage: https://github.com/ChanChar/optimistic-json
|
173
187
|
licenses:
|
174
188
|
- MIT
|
175
189
|
metadata:
|
176
|
-
homepage_uri: https://github.com/ChanChar/
|
177
|
-
source_code_uri: https://github.com/ChanChar/
|
178
|
-
changelog_uri: https://github.com/ChanChar/
|
190
|
+
homepage_uri: https://github.com/ChanChar/optimistic-json
|
191
|
+
source_code_uri: https://github.com/ChanChar/optimistic-json
|
192
|
+
changelog_uri: https://github.com/ChanChar/optimistic-json/CHANGELOG.md
|
179
193
|
post_install_message:
|
180
194
|
rdoc_options: []
|
181
195
|
require_paths:
|