fast_jsonparser 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a696c8dcde3ac2ec599ab0d45bc3ef0f13da2823cbddacd13842337e50cd6200
4
- data.tar.gz: 8be657884315230f3010b4713c9646150f95db5468f3fbc12124406df51b69a4
3
+ metadata.gz: d87b77e2dd63a557d8a32fdf47c962a52476aa921e981dd0120a3d57a5873453
4
+ data.tar.gz: b859d5d018cb9b7ce88d1bf6fe662ebf80dfbf57f5aed831e1fc22059dde0ceb
5
5
  SHA512:
6
- metadata.gz: 744771f5df6f8259ad6e75d631f8af6ba59ab6d00d94df78abbc0341d995045ba6bf5a32cffc1f476a9b48a5bce45d803c8f91c13c1fe840a2c6f931c8e549be
7
- data.tar.gz: d14e73c088cd61d073a03d787075ea461750d7df3e1628c28398bc4f51ada3da4e6c4d036af2b9f81f16ede1ca28948fcd0fe49966b4756ee9c9f72ab63af81c
6
+ metadata.gz: f3c9ef4836bfae90bb7cfce534a108cd102c621c90a23cd783bacbf65bfe830b863eebb89ee92abf26549b954c247857f32f3d00b44f1e0c37b327393b69161d
7
+ data.tar.gz: acc8fca8c8110f4f6c88b74cad2a73357d0664db214b8fed5ca3503f0c3290f528d394c9d7abedf6c677ec1f5608667358ec56f0995fa7aa7ce8ada060ddbfcd
@@ -17,16 +17,17 @@ jobs:
17
17
  test:
18
18
 
19
19
  runs-on: ubuntu-latest
20
+
21
+ strategy:
22
+ matrix:
23
+ ruby-version: [3.0.1, 2.7.3, 2.6.7, 2.6.5]
20
24
 
21
25
  steps:
22
26
  - uses: actions/checkout@v2
23
- - name: Set up Ruby
24
- # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
25
- # change this to (see https://github.com/ruby/setup-ruby#versioning):
26
- # uses: ruby/setup-ruby@v1
27
- uses: ruby/setup-ruby@ec106b438a1ff6ff109590de34ddc62c540232e0
27
+ - name: Set up Ruby ${{ matrix.ruby-version }}
28
+ uses: ruby/setup-ruby@v1
28
29
  with:
29
- ruby-version: 2.6
30
+ ruby-version: ${{ matrix.ruby-version }}
30
31
  - name: Install dependencies
31
32
  run: bundle install
32
33
  - name: Compile
data/CHANGELOG.md CHANGED
@@ -1,3 +1,5 @@
1
+ # 0.6.0
2
+ * Fix performance on Ruby 3.0 [Issue #20](https://github.com/anilmaurya/fast_jsonparser/issues/20), thanks to [Watson1978](https://github.com/Watson1978)
1
3
  # 0.5.0
2
4
  * Handle concurrent use of the parser in [Issue #15](https://github.com/anilmaurya/fast_jsonparser/pull/15), thanks to [casperisfine](https://github.com/casperisfine)
3
5
 
data/Gemfile.lock CHANGED
@@ -1,20 +1,21 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fast_jsonparser (0.4.0)
4
+ fast_jsonparser (0.5.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- minitest (5.14.1)
10
- oj (3.10.6)
11
- rake (13.0.1)
12
- rake-compiler (1.1.0)
9
+ minitest (5.14.4)
10
+ oj (3.11.7)
11
+ rake (13.0.3)
12
+ rake-compiler (1.1.1)
13
13
  rake
14
14
  yajl-ruby (1.4.1)
15
15
 
16
16
  PLATFORMS
17
17
  ruby
18
+ x86_64-linux
18
19
 
19
20
  DEPENDENCIES
20
21
  bundler (~> 2.0)
@@ -26,4 +27,4 @@ DEPENDENCIES
26
27
  yajl-ruby
27
28
 
28
29
  BUNDLED WITH
29
- 2.0.1
30
+ 2.2.3
data/README.md CHANGED
@@ -132,7 +132,7 @@ FastJsonparser.parse("123: 1") # FastJsonparser::ParseError (parse error)
132
132
 
133
133
  `FastJsonparser` behaves mostly like stdlib's `JSON`, but there are a few corner cases:
134
134
 
135
- - `FastJsonparser` will use symbols for hash keys by default. You can pass `symbolize_names: false` to have strings instead like `JSON`.
135
+ - `FastJsonparser` will use symbols for hash keys by default. You can pass `symbolize_keys: false` to have strings instead like `JSON`.
136
136
  - `FastJsonparser` will raise on integers outside of the 64bits range (`-9223372036854775808..18446744073709551615`), `JSON` will parse them fine.
137
137
  - `FastJsonparser` will raise on invalid string escapings (`"\x15"`), `JSON` will often handle some of them.
138
138
  - `FastJsonparser` will raise on `/**/` comments. `JSON` will sometimes ignore them, sometimes raise.
@@ -1,5 +1,5 @@
1
1
  require 'mkmf'
2
- $CXXFLAGS += ' -std=c++1z -Wno-register '
2
+ $CXXFLAGS += ' $(optflags) $(debugflags) -std=c++1z -Wno-register '
3
3
 
4
4
 
5
5
  create_makefile 'fast_jsonparser/fast_jsonparser'
@@ -1,3 +1,3 @@
1
1
  module FastJsonparser
2
- VERSION = "0.5.0"
2
+ VERSION = "0.6.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fast_jsonparser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anil Maurya
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-08-25 00:00:00.000000000 Z
11
+ date: 2022-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
141
  - !ruby/object:Gem::Version
142
142
  version: '0'
143
143
  requirements: []
144
- rubygems_version: 3.0.3
144
+ rubygems_version: 3.2.22
145
145
  signing_key:
146
146
  specification_version: 4
147
147
  summary: Fast Json Parser