graphql-pagination 2.2.0 → 2.4.0
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/.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 +54 -55
- 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 -12
- 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: dd466ae9a7321da404337a0f4ae48af8565908cea8a4cf566b66346940966e3c
|
4
|
+
data.tar.gz: 30a0ca37028db819874d92a7dcf81ec9510ed7458b641c3c31373dd1c9719661
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34547c5966e7f452c3b1609a6daf0047a43e355b19df32bf4467b1bdc2f52637aec61aaf5cbedc58c1e62a0fd145f506f9c8ffe48bffa4c6b27cc2488e4d8263
|
7
|
+
data.tar.gz: eabdd62d97066e38640d7bbcb2753a0aa7ce1486c2b14b7ccfac7d8d13158c9f0234cd743d115fc87d08b4ed449f91dfa3b7750eb5db2ae87fe4a1db3d4cdb64
|
data/.bundler-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.6.3
|
@@ -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,105 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
graphql-pagination (2.
|
5
|
-
graphql (
|
4
|
+
graphql-pagination (2.4.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.1)
|
11
|
+
activesupport (= 8.0.1)
|
12
|
+
activerecord (8.0.1)
|
13
|
+
activemodel (= 8.0.1)
|
14
|
+
activesupport (= 8.0.1)
|
15
15
|
timeout (>= 0.4.0)
|
16
|
-
activesupport (
|
16
|
+
activesupport (8.0.1)
|
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.9)
|
29
33
|
coderay (1.1.3)
|
30
|
-
concurrent-ruby (1.
|
31
|
-
connection_pool (2.
|
34
|
+
concurrent-ruby (1.3.5)
|
35
|
+
connection_pool (2.5.0)
|
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.9)
|
36
40
|
base64
|
37
|
-
|
41
|
+
fiber-storage
|
42
|
+
logger
|
43
|
+
i18n (1.14.7)
|
38
44
|
concurrent-ruby (~> 1.0)
|
39
|
-
json (2.
|
45
|
+
json (2.9.1)
|
40
46
|
kaminari-activerecord (1.2.2)
|
41
47
|
activerecord
|
42
48
|
kaminari-core (= 1.2.2)
|
43
49
|
kaminari-core (1.2.2)
|
44
|
-
language_server-protocol (3.17.0.
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
parallel (1.
|
49
|
-
parser (3.3.
|
50
|
+
language_server-protocol (3.17.0.4)
|
51
|
+
logger (1.6.5)
|
52
|
+
method_source (1.1.0)
|
53
|
+
minitest (5.25.4)
|
54
|
+
parallel (1.26.3)
|
55
|
+
parser (3.3.7.1)
|
50
56
|
ast (~> 2.4.1)
|
51
57
|
racc
|
52
|
-
|
53
|
-
pry (0.14.2)
|
58
|
+
pry (0.15.2)
|
54
59
|
coderay (~> 1.1)
|
55
60
|
method_source (~> 1.0)
|
56
|
-
racc (1.
|
61
|
+
racc (1.8.1)
|
57
62
|
rainbow (3.1.1)
|
58
|
-
rake (13.1
|
59
|
-
regexp_parser (2.
|
60
|
-
rexml (3.2.6)
|
63
|
+
rake (13.2.1)
|
64
|
+
regexp_parser (2.10.0)
|
61
65
|
rspec (3.13.0)
|
62
66
|
rspec-core (~> 3.13.0)
|
63
67
|
rspec-expectations (~> 3.13.0)
|
64
68
|
rspec-mocks (~> 3.13.0)
|
65
|
-
rspec-core (3.13.
|
69
|
+
rspec-core (3.13.2)
|
66
70
|
rspec-support (~> 3.13.0)
|
67
|
-
rspec-expectations (3.13.
|
71
|
+
rspec-expectations (3.13.3)
|
68
72
|
diff-lcs (>= 1.2.0, < 2.0)
|
69
73
|
rspec-support (~> 3.13.0)
|
70
|
-
rspec-mocks (3.13.
|
74
|
+
rspec-mocks (3.13.2)
|
71
75
|
diff-lcs (>= 1.2.0, < 2.0)
|
72
76
|
rspec-support (~> 3.13.0)
|
73
|
-
rspec-support (3.13.
|
74
|
-
rubocop (1.
|
77
|
+
rspec-support (3.13.2)
|
78
|
+
rubocop (1.71.2)
|
75
79
|
json (~> 2.3)
|
76
80
|
language_server-protocol (>= 3.17.0)
|
77
81
|
parallel (~> 1.10)
|
78
82
|
parser (>= 3.3.0.2)
|
79
83
|
rainbow (>= 2.2.2, < 4.0)
|
80
|
-
regexp_parser (>=
|
81
|
-
|
82
|
-
rubocop-ast (>= 1.30.0, < 2.0)
|
84
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
85
|
+
rubocop-ast (>= 1.38.0, < 2.0)
|
83
86
|
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)
|
87
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
88
|
+
rubocop-ast (1.38.0)
|
89
|
+
parser (>= 3.3.1.0)
|
92
90
|
rubocop-rake (0.6.0)
|
93
91
|
rubocop (~> 1.0)
|
94
|
-
rubocop-rspec (
|
95
|
-
rubocop (~> 1.
|
96
|
-
rubocop-capybara (~> 2.17)
|
97
|
-
rubocop-factory_bot (~> 2.22)
|
92
|
+
rubocop-rspec (3.4.0)
|
93
|
+
rubocop (~> 1.61)
|
98
94
|
ruby-progressbar (1.13.0)
|
99
|
-
|
100
|
-
timeout (0.4.
|
95
|
+
securerandom (0.4.1)
|
96
|
+
timeout (0.4.3)
|
101
97
|
tzinfo (2.0.6)
|
102
98
|
concurrent-ruby (~> 1.0)
|
103
|
-
unicode-display_width (
|
99
|
+
unicode-display_width (3.1.4)
|
100
|
+
unicode-emoji (~> 4.0, >= 4.0.4)
|
101
|
+
unicode-emoji (4.0.4)
|
102
|
+
uri (1.0.2)
|
104
103
|
|
105
104
|
PLATFORMS
|
106
105
|
aarch64-linux-musl
|
@@ -123,4 +122,4 @@ DEPENDENCIES
|
|
123
122
|
rubocop-rspec
|
124
123
|
|
125
124
|
BUNDLED WITH
|
126
|
-
2.
|
125
|
+
2.6.3
|
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.3.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,30 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphql-pagination
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Krzysztof Knapik
|
8
8
|
- RenoFi Engineering Team
|
9
|
-
autorequire:
|
10
9
|
bindir: exe
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2025-02-05 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: graphql
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
16
|
requirements:
|
18
|
-
- - "
|
17
|
+
- - ">="
|
19
18
|
- !ruby/object:Gem::Version
|
20
|
-
version:
|
19
|
+
version: 2.4.7
|
21
20
|
type: :runtime
|
22
21
|
prerelease: false
|
23
22
|
version_requirements: !ruby/object:Gem::Requirement
|
24
23
|
requirements:
|
25
|
-
- - "
|
24
|
+
- - ">="
|
26
25
|
- !ruby/object:Gem::Version
|
27
|
-
version:
|
26
|
+
version: 2.4.7
|
28
27
|
description: Page-based kaminari pagination for graphql returning collection and pagination
|
29
28
|
metadata.
|
30
29
|
email:
|
@@ -40,8 +39,8 @@ files:
|
|
40
39
|
- ".github/ISSUE_TEMPLATE/config.yml"
|
41
40
|
- ".github/ISSUE_TEMPLATE/story.md"
|
42
41
|
- ".github/PULL_REQUEST_TEMPLATE.md"
|
42
|
+
- ".github/dependabot.yml"
|
43
43
|
- ".github/workflows/auto-approve.yml"
|
44
|
-
- ".github/workflows/auto-merge-dependencies.yml"
|
45
44
|
- ".github/workflows/auto-merge.yml"
|
46
45
|
- ".github/workflows/ci.yml"
|
47
46
|
- ".gitignore"
|
@@ -65,7 +64,6 @@ metadata:
|
|
65
64
|
homepage_uri: https://github.com/RenoFi/graphql-pagination
|
66
65
|
source_code_uri: https://github.com/RenoFi/graphql-pagination
|
67
66
|
rubygems_mfa_required: 'true'
|
68
|
-
post_install_message:
|
69
67
|
rdoc_options: []
|
70
68
|
require_paths:
|
71
69
|
- lib
|
@@ -73,15 +71,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
73
71
|
requirements:
|
74
72
|
- - ">="
|
75
73
|
- !ruby/object:Gem::Version
|
76
|
-
version: 3.
|
74
|
+
version: 3.3.0
|
77
75
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
76
|
requirements:
|
79
77
|
- - ">="
|
80
78
|
- !ruby/object:Gem::Version
|
81
79
|
version: '0'
|
82
80
|
requirements: []
|
83
|
-
rubygems_version: 3.
|
84
|
-
signing_key:
|
81
|
+
rubygems_version: 3.6.3
|
85
82
|
specification_version: 4
|
86
83
|
summary: Page-based kaminari pagination for graphql.
|
87
84
|
test_files: []
|
@@ -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: ""
|