graphql-pagination 2.1.3 → 2.2.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/.dependabot/config.yml +9 -13
- data/.github/workflows/auto-approve.yml +1 -1
- data/.github/workflows/auto-merge-dependencies.yml +2 -2
- data/.github/workflows/auto-merge.yml +1 -1
- data/.github/workflows/ci.yml +2 -2
- data/Gemfile.lock +57 -42
- data/graphql-pagination.gemspec +2 -2
- data/lib/graphql_pagination/collection_metadata_type.rb +1 -0
- data/lib/graphql_pagination/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e36fc3c5d6686a8d797befac3b3450b3a5254d28275403f72f6db19f678fceb
|
4
|
+
data.tar.gz: b1c9040a6f046723a196268aa554cb3fb7b5f5605cd099a72b90fd29df69d9ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54827b29fda5a5f73fc7414ce1abcd7c0bdb12bf9faf6375222c8c7cbd21389a25a9e657141e332f5cad8a9588fc39183979fc9a81f6fb625f160d6a3c16084d
|
7
|
+
data.tar.gz: 55375dbaf70a2d053b347ab73579ef1dabddfdbd588b5b6dbf26e308521626ee9c04cf696112019443127db5dda1460380d0065ec5e8853096b5b91aefa00768
|
data/.bundler-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.5.6
|
data/.dependabot/config.yml
CHANGED
@@ -1,19 +1,15 @@
|
|
1
|
-
version:
|
1
|
+
version: 2
|
2
2
|
|
3
|
-
|
4
|
-
-
|
3
|
+
updates:
|
4
|
+
- package-ecosystem: "bundler"
|
5
5
|
directory: "/"
|
6
|
-
|
7
|
-
|
6
|
+
schedule:
|
7
|
+
interval: "weekly"
|
8
|
+
day: "monday"
|
9
|
+
time: "08:00"
|
10
|
+
timezone: "UTC"
|
11
|
+
commit-message:
|
8
12
|
prefix: "[dependabot]"
|
9
|
-
allowed_updates:
|
10
|
-
- match:
|
11
|
-
dependency_type: "all"
|
12
|
-
update_type: "security"
|
13
|
-
automerged_updates:
|
14
|
-
- match:
|
15
|
-
dependency_type: "all"
|
16
|
-
update_type: "security:patch"
|
17
13
|
labels:
|
18
14
|
- "automerge"
|
19
15
|
- "dependencies"
|
@@ -8,6 +8,6 @@ jobs:
|
|
8
8
|
runs-on: ubuntu-latest
|
9
9
|
steps:
|
10
10
|
- uses: hmarr/auto-approve-action@v3
|
11
|
-
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' || github.actor == 'renofidev' || contains(
|
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
12
|
with:
|
13
13
|
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
@@ -15,10 +15,10 @@ jobs:
|
|
15
15
|
runs-on: ubuntu-latest
|
16
16
|
steps:
|
17
17
|
- name: automerge-dependencies
|
18
|
-
uses: pascalgn/automerge-action@v0.
|
18
|
+
uses: pascalgn/automerge-action@v0.16.2
|
19
19
|
env:
|
20
20
|
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
21
21
|
MERGE_METHOD: squash
|
22
22
|
MERGE_DELETE_BRANCH: true
|
23
|
-
MERGE_LABELS: dependencies
|
23
|
+
MERGE_LABELS: "dependencies,!automerge blocked"
|
24
24
|
MERGE_REMOVE_LABELS: ""
|
data/.github/workflows/ci.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,91 +1,106 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
graphql-pagination (2.
|
4
|
+
graphql-pagination (2.2.0)
|
5
5
|
graphql (~> 2.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activemodel (7.
|
11
|
-
activesupport (= 7.
|
12
|
-
activerecord (7.
|
13
|
-
activemodel (= 7.
|
14
|
-
activesupport (= 7.
|
15
|
-
|
10
|
+
activemodel (7.1.3.2)
|
11
|
+
activesupport (= 7.1.3.2)
|
12
|
+
activerecord (7.1.3.2)
|
13
|
+
activemodel (= 7.1.3.2)
|
14
|
+
activesupport (= 7.1.3.2)
|
15
|
+
timeout (>= 0.4.0)
|
16
|
+
activesupport (7.1.3.2)
|
17
|
+
base64
|
18
|
+
bigdecimal
|
16
19
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
20
|
+
connection_pool (>= 2.2.5)
|
21
|
+
drb
|
17
22
|
i18n (>= 1.6, < 2)
|
18
23
|
minitest (>= 5.1)
|
24
|
+
mutex_m
|
19
25
|
tzinfo (~> 2.0)
|
20
26
|
ast (2.4.2)
|
21
|
-
base64 (0.
|
27
|
+
base64 (0.2.0)
|
28
|
+
bigdecimal (3.1.6)
|
22
29
|
coderay (1.1.3)
|
23
|
-
concurrent-ruby (1.2.
|
24
|
-
|
25
|
-
|
30
|
+
concurrent-ruby (1.2.3)
|
31
|
+
connection_pool (2.4.1)
|
32
|
+
diff-lcs (1.5.1)
|
33
|
+
drb (2.2.0)
|
34
|
+
ruby2_keywords
|
35
|
+
graphql (2.2.11)
|
36
|
+
base64
|
26
37
|
i18n (1.14.1)
|
27
38
|
concurrent-ruby (~> 1.0)
|
28
|
-
json (2.
|
39
|
+
json (2.7.1)
|
29
40
|
kaminari-activerecord (1.2.2)
|
30
41
|
activerecord
|
31
42
|
kaminari-core (= 1.2.2)
|
32
43
|
kaminari-core (1.2.2)
|
33
44
|
language_server-protocol (3.17.0.3)
|
34
45
|
method_source (1.0.0)
|
35
|
-
minitest (5.
|
36
|
-
|
37
|
-
|
46
|
+
minitest (5.22.2)
|
47
|
+
mutex_m (0.2.0)
|
48
|
+
parallel (1.24.0)
|
49
|
+
parser (3.3.0.5)
|
38
50
|
ast (~> 2.4.1)
|
39
51
|
racc
|
52
|
+
prism (0.24.0)
|
40
53
|
pry (0.14.2)
|
41
54
|
coderay (~> 1.1)
|
42
55
|
method_source (~> 1.0)
|
43
|
-
racc (1.7.
|
56
|
+
racc (1.7.3)
|
44
57
|
rainbow (3.1.1)
|
45
|
-
rake (13.0
|
46
|
-
regexp_parser (2.
|
58
|
+
rake (13.1.0)
|
59
|
+
regexp_parser (2.9.0)
|
47
60
|
rexml (3.2.6)
|
48
|
-
rspec (3.
|
49
|
-
rspec-core (~> 3.
|
50
|
-
rspec-expectations (~> 3.
|
51
|
-
rspec-mocks (~> 3.
|
52
|
-
rspec-core (3.
|
53
|
-
rspec-support (~> 3.
|
54
|
-
rspec-expectations (3.
|
61
|
+
rspec (3.13.0)
|
62
|
+
rspec-core (~> 3.13.0)
|
63
|
+
rspec-expectations (~> 3.13.0)
|
64
|
+
rspec-mocks (~> 3.13.0)
|
65
|
+
rspec-core (3.13.0)
|
66
|
+
rspec-support (~> 3.13.0)
|
67
|
+
rspec-expectations (3.13.0)
|
55
68
|
diff-lcs (>= 1.2.0, < 2.0)
|
56
|
-
rspec-support (~> 3.
|
57
|
-
rspec-mocks (3.
|
69
|
+
rspec-support (~> 3.13.0)
|
70
|
+
rspec-mocks (3.13.0)
|
58
71
|
diff-lcs (>= 1.2.0, < 2.0)
|
59
|
-
rspec-support (~> 3.
|
60
|
-
rspec-support (3.
|
61
|
-
rubocop (1.
|
62
|
-
base64 (~> 0.1.1)
|
72
|
+
rspec-support (~> 3.13.0)
|
73
|
+
rspec-support (3.13.1)
|
74
|
+
rubocop (1.61.0)
|
63
75
|
json (~> 2.3)
|
64
76
|
language_server-protocol (>= 3.17.0)
|
65
77
|
parallel (~> 1.10)
|
66
|
-
parser (>= 3.
|
78
|
+
parser (>= 3.3.0.2)
|
67
79
|
rainbow (>= 2.2.2, < 4.0)
|
68
80
|
regexp_parser (>= 1.8, < 3.0)
|
69
81
|
rexml (>= 3.2.5, < 4.0)
|
70
|
-
rubocop-ast (>= 1.
|
82
|
+
rubocop-ast (>= 1.30.0, < 2.0)
|
71
83
|
ruby-progressbar (~> 1.7)
|
72
84
|
unicode-display_width (>= 2.4.0, < 3.0)
|
73
|
-
rubocop-ast (1.
|
74
|
-
parser (>= 3.
|
75
|
-
|
85
|
+
rubocop-ast (1.31.0)
|
86
|
+
parser (>= 3.3.0.4)
|
87
|
+
prism (>= 0.24.0)
|
88
|
+
rubocop-capybara (2.20.0)
|
89
|
+
rubocop (~> 1.41)
|
90
|
+
rubocop-factory_bot (2.25.1)
|
76
91
|
rubocop (~> 1.41)
|
77
|
-
rubocop-factory_bot (2.23.1)
|
78
|
-
rubocop (~> 1.33)
|
79
92
|
rubocop-rake (0.6.0)
|
80
93
|
rubocop (~> 1.0)
|
81
|
-
rubocop-rspec (2.
|
82
|
-
rubocop (~> 1.
|
94
|
+
rubocop-rspec (2.26.1)
|
95
|
+
rubocop (~> 1.40)
|
83
96
|
rubocop-capybara (~> 2.17)
|
84
97
|
rubocop-factory_bot (~> 2.22)
|
85
98
|
ruby-progressbar (1.13.0)
|
99
|
+
ruby2_keywords (0.0.5)
|
100
|
+
timeout (0.4.1)
|
86
101
|
tzinfo (2.0.6)
|
87
102
|
concurrent-ruby (~> 1.0)
|
88
|
-
unicode-display_width (2.
|
103
|
+
unicode-display_width (2.5.0)
|
89
104
|
|
90
105
|
PLATFORMS
|
91
106
|
aarch64-linux-musl
|
@@ -108,4 +123,4 @@ DEPENDENCIES
|
|
108
123
|
rubocop-rspec
|
109
124
|
|
110
125
|
BUNDLED WITH
|
111
|
-
2.
|
126
|
+
2.5.6
|
data/graphql-pagination.gemspec
CHANGED
@@ -17,6 +17,8 @@ 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.1.0')
|
21
|
+
|
20
22
|
spec.files = Dir.chdir(__dir__) do
|
21
23
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(bin/|spec/|\.rub)}) }
|
22
24
|
end
|
@@ -24,7 +26,5 @@ Gem::Specification.new do |spec|
|
|
24
26
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
25
27
|
spec.require_paths = ['lib']
|
26
28
|
|
27
|
-
spec.required_ruby_version = '>= 3.0'
|
28
|
-
|
29
29
|
spec.add_dependency 'graphql', '~> 2.0'
|
30
30
|
end
|
@@ -1,5 +1,6 @@
|
|
1
1
|
module GraphqlPagination
|
2
2
|
class CollectionMetadataType < GraphQL::Schema::Object
|
3
|
+
description "Type for CollectionMetadataType"
|
3
4
|
field :current_page, Integer, null: false, description: "Current Page of loaded data"
|
4
5
|
field :limit_value, Integer, null: false, description: "The number of items per page"
|
5
6
|
field :total_count, Integer, null: false, description: "The total number of items to be paginated"
|
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.2.0
|
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:
|
12
|
+
date: 2024-02-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: graphql
|
@@ -73,14 +73,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
73
73
|
requirements:
|
74
74
|
- - ">="
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version:
|
76
|
+
version: 3.1.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.
|
83
|
+
rubygems_version: 3.5.3
|
84
84
|
signing_key:
|
85
85
|
specification_version: 4
|
86
86
|
summary: Page-based kaminari pagination for graphql.
|