graphql-pagination 2.1.2 → 2.2.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 69754180eecb5a5b78b250ab32cc5a0bf4ff681729297db84c642b5eb23ffe8d
4
- data.tar.gz: 591b7e9652413a5a7dd713bc9d81425090af1bb7c6cf99ab09d71d141872efd6
3
+ metadata.gz: 6e36fc3c5d6686a8d797befac3b3450b3a5254d28275403f72f6db19f678fceb
4
+ data.tar.gz: b1c9040a6f046723a196268aa554cb3fb7b5f5605cd099a72b90fd29df69d9ed
5
5
  SHA512:
6
- metadata.gz: a98675b3f85b04ece08eb07f1109f8b145190efd5cd378f5d3903c2df2f878c4d0c729cac392aa7f25e7645b9673561c138cc219190f69eb4b24c8f59cdd688c
7
- data.tar.gz: c6d2e9587b5a718587c3b6cbb07009f3e4f5b81b485a0be66ffb39b5111d80a87cc9bf93aeab8ed82f9e01c62f49d0cd1280903e3791f25a55bb67e3a4701bd7
6
+ metadata.gz: 54827b29fda5a5f73fc7414ce1abcd7c0bdb12bf9faf6375222c8c7cbd21389a25a9e657141e332f5cad8a9588fc39183979fc9a81f6fb625f160d6a3c16084d
7
+ data.tar.gz: 55375dbaf70a2d053b347ab73579ef1dabddfdbd588b5b6dbf26e308521626ee9c04cf696112019443127db5dda1460380d0065ec5e8853096b5b91aefa00768
data/.bundler-version CHANGED
@@ -1 +1 @@
1
- 2.4.19
1
+ 2.5.6
@@ -1,19 +1,15 @@
1
- version: 1
1
+ version: 2
2
2
 
3
- update_configs:
4
- - package_manager: "ruby:bundler"
3
+ updates:
4
+ - package-ecosystem: "bundler"
5
5
  directory: "/"
6
- update_schedule: "daily"
7
- commit_message:
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(toJson(github), 'HOTFIX-AUTO-APPROVE')
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.15.6
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: ""
@@ -15,7 +15,7 @@ jobs:
15
15
  runs-on: ubuntu-latest
16
16
  steps:
17
17
  - name: automerge
18
- uses: pascalgn/automerge-action@v0.15.6
18
+ uses: pascalgn/automerge-action@v0.16.2
19
19
  env:
20
20
  GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
21
21
  MERGE_METHOD: squash
@@ -7,11 +7,11 @@ on:
7
7
  branches: [ main ]
8
8
 
9
9
  jobs:
10
- test:
10
+ ci_tests_ruby:
11
11
  runs-on: ubuntu-latest
12
12
  strategy:
13
13
  matrix:
14
- ruby-version: [3.1, 3.2]
14
+ ruby-version: [3.1, 3.2, 3.3]
15
15
 
16
16
  steps:
17
17
  - uses: actions/checkout@v3
data/Gemfile.lock CHANGED
@@ -1,91 +1,106 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- graphql-pagination (2.1.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.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)
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.1.1)
27
+ base64 (0.2.0)
28
+ bigdecimal (3.1.6)
22
29
  coderay (1.1.3)
23
- concurrent-ruby (1.2.2)
24
- diff-lcs (1.5.0)
25
- graphql (2.1.0)
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.6.3)
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.20.0)
36
- parallel (1.23.0)
37
- parser (3.2.2.3)
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.1)
56
+ racc (1.7.3)
44
57
  rainbow (3.1.1)
45
- rake (13.0.6)
46
- regexp_parser (2.8.1)
58
+ rake (13.1.0)
59
+ regexp_parser (2.9.0)
47
60
  rexml (3.2.6)
48
- rspec (3.12.0)
49
- rspec-core (~> 3.12.0)
50
- rspec-expectations (~> 3.12.0)
51
- rspec-mocks (~> 3.12.0)
52
- rspec-core (3.12.2)
53
- rspec-support (~> 3.12.0)
54
- rspec-expectations (3.12.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.12.0)
57
- rspec-mocks (3.12.6)
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.12.0)
60
- rspec-support (3.12.1)
61
- rubocop (1.56.3)
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.2.2.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.28.1, < 2.0)
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.29.0)
74
- parser (>= 3.2.1.0)
75
- rubocop-capybara (2.18.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)
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.24.0)
82
- rubocop (~> 1.33)
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.4.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.4.19
126
+ 2.5.6
@@ -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"
@@ -14,6 +14,7 @@ module GraphqlPagination
14
14
 
15
15
  Class.new(collection_base) do
16
16
  graphql_name type_name
17
+ description "#{graphql_name} type"
17
18
  field :collection, [source_type], null: false, description: "A collection of paginated #{graphql_name}"
18
19
  field :metadata, metadata_type, null: false, description: "Pagination Metadata for navigating the Pagination"
19
20
 
@@ -1,3 +1,3 @@
1
1
  module GraphqlPagination
2
- VERSION = '2.1.2'.freeze
2
+ VERSION = '2.2.0'.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: 2.1.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: 2023-09-15 00:00:00.000000000 Z
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: '3.0'
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.4.19
83
+ rubygems_version: 3.5.3
84
84
  signing_key:
85
85
  specification_version: 4
86
86
  summary: Page-based kaminari pagination for graphql.