graphql-pagination 2.1.1 → 2.1.3
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/workflows/auto-approve.yml +8 -9
- data/.github/workflows/auto-merge-dependencies.yml +1 -1
- data/.github/workflows/auto-merge.yml +1 -1
- data/.github/workflows/ci.yml +1 -1
- data/Gemfile.lock +36 -27
- data/lib/graphql_pagination/collection_metadata_type.rb +4 -4
- data/lib/graphql_pagination/collection_type.rb +3 -2
- data/lib/graphql_pagination/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b4957b0f34272595a82bbdd6fd645800f324a7fcf6b0a4dbf29f9ca077d2bf47
|
|
4
|
+
data.tar.gz: efbac1904152ec230e65d4cbd964c6bd14f77ee30ee4fff86537fdf0f2ddb32b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b688737afcde10674e2f7a1348f6eb7c49bd172e36863a86131c933cf8aad4daf9559bd0b8a3195a178b036583b13ba1c5a701515ae1d169e25f1eda7fa4b0e0
|
|
7
|
+
data.tar.gz: f7aa28fb0557930ba5d1c6dafb237086b9ba56e17eec74d6c55c0126836d214f608329ad9182e8105b24f1dd68909b915436447a93e00d863a7131719d4e0e3b
|
data/.bundler-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.4.
|
|
1
|
+
2.4.19
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
on: pull_request_target
|
|
1
|
+
name: Auto approve dependency upgrades and hot-fix PRs
|
|
2
|
+
on:
|
|
3
|
+
pull_request_target:
|
|
4
|
+
types: [labeled, unlabeled, edited, ready_for_review, review_requested, auto_merge_enabled]
|
|
6
5
|
|
|
7
6
|
jobs:
|
|
8
7
|
auto-approve:
|
|
9
8
|
runs-on: ubuntu-latest
|
|
10
9
|
steps:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
- uses: hmarr/auto-approve-action@v3
|
|
11
|
+
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' || github.actor == 'renofidev' || contains(toJson(github), 'HOTFIX-AUTO-APPROVE')
|
|
12
|
+
with:
|
|
13
|
+
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
data/.github/workflows/ci.yml
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,79 +1,88 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
graphql-pagination (2.1.
|
|
4
|
+
graphql-pagination (2.1.3)
|
|
5
5
|
graphql (~> 2.0)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: https://rubygems.org/
|
|
9
9
|
specs:
|
|
10
|
-
activemodel (7.0.
|
|
11
|
-
activesupport (= 7.0.
|
|
12
|
-
activerecord (7.0.
|
|
13
|
-
activemodel (= 7.0.
|
|
14
|
-
activesupport (= 7.0.
|
|
15
|
-
activesupport (7.0.
|
|
10
|
+
activemodel (7.0.8)
|
|
11
|
+
activesupport (= 7.0.8)
|
|
12
|
+
activerecord (7.0.8)
|
|
13
|
+
activemodel (= 7.0.8)
|
|
14
|
+
activesupport (= 7.0.8)
|
|
15
|
+
activesupport (7.0.8)
|
|
16
16
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
17
17
|
i18n (>= 1.6, < 2)
|
|
18
18
|
minitest (>= 5.1)
|
|
19
19
|
tzinfo (~> 2.0)
|
|
20
20
|
ast (2.4.2)
|
|
21
|
+
base64 (0.1.1)
|
|
21
22
|
coderay (1.1.3)
|
|
22
|
-
concurrent-ruby (1.2.
|
|
23
|
+
concurrent-ruby (1.2.2)
|
|
23
24
|
diff-lcs (1.5.0)
|
|
24
|
-
graphql (2.0
|
|
25
|
-
i18n (1.
|
|
25
|
+
graphql (2.1.0)
|
|
26
|
+
i18n (1.14.1)
|
|
26
27
|
concurrent-ruby (~> 1.0)
|
|
27
28
|
json (2.6.3)
|
|
28
29
|
kaminari-activerecord (1.2.2)
|
|
29
30
|
activerecord
|
|
30
31
|
kaminari-core (= 1.2.2)
|
|
31
32
|
kaminari-core (1.2.2)
|
|
33
|
+
language_server-protocol (3.17.0.3)
|
|
32
34
|
method_source (1.0.0)
|
|
33
|
-
minitest (5.
|
|
34
|
-
parallel (1.
|
|
35
|
-
parser (3.2.
|
|
35
|
+
minitest (5.20.0)
|
|
36
|
+
parallel (1.23.0)
|
|
37
|
+
parser (3.2.2.3)
|
|
36
38
|
ast (~> 2.4.1)
|
|
39
|
+
racc
|
|
37
40
|
pry (0.14.2)
|
|
38
41
|
coderay (~> 1.1)
|
|
39
42
|
method_source (~> 1.0)
|
|
43
|
+
racc (1.7.1)
|
|
40
44
|
rainbow (3.1.1)
|
|
41
45
|
rake (13.0.6)
|
|
42
|
-
regexp_parser (2.
|
|
43
|
-
rexml (3.2.
|
|
46
|
+
regexp_parser (2.8.1)
|
|
47
|
+
rexml (3.2.6)
|
|
44
48
|
rspec (3.12.0)
|
|
45
49
|
rspec-core (~> 3.12.0)
|
|
46
50
|
rspec-expectations (~> 3.12.0)
|
|
47
51
|
rspec-mocks (~> 3.12.0)
|
|
48
|
-
rspec-core (3.12.
|
|
52
|
+
rspec-core (3.12.2)
|
|
49
53
|
rspec-support (~> 3.12.0)
|
|
50
|
-
rspec-expectations (3.12.
|
|
54
|
+
rspec-expectations (3.12.3)
|
|
51
55
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
52
56
|
rspec-support (~> 3.12.0)
|
|
53
|
-
rspec-mocks (3.12.
|
|
57
|
+
rspec-mocks (3.12.6)
|
|
54
58
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
55
59
|
rspec-support (~> 3.12.0)
|
|
56
|
-
rspec-support (3.12.
|
|
57
|
-
rubocop (1.
|
|
60
|
+
rspec-support (3.12.1)
|
|
61
|
+
rubocop (1.56.3)
|
|
62
|
+
base64 (~> 0.1.1)
|
|
58
63
|
json (~> 2.3)
|
|
64
|
+
language_server-protocol (>= 3.17.0)
|
|
59
65
|
parallel (~> 1.10)
|
|
60
|
-
parser (>= 3.2.
|
|
66
|
+
parser (>= 3.2.2.3)
|
|
61
67
|
rainbow (>= 2.2.2, < 4.0)
|
|
62
68
|
regexp_parser (>= 1.8, < 3.0)
|
|
63
69
|
rexml (>= 3.2.5, < 4.0)
|
|
64
|
-
rubocop-ast (>= 1.
|
|
70
|
+
rubocop-ast (>= 1.28.1, < 2.0)
|
|
65
71
|
ruby-progressbar (~> 1.7)
|
|
66
72
|
unicode-display_width (>= 2.4.0, < 3.0)
|
|
67
|
-
rubocop-ast (1.
|
|
73
|
+
rubocop-ast (1.29.0)
|
|
68
74
|
parser (>= 3.2.1.0)
|
|
69
|
-
rubocop-capybara (2.
|
|
75
|
+
rubocop-capybara (2.18.0)
|
|
70
76
|
rubocop (~> 1.41)
|
|
77
|
+
rubocop-factory_bot (2.23.1)
|
|
78
|
+
rubocop (~> 1.33)
|
|
71
79
|
rubocop-rake (0.6.0)
|
|
72
80
|
rubocop (~> 1.0)
|
|
73
|
-
rubocop-rspec (2.
|
|
81
|
+
rubocop-rspec (2.24.0)
|
|
74
82
|
rubocop (~> 1.33)
|
|
75
83
|
rubocop-capybara (~> 2.17)
|
|
76
|
-
|
|
84
|
+
rubocop-factory_bot (~> 2.22)
|
|
85
|
+
ruby-progressbar (1.13.0)
|
|
77
86
|
tzinfo (2.0.6)
|
|
78
87
|
concurrent-ruby (~> 1.0)
|
|
79
88
|
unicode-display_width (2.4.2)
|
|
@@ -99,4 +108,4 @@ DEPENDENCIES
|
|
|
99
108
|
rubocop-rspec
|
|
100
109
|
|
|
101
110
|
BUNDLED WITH
|
|
102
|
-
2.4.
|
|
111
|
+
2.4.19
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
module GraphqlPagination
|
|
2
2
|
class CollectionMetadataType < GraphQL::Schema::Object
|
|
3
|
-
field :current_page, Integer, null: false
|
|
4
|
-
field :limit_value, Integer, null: false
|
|
5
|
-
field :total_count, Integer, null: false
|
|
6
|
-
field :total_pages, Integer, null: false
|
|
3
|
+
field :current_page, Integer, null: false, description: "Current Page of loaded data"
|
|
4
|
+
field :limit_value, Integer, null: false, description: "The number of items per page"
|
|
5
|
+
field :total_count, Integer, null: false, description: "The total number of items to be paginated"
|
|
6
|
+
field :total_pages, Integer, null: false, description: "The total number of pages in the pagination"
|
|
7
7
|
end
|
|
8
8
|
end
|
|
@@ -14,8 +14,9 @@ module GraphqlPagination
|
|
|
14
14
|
|
|
15
15
|
Class.new(collection_base) do
|
|
16
16
|
graphql_name type_name
|
|
17
|
-
|
|
18
|
-
field :
|
|
17
|
+
description "#{graphql_name} type"
|
|
18
|
+
field :collection, [source_type], null: false, description: "A collection of paginated #{graphql_name}"
|
|
19
|
+
field :metadata, metadata_type, null: false, description: "Pagination Metadata for navigating the Pagination"
|
|
19
20
|
|
|
20
21
|
def collection
|
|
21
22
|
object
|
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.1.
|
|
4
|
+
version: 2.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Krzysztof Knapik
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: exe
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2023-
|
|
12
|
+
date: 2023-09-17 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: graphql
|
|
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
80
80
|
- !ruby/object:Gem::Version
|
|
81
81
|
version: '0'
|
|
82
82
|
requirements: []
|
|
83
|
-
rubygems_version: 3.4.
|
|
83
|
+
rubygems_version: 3.4.19
|
|
84
84
|
signing_key:
|
|
85
85
|
specification_version: 4
|
|
86
86
|
summary: Page-based kaminari pagination for graphql.
|