graphql-pagination 2.2.0 → 2.4.0

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: 6e36fc3c5d6686a8d797befac3b3450b3a5254d28275403f72f6db19f678fceb
4
- data.tar.gz: b1c9040a6f046723a196268aa554cb3fb7b5f5605cd099a72b90fd29df69d9ed
3
+ metadata.gz: dd466ae9a7321da404337a0f4ae48af8565908cea8a4cf566b66346940966e3c
4
+ data.tar.gz: 30a0ca37028db819874d92a7dcf81ec9510ed7458b641c3c31373dd1c9719661
5
5
  SHA512:
6
- metadata.gz: 54827b29fda5a5f73fc7414ce1abcd7c0bdb12bf9faf6375222c8c7cbd21389a25a9e657141e332f5cad8a9588fc39183979fc9a81f6fb625f160d6a3c16084d
7
- data.tar.gz: 55375dbaf70a2d053b347ab73579ef1dabddfdbd588b5b6dbf26e308521626ee9c04cf696112019443127db5dda1460380d0065ec5e8853096b5b91aefa00768
6
+ metadata.gz: 34547c5966e7f452c3b1609a6daf0047a43e355b19df32bf4467b1bdc2f52637aec61aaf5cbedc58c1e62a0fd145f506f9c8ffe48bffa4c6b27cc2488e4d8263
7
+ data.tar.gz: eabdd62d97066e38640d7bbcb2753a0aa7ce1486c2b14b7ccfac7d8d13158c9f0234cd743d115fc87d08b4ed449f91dfa3b7750eb5db2ae87fe4a1db3d4cdb64
data/.bundler-version CHANGED
@@ -1 +1 @@
1
- 2.5.6
1
+ 2.6.3
@@ -0,0 +1,15 @@
1
+ version: 2
2
+
3
+ updates:
4
+ - package-ecosystem: "bundler"
5
+ directory: "/"
6
+ schedule:
7
+ interval: "weekly"
8
+ day: "monday"
9
+ time: "08:00"
10
+ timezone: "UTC"
11
+ commit-message:
12
+ prefix: "[dependabot]"
13
+ labels:
14
+ - "automerge"
15
+ - "dependencies"
@@ -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: [labeled, unlabeled, edited, ready_for_review, review_requested, auto_merge_enabled]
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.2
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: ""
@@ -11,7 +11,7 @@ jobs:
11
11
  runs-on: ubuntu-latest
12
12
  strategy:
13
13
  matrix:
14
- ruby-version: [3.1, 3.2, 3.3]
14
+ ruby-version: [3.3, 3.4]
15
15
 
16
16
  steps:
17
17
  - uses: actions/checkout@v3
data/Gemfile.lock CHANGED
@@ -1,106 +1,105 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- graphql-pagination (2.2.0)
5
- graphql (~> 2.0)
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 (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)
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 (7.1.3.2)
16
+ activesupport (8.0.1)
17
17
  base64
18
+ benchmark (>= 0.3)
18
19
  bigdecimal
19
- concurrent-ruby (~> 1.0, >= 1.0.2)
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
- mutex_m
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
- bigdecimal (3.1.6)
31
+ benchmark (0.4.0)
32
+ bigdecimal (3.1.9)
29
33
  coderay (1.1.3)
30
- concurrent-ruby (1.2.3)
31
- connection_pool (2.4.1)
34
+ concurrent-ruby (1.3.5)
35
+ connection_pool (2.5.0)
32
36
  diff-lcs (1.5.1)
33
- drb (2.2.0)
34
- ruby2_keywords
35
- graphql (2.2.11)
37
+ drb (2.2.1)
38
+ fiber-storage (1.0.0)
39
+ graphql (2.4.9)
36
40
  base64
37
- i18n (1.14.1)
41
+ fiber-storage
42
+ logger
43
+ i18n (1.14.7)
38
44
  concurrent-ruby (~> 1.0)
39
- json (2.7.1)
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.3)
45
- method_source (1.0.0)
46
- minitest (5.22.2)
47
- mutex_m (0.2.0)
48
- parallel (1.24.0)
49
- parser (3.3.0.5)
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
- prism (0.24.0)
53
- pry (0.14.2)
58
+ pry (0.15.2)
54
59
  coderay (~> 1.1)
55
60
  method_source (~> 1.0)
56
- racc (1.7.3)
61
+ racc (1.8.1)
57
62
  rainbow (3.1.1)
58
- rake (13.1.0)
59
- regexp_parser (2.9.0)
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.0)
69
+ rspec-core (3.13.2)
66
70
  rspec-support (~> 3.13.0)
67
- rspec-expectations (3.13.0)
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.0)
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.1)
74
- rubocop (1.61.0)
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 (>= 1.8, < 3.0)
81
- rexml (>= 3.2.5, < 4.0)
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, < 3.0)
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)
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 (2.26.1)
95
- rubocop (~> 1.40)
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
- ruby2_keywords (0.0.5)
100
- timeout (0.4.1)
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 (2.5.0)
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.5.6
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
@@ -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.1.0')
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', '~> 2.0'
29
+ spec.add_dependency 'graphql', '>= 2.4.7'
30
30
  end
@@ -1,3 +1,3 @@
1
1
  module GraphqlPagination
2
- VERSION = '2.2.0'.freeze
2
+ VERSION = '2.4.0'.freeze
3
3
  end
@@ -1,6 +1,6 @@
1
1
  require 'graphql_pagination/version'
2
2
  require 'graphql'
3
- require 'graphql/schema/object'
3
+ require 'graphql/schema'
4
4
 
5
5
  module GraphqlPagination
6
6
  end
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.2.0
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: 2024-02-29 00:00:00.000000000 Z
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: '2.0'
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: '2.0'
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.1.0
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.5.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: ""