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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d7ce3ca921537d2ba59ab369f8b13ef3589c795a071f229f26638de2b8c2e0e9
4
- data.tar.gz: 5251b02d2ded1d15fcc83decdcc66a01f653145037306a4d8f1d797a8774cf7b
3
+ metadata.gz: afd9e4d2bcb920c10f5db2c679977e74af876dc51fe2d44edde7443d8c21a2a8
4
+ data.tar.gz: 6485e139197e892711f43a8772c3e4383af9d5a648ec1bd53297a4b662f44857
5
5
  SHA512:
6
- metadata.gz: d2a37bdf12b318733d60f7fc3c55cfd7ba41891fb9ecda2e0eadb8c1d639b9d43182967f03bb357bf787499f4e0d534e58e2907e4800a7dc7fda72de2f10413f
7
- data.tar.gz: 859d828658d4e02f4680762157280b0a9925557e9b862048a3dd06d8060a42fa5fbca380b180a35b65b08a8fd4fafe11b8f2b5772a464100ab9c7fd65faed65a
6
+ metadata.gz: afbd70d8259b21d58cbdb7c9b2c2f9f8d027e3648f77c3f5caa6afa5e4644dfc98ba120f1ece568f5faaf177ddf05398a7495b32a2669ab19d0d472f043340ef
7
+ data.tar.gz: 3651b3536bc483d59fd93090bfa9e3d761f69cfe518bdeb08313b6fc59ad188de0f8a12187adf46df4fed7c7aa603b58b4c015b3457f298e5bf50a53bc2da35c
data/.bundler-version ADDED
@@ -0,0 +1 @@
1
+ 2.2.22
@@ -3,9 +3,14 @@ version: 1
3
3
  update_configs:
4
4
  - package_manager: "ruby:bundler"
5
5
  directory: "/"
6
- update_schedule: "monthly"
6
+ update_schedule: "daily"
7
7
  commit_message:
8
8
  prefix: "[dependabot]"
9
9
  allowed_updates:
10
10
  - match:
11
- update_type: "all"
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 Dependabot PRs
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
@@ -3,8 +3,8 @@ sudo: false
3
3
  language: ruby
4
4
  cache: bundler
5
5
  rvm:
6
- - 2.6
7
6
  - 2.7
7
+ - 3.0
8
8
  before_install: gem install bundler
9
9
  script:
10
10
  - bundle exec rake spec
data/Gemfile.lock CHANGED
@@ -1,83 +1,85 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- graphql-pagination (1.1.2)
5
- graphql (~> 1.9)
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.0.3.2)
11
- activesupport (= 6.0.3.2)
12
- activerecord (6.0.3.2)
13
- activemodel (= 6.0.3.2)
14
- activesupport (= 6.0.3.2)
15
- activesupport (6.0.3.2)
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 (>= 0.7, < 2)
18
- minitest (~> 5.1)
19
- tzinfo (~> 1.1)
20
- zeitwerk (~> 2.2, >= 2.2.2)
21
- ast (2.4.1)
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.7)
23
+ concurrent-ruby (1.1.9)
24
24
  diff-lcs (1.4.4)
25
- graphql (1.11.4)
26
- i18n (1.8.5)
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.2)
34
- parallel (1.19.2)
35
- parser (2.7.1.4)
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.13.1)
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.1)
42
- regexp_parser (1.7.1)
43
- rexml (3.2.4)
44
- rspec (3.9.0)
45
- rspec-core (~> 3.9.0)
46
- rspec-expectations (~> 3.9.0)
47
- rspec-mocks (~> 3.9.0)
48
- rspec-core (3.9.2)
49
- rspec-support (~> 3.9.3)
50
- rspec-expectations (3.9.2)
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.9.0)
53
- rspec-mocks (3.9.1)
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.9.0)
56
- rspec-support (3.9.3)
57
- rubocop (0.90.0)
55
+ rspec-support (~> 3.10.0)
56
+ rspec-support (3.10.2)
57
+ rubocop (1.18.3)
58
58
  parallel (~> 1.10)
59
- parser (>= 2.7.1.1)
59
+ parser (>= 3.0.0.0)
60
60
  rainbow (>= 2.2.2, < 4.0)
61
- regexp_parser (>= 1.7)
61
+ regexp_parser (>= 1.8, < 3.0)
62
62
  rexml
63
- rubocop-ast (>= 0.3.0, < 1.0)
63
+ rubocop-ast (>= 1.7.0, < 2.0)
64
64
  ruby-progressbar (~> 1.7)
65
- unicode-display_width (>= 1.4.0, < 2.0)
66
- rubocop-ast (0.3.0)
67
- parser (>= 2.7.1.4)
68
- rubocop-performance (1.7.1)
69
- rubocop (>= 0.82.0)
70
- rubocop-rspec (1.43.2)
71
- rubocop (~> 0.87)
72
- ruby-progressbar (1.10.1)
73
- thread_safe (0.3.6)
74
- tzinfo (1.2.7)
75
- thread_safe (~> 0.1)
76
- unicode-display_width (1.7.0)
77
- zeitwerk (2.4.0)
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-performance
92
+ rubocop-rake
91
93
  rubocop-rspec
92
94
 
93
95
  BUNDLED WITH
94
- 2.1.4
96
+ 2.2.15
@@ -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.9'
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-performance'
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
- @collection_type ||= begin
4
+ @collection_types ||= {}
5
+ @collection_types[metadata_type] ||= begin
5
6
  type_name = "#{graphql_name}Collection"
6
7
  source_type = self
7
8
 
@@ -1,3 +1,3 @@
1
1
  module GraphqlPagination
2
- VERSION = '1.1.2'.freeze
2
+ VERSION = '1.1.3'.freeze
3
3
  end
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.2
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: 2020-09-02 00:00:00.000000000 Z
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.9'
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.9'
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-performance
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.1.2
192
+ rubygems_version: 3.2.15
191
193
  signing_key:
192
194
  specification_version: 4
193
195
  summary: Page-based kaminari pagination for graphql.