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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8921b933a425315d98b2a7e4e8ecab560735750f32c7a8a81c7a2a1fd2b9620b
4
- data.tar.gz: 30221f5b5cce2acfb4638cb2fc07d74de281d100f0312603bc8ff944b76b0b8d
3
+ metadata.gz: 45e3814e28d44c2e46ceb3bcfe8ea5dc8e023ce1a3913160689b2350b1b9c6a6
4
+ data.tar.gz: 8934140b815b7dee15a613406a936d5b2dda445539a15a43c7c58bf2025a9e0c
5
5
  SHA512:
6
- metadata.gz: 5d4024cd6f011f6ea726202d948bc56892c7bbf498b7a759dd95775413cc30fb01723623081002dfd956e90aceb5bcc03802d88f63182b3171dc398986525302
7
- data.tar.gz: f6855058a1a01a3ce7200f3f27c7fd8eafe7d06b579d8ca900201e67094ce5de63389e6961519b73941692543f46f7a94b98ef5f587009ff342db66083531114
6
+ metadata.gz: 311262c5b081205bb62b07727d473f124cb440a81c7516fb2bcc8f2fde3c4ad6a2c5062ae86997ba88da835333d955a4cb2550eb68af45e09217eb0b939b14c4
7
+ data.tar.gz: 01f2fdcdc3d7e97fb6b3e4b86fde020cd16bbdd57d4910010a3b19fc6becfc77ad1fe2872ecaa94bfa933d51f31e98675630c59109d7b5a132b08d4e5e5fc37e
data/.rubocop.yml CHANGED
@@ -28,3 +28,9 @@ Lint/BooleanSymbol:
28
28
 
29
29
  Rspec/NestedGroups:
30
30
  Max: 30
31
+
32
+ RSpec/MessageSpies:
33
+ Enabled: false
34
+
35
+ RSpec/MultipleExpectations:
36
+ Max: 3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.2] - 2024-04-09
4
+
5
+ - Remove `debug` from runtime
6
+
3
7
  ## [0.1.0] - 2023-12-03
4
8
 
5
9
  - Initial release
data/README.md CHANGED
@@ -1,7 +1,11 @@
1
+ [![Gem Version](https://badge.fury.io/rb/optimistic-json.svg)](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, 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).
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
 
@@ -37,7 +37,7 @@ module Optimistic
37
37
  null: ["n"]
38
38
  }.freeze
39
39
 
40
- attr_reader :parsers, :logger
40
+ attr_accessor :parsers, :logger
41
41
 
42
42
  def initialize(logger: nil)
43
43
  @logger = logger || ::Logger.new($stdout)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Optimistic
4
4
  module Json
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.2"
6
6
  end
7
7
  end
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "logger"
4
- require "debug"
5
4
  require "multi_json"
6
5
 
7
6
  require_relative "json/version"
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.0
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: 2023-12-04 00:00:00.000000000 Z
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: Heavily inspired by [`best-effort-json-parser`](https://github.com/beenotung/best-effort-json-parser)
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/optimistic_json
186
+ homepage: https://github.com/ChanChar/optimistic-json
173
187
  licenses:
174
188
  - MIT
175
189
  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
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: