graphql-pagination 2.2.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.bundler-version +1 -1
- data/.github/dependabot.yml +15 -0
- data/.github/workflows/auto-approve.yml +4 -3
- data/.github/workflows/auto-merge.yml +13 -4
- data/.github/workflows/ci.yml +1 -1
- data/Gemfile.lock +51 -53
- data/README.md +2 -0
- data/graphql-pagination.gemspec +2 -2
- data/lib/graphql_pagination/version.rb +1 -1
- data/lib/graphql_pagination.rb +1 -1
- metadata +9 -9
- data/.github/workflows/auto-merge-dependencies.yml +0 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e8d0c7a992008746a3ded2753d3d6440db80b2267c213a52df2761ab7c0cd9f
|
4
|
+
data.tar.gz: 6a19b6dad36411021495b09dee4c3e52236ea168af90e13345991abbb5202024
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1759f21fcd299077d44b9e9118e69dedeeba3bdf809331b43f78a6b12af32a9fafff5322b8de37fe1ce278b93719a67446b73c8fd458198c5ef59bc79110ce90
|
7
|
+
data.tar.gz: 5e05fe083686683c8b501bfba5911a1371b00f413c4d678a4f1904f8082e54133e4d061a7b71ed62cbf3b0f370cc9145fb4146425229acdada117c34fbaea19a
|
data/.bundler-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.5.
|
1
|
+
2.5.23
|
@@ -1,13 +1,14 @@
|
|
1
1
|
name: Auto approve dependency upgrades and hot-fix PRs
|
2
2
|
on:
|
3
3
|
pull_request_target:
|
4
|
-
types:
|
5
|
-
|
4
|
+
types:
|
5
|
+
- labeled
|
6
|
+
- ready_for_review
|
6
7
|
jobs:
|
7
8
|
auto-approve:
|
8
9
|
runs-on: ubuntu-latest
|
9
10
|
steps:
|
10
11
|
- uses: hmarr/auto-approve-action@v3
|
11
|
-
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' || github.actor == 'renofidev' || contains(github.event.pull_request.labels.*.name, 'HOTFIX-AUTO-APPROVE') || contains(github.event.pull_request.labels.*.name, 'dependencies')
|
12
|
+
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' || github.actor == 'renofidev' || contains(github.event.pull_request.labels.*.name, 'HOTFIX-AUTO-APPROVE') || contains(github.event.pull_request.labels.*.name, 'self-approve') || contains(github.event.pull_request.labels.*.name, 'dependencies')
|
12
13
|
with:
|
13
14
|
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
@@ -1,22 +1,31 @@
|
|
1
1
|
name: automerge
|
2
2
|
on:
|
3
|
+
pull_request_target:
|
4
|
+
types:
|
5
|
+
- labeled
|
3
6
|
pull_request_review:
|
4
7
|
types:
|
5
8
|
- submitted
|
6
9
|
check_suite:
|
7
10
|
types:
|
8
11
|
- completed
|
9
|
-
label:
|
10
|
-
types:
|
11
|
-
- created
|
12
12
|
status: {}
|
13
13
|
jobs:
|
14
14
|
automerge:
|
15
15
|
runs-on: ubuntu-latest
|
16
16
|
steps:
|
17
17
|
- name: automerge
|
18
|
-
uses: pascalgn/automerge-action@v0.16.
|
18
|
+
uses: pascalgn/automerge-action@v0.16.4
|
19
|
+
env:
|
20
|
+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
21
|
+
MERGE_METHOD: squash
|
22
|
+
MERGE_DELETE_BRANCH: true
|
23
|
+
MERGE_LABELS: "automerge,!automerge blocked"
|
24
|
+
- name: automerge-dependencies
|
25
|
+
uses: pascalgn/automerge-action@v0.16.4
|
19
26
|
env:
|
20
27
|
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
21
28
|
MERGE_METHOD: squash
|
22
29
|
MERGE_DELETE_BRANCH: true
|
30
|
+
MERGE_LABELS: "dependencies,!automerge blocked"
|
31
|
+
MERGE_REMOVE_LABELS: ""
|
data/.github/workflows/ci.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,106 +1,104 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
graphql-pagination (2.
|
5
|
-
graphql (
|
4
|
+
graphql-pagination (2.3.0)
|
5
|
+
graphql (>= 2.4.7)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activemodel (
|
11
|
-
activesupport (=
|
12
|
-
activerecord (
|
13
|
-
activemodel (=
|
14
|
-
activesupport (=
|
10
|
+
activemodel (8.0.0)
|
11
|
+
activesupport (= 8.0.0)
|
12
|
+
activerecord (8.0.0)
|
13
|
+
activemodel (= 8.0.0)
|
14
|
+
activesupport (= 8.0.0)
|
15
15
|
timeout (>= 0.4.0)
|
16
|
-
activesupport (
|
16
|
+
activesupport (8.0.0)
|
17
17
|
base64
|
18
|
+
benchmark (>= 0.3)
|
18
19
|
bigdecimal
|
19
|
-
concurrent-ruby (~> 1.0, >= 1.
|
20
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
20
21
|
connection_pool (>= 2.2.5)
|
21
22
|
drb
|
22
23
|
i18n (>= 1.6, < 2)
|
24
|
+
logger (>= 1.4.2)
|
23
25
|
minitest (>= 5.1)
|
24
|
-
|
25
|
-
tzinfo (~> 2.0)
|
26
|
+
securerandom (>= 0.3)
|
27
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
28
|
+
uri (>= 0.13.1)
|
26
29
|
ast (2.4.2)
|
27
30
|
base64 (0.2.0)
|
28
|
-
|
31
|
+
benchmark (0.4.0)
|
32
|
+
bigdecimal (3.1.8)
|
29
33
|
coderay (1.1.3)
|
30
|
-
concurrent-ruby (1.
|
34
|
+
concurrent-ruby (1.3.4)
|
31
35
|
connection_pool (2.4.1)
|
32
36
|
diff-lcs (1.5.1)
|
33
|
-
drb (2.2.
|
34
|
-
|
35
|
-
graphql (2.
|
37
|
+
drb (2.2.1)
|
38
|
+
fiber-storage (1.0.0)
|
39
|
+
graphql (2.4.7)
|
36
40
|
base64
|
37
|
-
|
41
|
+
fiber-storage
|
42
|
+
i18n (1.14.6)
|
38
43
|
concurrent-ruby (~> 1.0)
|
39
|
-
json (2.
|
44
|
+
json (2.9.0)
|
40
45
|
kaminari-activerecord (1.2.2)
|
41
46
|
activerecord
|
42
47
|
kaminari-core (= 1.2.2)
|
43
48
|
kaminari-core (1.2.2)
|
44
49
|
language_server-protocol (3.17.0.3)
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
parallel (1.
|
49
|
-
parser (3.3.0
|
50
|
+
logger (1.6.2)
|
51
|
+
method_source (1.1.0)
|
52
|
+
minitest (5.25.4)
|
53
|
+
parallel (1.26.3)
|
54
|
+
parser (3.3.6.0)
|
50
55
|
ast (~> 2.4.1)
|
51
56
|
racc
|
52
|
-
|
53
|
-
pry (0.14.2)
|
57
|
+
pry (0.15.0)
|
54
58
|
coderay (~> 1.1)
|
55
59
|
method_source (~> 1.0)
|
56
|
-
racc (1.
|
60
|
+
racc (1.8.1)
|
57
61
|
rainbow (3.1.1)
|
58
|
-
rake (13.1
|
59
|
-
regexp_parser (2.9.
|
60
|
-
rexml (3.2.6)
|
62
|
+
rake (13.2.1)
|
63
|
+
regexp_parser (2.9.3)
|
61
64
|
rspec (3.13.0)
|
62
65
|
rspec-core (~> 3.13.0)
|
63
66
|
rspec-expectations (~> 3.13.0)
|
64
67
|
rspec-mocks (~> 3.13.0)
|
65
|
-
rspec-core (3.13.
|
68
|
+
rspec-core (3.13.2)
|
66
69
|
rspec-support (~> 3.13.0)
|
67
|
-
rspec-expectations (3.13.
|
70
|
+
rspec-expectations (3.13.3)
|
68
71
|
diff-lcs (>= 1.2.0, < 2.0)
|
69
72
|
rspec-support (~> 3.13.0)
|
70
|
-
rspec-mocks (3.13.
|
73
|
+
rspec-mocks (3.13.2)
|
71
74
|
diff-lcs (>= 1.2.0, < 2.0)
|
72
75
|
rspec-support (~> 3.13.0)
|
73
|
-
rspec-support (3.13.
|
74
|
-
rubocop (1.
|
76
|
+
rspec-support (3.13.2)
|
77
|
+
rubocop (1.69.1)
|
75
78
|
json (~> 2.3)
|
76
79
|
language_server-protocol (>= 3.17.0)
|
77
80
|
parallel (~> 1.10)
|
78
81
|
parser (>= 3.3.0.2)
|
79
82
|
rainbow (>= 2.2.2, < 4.0)
|
80
|
-
regexp_parser (>=
|
81
|
-
|
82
|
-
rubocop-ast (>= 1.30.0, < 2.0)
|
83
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
84
|
+
rubocop-ast (>= 1.36.2, < 2.0)
|
83
85
|
ruby-progressbar (~> 1.7)
|
84
|
-
unicode-display_width (>= 2.4.0, <
|
85
|
-
rubocop-ast (1.
|
86
|
-
parser (>= 3.3.0
|
87
|
-
prism (>= 0.24.0)
|
88
|
-
rubocop-capybara (2.20.0)
|
89
|
-
rubocop (~> 1.41)
|
90
|
-
rubocop-factory_bot (2.25.1)
|
91
|
-
rubocop (~> 1.41)
|
86
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
87
|
+
rubocop-ast (1.36.2)
|
88
|
+
parser (>= 3.3.1.0)
|
92
89
|
rubocop-rake (0.6.0)
|
93
90
|
rubocop (~> 1.0)
|
94
|
-
rubocop-rspec (2.
|
95
|
-
rubocop (~> 1.
|
96
|
-
rubocop-capybara (~> 2.17)
|
97
|
-
rubocop-factory_bot (~> 2.22)
|
91
|
+
rubocop-rspec (3.2.0)
|
92
|
+
rubocop (~> 1.61)
|
98
93
|
ruby-progressbar (1.13.0)
|
99
|
-
|
100
|
-
timeout (0.4.
|
94
|
+
securerandom (0.4.0)
|
95
|
+
timeout (0.4.2)
|
101
96
|
tzinfo (2.0.6)
|
102
97
|
concurrent-ruby (~> 1.0)
|
103
|
-
unicode-display_width (
|
98
|
+
unicode-display_width (3.1.2)
|
99
|
+
unicode-emoji (~> 4.0, >= 4.0.4)
|
100
|
+
unicode-emoji (4.0.4)
|
101
|
+
uri (1.0.2)
|
104
102
|
|
105
103
|
PLATFORMS
|
106
104
|
aarch64-linux-musl
|
@@ -123,4 +121,4 @@ DEPENDENCIES
|
|
123
121
|
rubocop-rspec
|
124
122
|
|
125
123
|
BUNDLED WITH
|
126
|
-
2.5.
|
124
|
+
2.5.23
|
data/README.md
CHANGED
@@ -16,6 +16,8 @@ Add `graphql-pagination` to your Gemfile, you can use `kaminari-activerecord` or
|
|
16
16
|
|
17
17
|
## Usage example
|
18
18
|
|
19
|
+
Use `collection_type` instead of `connection_type` to define your type:
|
20
|
+
|
19
21
|
```ruby
|
20
22
|
field :fruits, Types::FruitType.collection_type, null: true do
|
21
23
|
argument :page, Integer, required: false
|
data/graphql-pagination.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.metadata['source_code_uri'] = 'https://github.com/RenoFi/graphql-pagination'
|
18
18
|
spec.metadata['rubygems_mfa_required'] = 'true'
|
19
19
|
|
20
|
-
spec.required_ruby_version = Gem::Requirement.new('>= 3.
|
20
|
+
spec.required_ruby_version = Gem::Requirement.new('>= 3.2.0')
|
21
21
|
|
22
22
|
spec.files = Dir.chdir(__dir__) do
|
23
23
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(bin/|spec/|\.rub)}) }
|
@@ -26,5 +26,5 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
27
27
|
spec.require_paths = ['lib']
|
28
28
|
|
29
|
-
spec.add_dependency 'graphql', '
|
29
|
+
spec.add_dependency 'graphql', '>= 2.4.7'
|
30
30
|
end
|
data/lib/graphql_pagination.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphql-pagination
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Krzysztof Knapik
|
@@ -9,22 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-
|
12
|
+
date: 2024-12-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: graphql
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - "
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version:
|
20
|
+
version: 2.4.7
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - "
|
25
|
+
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version:
|
27
|
+
version: 2.4.7
|
28
28
|
description: Page-based kaminari pagination for graphql returning collection and pagination
|
29
29
|
metadata.
|
30
30
|
email:
|
@@ -40,8 +40,8 @@ files:
|
|
40
40
|
- ".github/ISSUE_TEMPLATE/config.yml"
|
41
41
|
- ".github/ISSUE_TEMPLATE/story.md"
|
42
42
|
- ".github/PULL_REQUEST_TEMPLATE.md"
|
43
|
+
- ".github/dependabot.yml"
|
43
44
|
- ".github/workflows/auto-approve.yml"
|
44
|
-
- ".github/workflows/auto-merge-dependencies.yml"
|
45
45
|
- ".github/workflows/auto-merge.yml"
|
46
46
|
- ".github/workflows/ci.yml"
|
47
47
|
- ".gitignore"
|
@@ -73,14 +73,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
73
73
|
requirements:
|
74
74
|
- - ">="
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: 3.
|
76
|
+
version: 3.2.0
|
77
77
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
79
|
- - ">="
|
80
80
|
- !ruby/object:Gem::Version
|
81
81
|
version: '0'
|
82
82
|
requirements: []
|
83
|
-
rubygems_version: 3.5.
|
83
|
+
rubygems_version: 3.5.23
|
84
84
|
signing_key:
|
85
85
|
specification_version: 4
|
86
86
|
summary: Page-based kaminari pagination for graphql.
|
@@ -1,24 +0,0 @@
|
|
1
|
-
name: automerge-dependencies
|
2
|
-
on:
|
3
|
-
pull_request_review:
|
4
|
-
types:
|
5
|
-
- submitted
|
6
|
-
check_suite:
|
7
|
-
types:
|
8
|
-
- completed
|
9
|
-
label:
|
10
|
-
types:
|
11
|
-
- created
|
12
|
-
status: {}
|
13
|
-
jobs:
|
14
|
-
automerge:
|
15
|
-
runs-on: ubuntu-latest
|
16
|
-
steps:
|
17
|
-
- name: automerge-dependencies
|
18
|
-
uses: pascalgn/automerge-action@v0.16.2
|
19
|
-
env:
|
20
|
-
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
21
|
-
MERGE_METHOD: squash
|
22
|
-
MERGE_DELETE_BRANCH: true
|
23
|
-
MERGE_LABELS: "dependencies,!automerge blocked"
|
24
|
-
MERGE_REMOVE_LABELS: ""
|