graphql-pagination 1.1.2 → 1.1.3
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 -0
- data/.dependabot/config.yml +7 -2
- data/.github/workflows/auto-approve.yml +3 -3
- data/.github/workflows/auto-merge.yml +19 -0
- data/.travis.yml +1 -1
- data/Gemfile.lock +55 -53
- data/graphql-pagination.gemspec +2 -2
- data/lib/graphql_pagination/collection_type.rb +2 -1
- data/lib/graphql_pagination/version.rb +1 -1
- metadata +8 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: afd9e4d2bcb920c10f5db2c679977e74af876dc51fe2d44edde7443d8c21a2a8
|
4
|
+
data.tar.gz: 6485e139197e892711f43a8772c3e4383af9d5a648ec1bd53297a4b662f44857
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: afbd70d8259b21d58cbdb7c9b2c2f9f8d027e3648f77c3f5caa6afa5e4644dfc98ba120f1ece568f5faaf177ddf05398a7495b32a2669ab19d0d472f043340ef
|
7
|
+
data.tar.gz: 3651b3536bc483d59fd93090bfa9e3d761f69cfe518bdeb08313b6fc59ad188de0f8a12187adf46df4fed7c7aa603b58b4c015b3457f298e5bf50a53bc2da35c
|
data/.bundler-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.2.22
|
data/.dependabot/config.yml
CHANGED
@@ -3,9 +3,14 @@ version: 1
|
|
3
3
|
update_configs:
|
4
4
|
- package_manager: "ruby:bundler"
|
5
5
|
directory: "/"
|
6
|
-
update_schedule: "
|
6
|
+
update_schedule: "daily"
|
7
7
|
commit_message:
|
8
8
|
prefix: "[dependabot]"
|
9
9
|
allowed_updates:
|
10
10
|
- match:
|
11
|
-
|
11
|
+
dependency_type: "all"
|
12
|
+
update_type: "security"
|
13
|
+
automerged_updates:
|
14
|
+
- match:
|
15
|
+
dependency_type: "all"
|
16
|
+
update_type: "security:patch"
|
@@ -1,7 +1,7 @@
|
|
1
|
-
# automatically approve PRs submitted by Dependabot
|
1
|
+
# automatically approve PRs submitted by Dependabot or Renofidev
|
2
2
|
# this will allow Dependabot to automatically merge dependency update PRs where CI passes
|
3
3
|
# from: https://github.com/hmarr/auto-approve-action
|
4
|
-
name: Auto approve
|
4
|
+
name: Auto approve dependency upgrades PRs
|
5
5
|
|
6
6
|
on:
|
7
7
|
pull_request
|
@@ -11,6 +11,6 @@ jobs:
|
|
11
11
|
runs-on: ubuntu-latest
|
12
12
|
steps:
|
13
13
|
- uses: hmarr/auto-approve-action@v2.0.0
|
14
|
-
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
|
14
|
+
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' || github.actor == 'renofidev'
|
15
15
|
with:
|
16
16
|
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
@@ -0,0 +1,19 @@
|
|
1
|
+
name: automerge
|
2
|
+
on:
|
3
|
+
pull_request_review:
|
4
|
+
types:
|
5
|
+
- submitted
|
6
|
+
check_suite:
|
7
|
+
types:
|
8
|
+
- completed
|
9
|
+
status: {}
|
10
|
+
jobs:
|
11
|
+
automerge:
|
12
|
+
runs-on: ubuntu-latest
|
13
|
+
steps:
|
14
|
+
- name: automerge
|
15
|
+
uses: "pascalgn/automerge-action@v0.12.0"
|
16
|
+
env:
|
17
|
+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
18
|
+
MERGE_METHOD: squash
|
19
|
+
MERGE_DELETE_BRANCH: true
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,83 +1,85 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
graphql-pagination (1.1.
|
5
|
-
graphql (~> 1.
|
4
|
+
graphql-pagination (1.1.3)
|
5
|
+
graphql (~> 1.11)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activemodel (6.
|
11
|
-
activesupport (= 6.
|
12
|
-
activerecord (6.
|
13
|
-
activemodel (= 6.
|
14
|
-
activesupport (= 6.
|
15
|
-
activesupport (6.
|
10
|
+
activemodel (6.1.4)
|
11
|
+
activesupport (= 6.1.4)
|
12
|
+
activerecord (6.1.4)
|
13
|
+
activemodel (= 6.1.4)
|
14
|
+
activesupport (= 6.1.4)
|
15
|
+
activesupport (6.1.4)
|
16
16
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
17
|
-
i18n (>=
|
18
|
-
minitest (
|
19
|
-
tzinfo (~>
|
20
|
-
zeitwerk (~> 2.
|
21
|
-
ast (2.4.
|
17
|
+
i18n (>= 1.6, < 2)
|
18
|
+
minitest (>= 5.1)
|
19
|
+
tzinfo (~> 2.0)
|
20
|
+
zeitwerk (~> 2.3)
|
21
|
+
ast (2.4.2)
|
22
22
|
coderay (1.1.3)
|
23
|
-
concurrent-ruby (1.1.
|
23
|
+
concurrent-ruby (1.1.9)
|
24
24
|
diff-lcs (1.4.4)
|
25
|
-
graphql (1.
|
26
|
-
i18n (1.8.
|
25
|
+
graphql (1.12.13)
|
26
|
+
i18n (1.8.10)
|
27
27
|
concurrent-ruby (~> 1.0)
|
28
28
|
kaminari-activerecord (1.2.1)
|
29
29
|
activerecord
|
30
30
|
kaminari-core (= 1.2.1)
|
31
31
|
kaminari-core (1.2.1)
|
32
32
|
method_source (1.0.0)
|
33
|
-
minitest (5.14.
|
34
|
-
parallel (1.
|
35
|
-
parser (
|
33
|
+
minitest (5.14.4)
|
34
|
+
parallel (1.20.1)
|
35
|
+
parser (3.0.1.1)
|
36
36
|
ast (~> 2.4.1)
|
37
|
-
pry (0.
|
37
|
+
pry (0.14.1)
|
38
38
|
coderay (~> 1.1)
|
39
39
|
method_source (~> 1.0)
|
40
40
|
rainbow (3.0.0)
|
41
|
-
rake (13.0.
|
42
|
-
regexp_parser (1.
|
43
|
-
rexml (3.2.
|
44
|
-
rspec (3.
|
45
|
-
rspec-core (~> 3.
|
46
|
-
rspec-expectations (~> 3.
|
47
|
-
rspec-mocks (~> 3.
|
48
|
-
rspec-core (3.
|
49
|
-
rspec-support (~> 3.
|
50
|
-
rspec-expectations (3.
|
41
|
+
rake (13.0.4)
|
42
|
+
regexp_parser (2.1.1)
|
43
|
+
rexml (3.2.5)
|
44
|
+
rspec (3.10.0)
|
45
|
+
rspec-core (~> 3.10.0)
|
46
|
+
rspec-expectations (~> 3.10.0)
|
47
|
+
rspec-mocks (~> 3.10.0)
|
48
|
+
rspec-core (3.10.1)
|
49
|
+
rspec-support (~> 3.10.0)
|
50
|
+
rspec-expectations (3.10.1)
|
51
51
|
diff-lcs (>= 1.2.0, < 2.0)
|
52
|
-
rspec-support (~> 3.
|
53
|
-
rspec-mocks (3.
|
52
|
+
rspec-support (~> 3.10.0)
|
53
|
+
rspec-mocks (3.10.2)
|
54
54
|
diff-lcs (>= 1.2.0, < 2.0)
|
55
|
-
rspec-support (~> 3.
|
56
|
-
rspec-support (3.
|
57
|
-
rubocop (
|
55
|
+
rspec-support (~> 3.10.0)
|
56
|
+
rspec-support (3.10.2)
|
57
|
+
rubocop (1.18.3)
|
58
58
|
parallel (~> 1.10)
|
59
|
-
parser (>=
|
59
|
+
parser (>= 3.0.0.0)
|
60
60
|
rainbow (>= 2.2.2, < 4.0)
|
61
|
-
regexp_parser (>= 1.
|
61
|
+
regexp_parser (>= 1.8, < 3.0)
|
62
62
|
rexml
|
63
|
-
rubocop-ast (>=
|
63
|
+
rubocop-ast (>= 1.7.0, < 2.0)
|
64
64
|
ruby-progressbar (~> 1.7)
|
65
|
-
unicode-display_width (>= 1.4.0, <
|
66
|
-
rubocop-ast (
|
67
|
-
parser (>=
|
68
|
-
rubocop-
|
69
|
-
rubocop (
|
70
|
-
rubocop-rspec (
|
71
|
-
rubocop (~> 0
|
72
|
-
|
73
|
-
|
74
|
-
tzinfo (
|
75
|
-
|
76
|
-
unicode-display_width (
|
77
|
-
zeitwerk (2.4.
|
65
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
66
|
+
rubocop-ast (1.7.0)
|
67
|
+
parser (>= 3.0.1.1)
|
68
|
+
rubocop-rake (0.6.0)
|
69
|
+
rubocop (~> 1.0)
|
70
|
+
rubocop-rspec (2.4.0)
|
71
|
+
rubocop (~> 1.0)
|
72
|
+
rubocop-ast (>= 1.1.0)
|
73
|
+
ruby-progressbar (1.11.0)
|
74
|
+
tzinfo (2.0.4)
|
75
|
+
concurrent-ruby (~> 1.0)
|
76
|
+
unicode-display_width (2.0.0)
|
77
|
+
zeitwerk (2.4.2)
|
78
78
|
|
79
79
|
PLATFORMS
|
80
80
|
ruby
|
81
|
+
x86_64-darwin-20
|
82
|
+
x86_64-linux
|
81
83
|
|
82
84
|
DEPENDENCIES
|
83
85
|
graphql-pagination!
|
@@ -87,8 +89,8 @@ DEPENDENCIES
|
|
87
89
|
rake
|
88
90
|
rspec
|
89
91
|
rubocop
|
90
|
-
rubocop-
|
92
|
+
rubocop-rake
|
91
93
|
rubocop-rspec
|
92
94
|
|
93
95
|
BUNDLED WITH
|
94
|
-
2.
|
96
|
+
2.2.15
|
data/graphql-pagination.gemspec
CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
|
|
25
25
|
|
26
26
|
spec.required_ruby_version = '>= 2.6'
|
27
27
|
|
28
|
-
spec.add_dependency 'graphql', '~> 1.
|
28
|
+
spec.add_dependency 'graphql', '~> 1.11'
|
29
29
|
|
30
30
|
spec.add_development_dependency 'kaminari-activerecord'
|
31
31
|
spec.add_development_dependency 'kaminari-core'
|
@@ -33,6 +33,6 @@ Gem::Specification.new do |spec|
|
|
33
33
|
spec.add_development_dependency 'rake'
|
34
34
|
spec.add_development_dependency 'rspec'
|
35
35
|
spec.add_development_dependency 'rubocop'
|
36
|
-
spec.add_development_dependency 'rubocop-
|
36
|
+
spec.add_development_dependency 'rubocop-rake'
|
37
37
|
spec.add_development_dependency 'rubocop-rspec'
|
38
38
|
end
|
@@ -1,7 +1,8 @@
|
|
1
1
|
module GraphqlPagination
|
2
2
|
module CollectionType
|
3
3
|
def collection_type(metadata_type: GraphqlPagination::CollectionMetadataType)
|
4
|
-
@
|
4
|
+
@collection_types ||= {}
|
5
|
+
@collection_types[metadata_type] ||= begin
|
5
6
|
type_name = "#{graphql_name}Collection"
|
6
7
|
source_type = self
|
7
8
|
|
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: 1.1.
|
4
|
+
version: 1.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:
|
12
|
+
date: 2021-07-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: graphql
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '1.
|
20
|
+
version: '1.11'
|
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: '1.
|
27
|
+
version: '1.11'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: kaminari-activerecord
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -110,7 +110,7 @@ dependencies:
|
|
110
110
|
- !ruby/object:Gem::Version
|
111
111
|
version: '0'
|
112
112
|
- !ruby/object:Gem::Dependency
|
113
|
-
name: rubocop-
|
113
|
+
name: rubocop-rake
|
114
114
|
requirement: !ruby/object:Gem::Requirement
|
115
115
|
requirements:
|
116
116
|
- - ">="
|
@@ -146,12 +146,14 @@ executables: []
|
|
146
146
|
extensions: []
|
147
147
|
extra_rdoc_files: []
|
148
148
|
files:
|
149
|
+
- ".bundler-version"
|
149
150
|
- ".dependabot/config.yml"
|
150
151
|
- ".github/ISSUE_TEMPLATE/bug_report.md"
|
151
152
|
- ".github/ISSUE_TEMPLATE/config.yml"
|
152
153
|
- ".github/ISSUE_TEMPLATE/story.md"
|
153
154
|
- ".github/PULL_REQUEST_TEMPLATE.md"
|
154
155
|
- ".github/workflows/auto-approve.yml"
|
156
|
+
- ".github/workflows/auto-merge.yml"
|
155
157
|
- ".gitignore"
|
156
158
|
- ".rspec"
|
157
159
|
- ".travis.yml"
|
@@ -187,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
187
189
|
- !ruby/object:Gem::Version
|
188
190
|
version: '0'
|
189
191
|
requirements: []
|
190
|
-
rubygems_version: 3.
|
192
|
+
rubygems_version: 3.2.15
|
191
193
|
signing_key:
|
192
194
|
specification_version: 4
|
193
195
|
summary: Page-based kaminari pagination for graphql.
|