jsonapi-query_builder 0.1.8 → 0.1.9
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/.github/workflows/lint.yml +31 -0
- data/.github/workflows/spec.yml +23 -0
- data/.rubocop.yml +3 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +12 -12
- data/README.md +1 -1
- data/jsonapi-query_builder.gemspec +1 -1
- data/lefthook.yml +2 -2
- data/lib/jsonapi/query_builder/version.rb +1 -1
- metadata +4 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8c919f735d39662624a6cbda5429e5b31941578628bfa6adadf26334a0b9a1f3
|
|
4
|
+
data.tar.gz: 3ff9cadb9e8b8cea55447e6b86c6c8f3e16953beda7edee3ff8aac7e230753b8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 51d7f79e29b103e6aeac59dee1283b09ae3a9b3dc035099e341a2f9891a41fad1d7e05357198b4b08846226ac0421d195b3d583d9936a326003cfab076645ded
|
|
7
|
+
data.tar.gz: 6f11c9b84669ace622fb6b8d5d8917abeb9ced15ad1dc68e988380e282a7be9aa9d3e73baa317a49212c161c9aa351461c251fd89fd882b5e9c05847626ad698
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
name: lint
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ master ]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [ master ]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
standardrb:
|
|
11
|
+
runs-on: ubuntu-18.04
|
|
12
|
+
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v2
|
|
15
|
+
- uses: ruby/setup-ruby@v1
|
|
16
|
+
with:
|
|
17
|
+
bundler-cache: true
|
|
18
|
+
- name: standardrb
|
|
19
|
+
run: bundle exec standardrb
|
|
20
|
+
|
|
21
|
+
rubocop-rspec:
|
|
22
|
+
runs-on: ubuntu-18.04
|
|
23
|
+
|
|
24
|
+
steps:
|
|
25
|
+
- uses: actions/checkout@v2
|
|
26
|
+
- uses: ruby/setup-ruby@v1
|
|
27
|
+
with:
|
|
28
|
+
bundler-cache: true
|
|
29
|
+
|
|
30
|
+
- name: rubocop
|
|
31
|
+
run: bundle exec rubocop --only RSpec
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
name: spec
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ master ]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [ master ]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
rake-spec:
|
|
11
|
+
runs-on: ubuntu-18.04
|
|
12
|
+
strategy:
|
|
13
|
+
matrix:
|
|
14
|
+
ruby: [2.5, 2.6, 2.7, 3.0]
|
|
15
|
+
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v2
|
|
18
|
+
- uses: ruby/setup-ruby@v1
|
|
19
|
+
with:
|
|
20
|
+
ruby-version: ${{ matrix.ruby }}
|
|
21
|
+
bundler-cache: true
|
|
22
|
+
- name: rake spec
|
|
23
|
+
run: bundle exec rake spec
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Change log
|
|
2
2
|
|
|
3
|
+
## 0.1.9 (2021-05-07)
|
|
4
|
+
|
|
5
|
+
- [#18](https://github.com/infinum/jsonapi-query_builder/pull/18): Remove Ruby `to` version.
|
|
6
|
+
- [#9](https://github.com/infinum/jsonapi-query_builder/pull/9): added github actions
|
|
7
|
+
|
|
3
8
|
## 0.1.8 (2021-01-25)
|
|
4
9
|
|
|
5
10
|
- [#8](https://github.com/infinum/jsonapi-query_builder/pull/8): add support for ruby 3.0
|
data/Gemfile.lock
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
jsonapi-query_builder (0.1.
|
|
4
|
+
jsonapi-query_builder (0.1.9)
|
|
5
5
|
activerecord (>= 5)
|
|
6
6
|
pagy (~> 3.5)
|
|
7
7
|
|
|
8
8
|
GEM
|
|
9
9
|
remote: https://rubygems.org/
|
|
10
10
|
specs:
|
|
11
|
-
activemodel (6.1.1)
|
|
12
|
-
activesupport (= 6.1.1)
|
|
13
|
-
activerecord (6.1.1)
|
|
14
|
-
activemodel (= 6.1.1)
|
|
15
|
-
activesupport (= 6.1.1)
|
|
16
|
-
activesupport (6.1.1)
|
|
11
|
+
activemodel (6.1.3.1)
|
|
12
|
+
activesupport (= 6.1.3.1)
|
|
13
|
+
activerecord (6.1.3.1)
|
|
14
|
+
activemodel (= 6.1.3.1)
|
|
15
|
+
activesupport (= 6.1.3.1)
|
|
16
|
+
activesupport (6.1.3.1)
|
|
17
17
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
18
18
|
i18n (>= 1.6, < 2)
|
|
19
19
|
minitest (>= 5.1)
|
|
20
20
|
tzinfo (~> 2.0)
|
|
21
21
|
zeitwerk (~> 2.3)
|
|
22
22
|
ast (2.4.1)
|
|
23
|
-
concurrent-ruby (1.1.
|
|
23
|
+
concurrent-ruby (1.1.8)
|
|
24
24
|
diff-lcs (1.4.4)
|
|
25
|
-
i18n (1.8.
|
|
25
|
+
i18n (1.8.10)
|
|
26
26
|
concurrent-ruby (~> 1.0)
|
|
27
27
|
lefthook (0.7.2)
|
|
28
|
-
minitest (5.14.
|
|
29
|
-
pagy (3.
|
|
28
|
+
minitest (5.14.4)
|
|
29
|
+
pagy (3.11.0)
|
|
30
30
|
parallel (1.20.1)
|
|
31
31
|
parser (3.0.0.0)
|
|
32
32
|
ast (~> 2.4.1)
|
|
33
33
|
rainbow (3.0.0)
|
|
34
34
|
rake (13.0.3)
|
|
35
35
|
regexp_parser (2.0.3)
|
|
36
|
-
rexml (3.2.
|
|
36
|
+
rexml (3.2.5)
|
|
37
37
|
rspec (3.10.0)
|
|
38
38
|
rspec-core (~> 3.10.0)
|
|
39
39
|
rspec-expectations (~> 3.10.0)
|
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Jsonapi::QueryBuilder
|
|
1
|
+
# Jsonapi::QueryBuilder 
|
|
2
2
|
|
|
3
3
|
`Jsonapi::QueryBuilder` serves the purpose of adding the json api query related SQL conditions to the already scoped
|
|
4
4
|
collection, usually used in controller index actions.
|
|
@@ -36,7 +36,7 @@ Gem::Specification.new do |spec|
|
|
|
36
36
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
37
37
|
spec.require_paths = ["lib"]
|
|
38
38
|
|
|
39
|
-
spec.required_ruby_version =
|
|
39
|
+
spec.required_ruby_version = ">= 2.5"
|
|
40
40
|
|
|
41
41
|
spec.add_runtime_dependency "activerecord", ">= 5"
|
|
42
42
|
spec.add_runtime_dependency "pagy", "~> 3.5"
|
data/lefthook.yml
CHANGED
|
@@ -2,13 +2,13 @@ lint:
|
|
|
2
2
|
commands: &lint
|
|
3
3
|
lint-frozen-strings:
|
|
4
4
|
glob: "*.rb"
|
|
5
|
-
run: bundle exec rubocop
|
|
5
|
+
run: bundle exec rubocop --only Style/FrozenStringLiteralComment,Layout/EmptyLineAfterMagicComment --format quiet --auto-correct
|
|
6
6
|
|
|
7
7
|
rubocop:
|
|
8
8
|
commands: &rubocop
|
|
9
9
|
rubocop-rspec:
|
|
10
10
|
glob: "spec/*"
|
|
11
|
-
run: bundle exec rubocop
|
|
11
|
+
run: bundle exec rubocop --only RSpec --format quiet
|
|
12
12
|
|
|
13
13
|
pre-commit:
|
|
14
14
|
parallel: true
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jsonapi-query_builder
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jure Cindro
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-05-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|
|
@@ -146,6 +146,8 @@ executables: []
|
|
|
146
146
|
extensions: []
|
|
147
147
|
extra_rdoc_files: []
|
|
148
148
|
files:
|
|
149
|
+
- ".github/workflows/lint.yml"
|
|
150
|
+
- ".github/workflows/spec.yml"
|
|
149
151
|
- ".gitignore"
|
|
150
152
|
- ".rspec"
|
|
151
153
|
- ".rubocop.yml"
|
|
@@ -186,9 +188,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
186
188
|
- - ">="
|
|
187
189
|
- !ruby/object:Gem::Version
|
|
188
190
|
version: '2.5'
|
|
189
|
-
- - "<="
|
|
190
|
-
- !ruby/object:Gem::Version
|
|
191
|
-
version: '3.0'
|
|
192
191
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
193
192
|
requirements:
|
|
194
193
|
- - ">="
|