graphql-pagination 2.1.1 → 2.1.2

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: f96c76a2f88c05bf35c37c40d6ad0099a19f1bfa261961d443db8b7965327a59
4
- data.tar.gz: 1da7d416ffbb3920ca70ea35a5cd6835b27d98068e80496cdc0afc2ffc287b63
3
+ metadata.gz: 69754180eecb5a5b78b250ab32cc5a0bf4ff681729297db84c642b5eb23ffe8d
4
+ data.tar.gz: 591b7e9652413a5a7dd713bc9d81425090af1bb7c6cf99ab09d71d141872efd6
5
5
  SHA512:
6
- metadata.gz: 8dde45c4cf39b233bcbc07bf0860632347afc480bbfd4009afee98ec505c0c6352095ef0501eb233f7d42ba9ae4212d7efc74b7aebae1de405ab990026501795
7
- data.tar.gz: 174ac6aa77bfa23a774c83aaff5d38250a9f57fec2dc673a3f02848ebe8cac06294f2b5bca5744e76552e8209bef48427cf241491585a52665003935d160f88b
6
+ metadata.gz: a98675b3f85b04ece08eb07f1109f8b145190efd5cd378f5d3903c2df2f878c4d0c729cac392aa7f25e7645b9673561c138cc219190f69eb4b24c8f59cdd688c
7
+ data.tar.gz: c6d2e9587b5a718587c3b6cbb07009f3e4f5b81b485a0be66ffb39b5111d80a87cc9bf93aeab8ed82f9e01c62f49d0cd1280903e3791f25a55bb67e3a4701bd7
data/.bundler-version CHANGED
@@ -1 +1 @@
1
- 2.4.5
1
+ 2.4.19
@@ -1,14 +1,13 @@
1
- # automatically approve PRs submitted by Dependabot or Renofidev
2
- # this will allow Dependabot to automatically merge dependency update PRs where CI passes
3
- # from: https://github.com/hmarr/auto-approve-action
4
- name: Auto approve dependency upgrades PRs
5
- on: pull_request_target
1
+ name: Auto approve dependency upgrades and hot-fix PRs
2
+ on:
3
+ pull_request_target:
4
+ types: [labeled, unlabeled, edited, ready_for_review, review_requested, auto_merge_enabled]
6
5
 
7
6
  jobs:
8
7
  auto-approve:
9
8
  runs-on: ubuntu-latest
10
9
  steps:
11
- - uses: hmarr/auto-approve-action@v2
12
- if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' || github.actor == 'renofidev'
13
- with:
14
- github-token: "${{ secrets.GITHUB_TOKEN }}"
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')
12
+ with:
13
+ github-token: "${{ secrets.GITHUB_TOKEN }}"
@@ -15,7 +15,7 @@ jobs:
15
15
  runs-on: ubuntu-latest
16
16
  steps:
17
17
  - name: automerge-dependencies
18
- uses: pascalgn/automerge-action@v0.15.5
18
+ uses: pascalgn/automerge-action@v0.15.6
19
19
  env:
20
20
  GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
21
21
  MERGE_METHOD: squash
@@ -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.5
18
+ uses: pascalgn/automerge-action@v0.15.6
19
19
  env:
20
20
  GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
21
21
  MERGE_METHOD: squash
@@ -11,7 +11,7 @@ jobs:
11
11
  runs-on: ubuntu-latest
12
12
  strategy:
13
13
  matrix:
14
- ruby-version: ['3.0', 3.1]
14
+ ruby-version: [3.1, 3.2]
15
15
 
16
16
  steps:
17
17
  - uses: actions/checkout@v3
data/Gemfile.lock CHANGED
@@ -1,79 +1,88 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- graphql-pagination (2.1.1)
4
+ graphql-pagination (2.1.2)
5
5
  graphql (~> 2.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activemodel (7.0.4.2)
11
- activesupport (= 7.0.4.2)
12
- activerecord (7.0.4.2)
13
- activemodel (= 7.0.4.2)
14
- activesupport (= 7.0.4.2)
15
- activesupport (7.0.4.2)
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)
16
16
  concurrent-ruby (~> 1.0, >= 1.0.2)
17
17
  i18n (>= 1.6, < 2)
18
18
  minitest (>= 5.1)
19
19
  tzinfo (~> 2.0)
20
20
  ast (2.4.2)
21
+ base64 (0.1.1)
21
22
  coderay (1.1.3)
22
- concurrent-ruby (1.2.0)
23
+ concurrent-ruby (1.2.2)
23
24
  diff-lcs (1.5.0)
24
- graphql (2.0.16)
25
- i18n (1.12.0)
25
+ graphql (2.1.0)
26
+ i18n (1.14.1)
26
27
  concurrent-ruby (~> 1.0)
27
28
  json (2.6.3)
28
29
  kaminari-activerecord (1.2.2)
29
30
  activerecord
30
31
  kaminari-core (= 1.2.2)
31
32
  kaminari-core (1.2.2)
33
+ language_server-protocol (3.17.0.3)
32
34
  method_source (1.0.0)
33
- minitest (5.17.0)
34
- parallel (1.22.1)
35
- parser (3.2.1.0)
35
+ minitest (5.20.0)
36
+ parallel (1.23.0)
37
+ parser (3.2.2.3)
36
38
  ast (~> 2.4.1)
39
+ racc
37
40
  pry (0.14.2)
38
41
  coderay (~> 1.1)
39
42
  method_source (~> 1.0)
43
+ racc (1.7.1)
40
44
  rainbow (3.1.1)
41
45
  rake (13.0.6)
42
- regexp_parser (2.7.0)
43
- rexml (3.2.5)
46
+ regexp_parser (2.8.1)
47
+ rexml (3.2.6)
44
48
  rspec (3.12.0)
45
49
  rspec-core (~> 3.12.0)
46
50
  rspec-expectations (~> 3.12.0)
47
51
  rspec-mocks (~> 3.12.0)
48
- rspec-core (3.12.1)
52
+ rspec-core (3.12.2)
49
53
  rspec-support (~> 3.12.0)
50
- rspec-expectations (3.12.2)
54
+ rspec-expectations (3.12.3)
51
55
  diff-lcs (>= 1.2.0, < 2.0)
52
56
  rspec-support (~> 3.12.0)
53
- rspec-mocks (3.12.3)
57
+ rspec-mocks (3.12.6)
54
58
  diff-lcs (>= 1.2.0, < 2.0)
55
59
  rspec-support (~> 3.12.0)
56
- rspec-support (3.12.0)
57
- rubocop (1.45.1)
60
+ rspec-support (3.12.1)
61
+ rubocop (1.56.3)
62
+ base64 (~> 0.1.1)
58
63
  json (~> 2.3)
64
+ language_server-protocol (>= 3.17.0)
59
65
  parallel (~> 1.10)
60
- parser (>= 3.2.0.0)
66
+ parser (>= 3.2.2.3)
61
67
  rainbow (>= 2.2.2, < 4.0)
62
68
  regexp_parser (>= 1.8, < 3.0)
63
69
  rexml (>= 3.2.5, < 4.0)
64
- rubocop-ast (>= 1.24.1, < 2.0)
70
+ rubocop-ast (>= 1.28.1, < 2.0)
65
71
  ruby-progressbar (~> 1.7)
66
72
  unicode-display_width (>= 2.4.0, < 3.0)
67
- rubocop-ast (1.26.0)
73
+ rubocop-ast (1.29.0)
68
74
  parser (>= 3.2.1.0)
69
- rubocop-capybara (2.17.0)
75
+ rubocop-capybara (2.18.0)
70
76
  rubocop (~> 1.41)
77
+ rubocop-factory_bot (2.23.1)
78
+ rubocop (~> 1.33)
71
79
  rubocop-rake (0.6.0)
72
80
  rubocop (~> 1.0)
73
- rubocop-rspec (2.18.1)
81
+ rubocop-rspec (2.24.0)
74
82
  rubocop (~> 1.33)
75
83
  rubocop-capybara (~> 2.17)
76
- ruby-progressbar (1.11.0)
84
+ rubocop-factory_bot (~> 2.22)
85
+ ruby-progressbar (1.13.0)
77
86
  tzinfo (2.0.6)
78
87
  concurrent-ruby (~> 1.0)
79
88
  unicode-display_width (2.4.2)
@@ -99,4 +108,4 @@ DEPENDENCIES
99
108
  rubocop-rspec
100
109
 
101
110
  BUNDLED WITH
102
- 2.4.1
111
+ 2.4.19
@@ -1,8 +1,8 @@
1
1
  module GraphqlPagination
2
2
  class CollectionMetadataType < GraphQL::Schema::Object
3
- field :current_page, Integer, null: false
4
- field :limit_value, Integer, null: false
5
- field :total_count, Integer, null: false
6
- field :total_pages, Integer, null: false
3
+ field :current_page, Integer, null: false, description: "Current Page of loaded data"
4
+ field :limit_value, Integer, null: false, description: "The number of items per page"
5
+ field :total_count, Integer, null: false, description: "The total number of items to be paginated"
6
+ field :total_pages, Integer, null: false, description: "The total number of pages in the pagination"
7
7
  end
8
8
  end
@@ -14,8 +14,8 @@ module GraphqlPagination
14
14
 
15
15
  Class.new(collection_base) do
16
16
  graphql_name type_name
17
- field :collection, [source_type], null: false
18
- field :metadata, metadata_type, null: false
17
+ field :collection, [source_type], null: false, description: "A collection of paginated #{graphql_name}"
18
+ field :metadata, metadata_type, null: false, description: "Pagination Metadata for navigating the Pagination"
19
19
 
20
20
  def collection
21
21
  object
@@ -1,3 +1,3 @@
1
1
  module GraphqlPagination
2
- VERSION = '2.1.1'.freeze
2
+ VERSION = '2.1.2'.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.1
4
+ version: 2.1.2
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-02-14 00:00:00.000000000 Z
12
+ date: 2023-09-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: graphql
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  - !ruby/object:Gem::Version
81
81
  version: '0'
82
82
  requirements: []
83
- rubygems_version: 3.4.6
83
+ rubygems_version: 3.4.19
84
84
  signing_key:
85
85
  specification_version: 4
86
86
  summary: Page-based kaminari pagination for graphql.