graphql-pagination 1.1.3 → 2.0.0.rc

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: afd9e4d2bcb920c10f5db2c679977e74af876dc51fe2d44edde7443d8c21a2a8
4
- data.tar.gz: 6485e139197e892711f43a8772c3e4383af9d5a648ec1bd53297a4b662f44857
3
+ metadata.gz: 4481440a6f4abc6e4c8a4698404712b26445567036d889a776fbc8f4ebf0c728
4
+ data.tar.gz: 2161f01f80cab505cbea3a2f5728a7a19c9b1353c0bfc7089fa4f2a8f6649c20
5
5
  SHA512:
6
- metadata.gz: afbd70d8259b21d58cbdb7c9b2c2f9f8d027e3648f77c3f5caa6afa5e4644dfc98ba120f1ece568f5faaf177ddf05398a7495b32a2669ab19d0d472f043340ef
7
- data.tar.gz: 3651b3536bc483d59fd93090bfa9e3d761f69cfe518bdeb08313b6fc59ad188de0f8a12187adf46df4fed7c7aa603b58b4c015b3457f298e5bf50a53bc2da35c
6
+ metadata.gz: 6867a1340bf4ff4429489ee5d9dafcd2eef354b524ad76b9abcf397a67c6e482e6360cb2a1e69effb1abe5ba368cfb1d00ffa05a14808977a4b4f565a65c7423
7
+ data.tar.gz: cc613654cb5178ba60f903d21505100193499319658a28032c19197656e574b7f0ea4f4e81ec56a5b45b5c67f93fb29b4a9f4099cf71019920c684476dc6f0f7
data/.bundler-version CHANGED
@@ -1 +1 @@
1
- 2.2.22
1
+ 2.3.9
@@ -1,18 +1,6 @@
1
- ## Description
1
+ ## Description, motivation and context
2
2
  <!--- Describe your changes in detail -->
3
-
4
- ## Related issue(s)
5
- <!--- GH issue number -->
6
-
7
- ## Motivation and Context
8
3
  <!--- Why is this change required? What problem does it solve? -->
9
- <!--- If it fixes an open issue, please link to the issue here. -->
10
4
 
11
- ## How Has This Been Tested?
12
- <!--- Please describe in detail how you tested your changes. -->
13
-
14
- ## Screenshots (if appropriate):
15
- <!--- Please add any screenshots of the feature. -->
16
-
17
- ## Related PRs
18
- <!--- Please add links to any related PRs (backend, component packages, etc). -->
5
+ ## Related issue(s) or PR(s)
6
+ <!--- GH issue number -->
@@ -2,15 +2,13 @@
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
4
  name: Auto approve dependency upgrades PRs
5
-
6
- on:
7
- pull_request
5
+ on: pull_request_target
8
6
 
9
7
  jobs:
10
8
  auto-approve:
11
9
  runs-on: ubuntu-latest
12
10
  steps:
13
- - uses: hmarr/auto-approve-action@v2.0.0
11
+ - uses: hmarr/auto-approve-action@v2
14
12
  if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' || github.actor == 'renofidev'
15
13
  with:
16
14
  github-token: "${{ secrets.GITHUB_TOKEN }}"
@@ -0,0 +1,28 @@
1
+ name: Ruby CI
2
+
3
+ on:
4
+ push:
5
+ branches: [ main ]
6
+ pull_request:
7
+ branches: [ main ]
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ matrix:
14
+ ruby-version: ['3.0']
15
+
16
+ steps:
17
+ - uses: actions/checkout@v2
18
+ - name: Set up Ruby
19
+ # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
20
+ # change this to (see https://github.com/ruby/setup-ruby#versioning):
21
+ # uses: ruby/setup-ruby@v1
22
+ uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
23
+ with:
24
+ ruby-version: ${{ matrix.ruby-version }}
25
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
26
+
27
+ - name: Run tests
28
+ run: bundle exec rake ci
data/Gemfile.lock CHANGED
@@ -1,84 +1,84 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- graphql-pagination (1.1.3)
5
- graphql (~> 1.11)
4
+ graphql-pagination (2.0.0.rc)
5
+ graphql (~> 2.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
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)
10
+ activemodel (7.0.2.3)
11
+ activesupport (= 7.0.2.3)
12
+ activerecord (7.0.2.3)
13
+ activemodel (= 7.0.2.3)
14
+ activesupport (= 7.0.2.3)
15
+ activesupport (7.0.2.3)
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
- zeitwerk (~> 2.3)
21
20
  ast (2.4.2)
22
21
  coderay (1.1.3)
23
22
  concurrent-ruby (1.1.9)
24
- diff-lcs (1.4.4)
25
- graphql (1.12.13)
26
- i18n (1.8.10)
23
+ diff-lcs (1.5.0)
24
+ graphql (2.0.2)
25
+ i18n (1.10.0)
27
26
  concurrent-ruby (~> 1.0)
28
- kaminari-activerecord (1.2.1)
27
+ kaminari-activerecord (1.2.2)
29
28
  activerecord
30
- kaminari-core (= 1.2.1)
31
- kaminari-core (1.2.1)
29
+ kaminari-core (= 1.2.2)
30
+ kaminari-core (1.2.2)
32
31
  method_source (1.0.0)
33
- minitest (5.14.4)
34
- parallel (1.20.1)
35
- parser (3.0.1.1)
32
+ minitest (5.15.0)
33
+ parallel (1.21.0)
34
+ parser (3.1.1.0)
36
35
  ast (~> 2.4.1)
37
36
  pry (0.14.1)
38
37
  coderay (~> 1.1)
39
38
  method_source (~> 1.0)
40
- rainbow (3.0.0)
41
- rake (13.0.4)
42
- regexp_parser (2.1.1)
39
+ rainbow (3.1.1)
40
+ rake (13.0.6)
41
+ regexp_parser (2.2.1)
43
42
  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)
43
+ rspec (3.11.0)
44
+ rspec-core (~> 3.11.0)
45
+ rspec-expectations (~> 3.11.0)
46
+ rspec-mocks (~> 3.11.0)
47
+ rspec-core (3.11.0)
48
+ rspec-support (~> 3.11.0)
49
+ rspec-expectations (3.11.0)
51
50
  diff-lcs (>= 1.2.0, < 2.0)
52
- rspec-support (~> 3.10.0)
53
- rspec-mocks (3.10.2)
51
+ rspec-support (~> 3.11.0)
52
+ rspec-mocks (3.11.0)
54
53
  diff-lcs (>= 1.2.0, < 2.0)
55
- rspec-support (~> 3.10.0)
56
- rspec-support (3.10.2)
57
- rubocop (1.18.3)
54
+ rspec-support (~> 3.11.0)
55
+ rspec-support (3.11.0)
56
+ rubocop (1.26.0)
58
57
  parallel (~> 1.10)
59
- parser (>= 3.0.0.0)
58
+ parser (>= 3.1.0.0)
60
59
  rainbow (>= 2.2.2, < 4.0)
61
60
  regexp_parser (>= 1.8, < 3.0)
62
61
  rexml
63
- rubocop-ast (>= 1.7.0, < 2.0)
62
+ rubocop-ast (>= 1.16.0, < 2.0)
64
63
  ruby-progressbar (~> 1.7)
65
64
  unicode-display_width (>= 1.4.0, < 3.0)
66
- rubocop-ast (1.7.0)
67
- parser (>= 3.0.1.1)
65
+ rubocop-ast (1.16.0)
66
+ parser (>= 3.1.1.0)
68
67
  rubocop-rake (0.6.0)
69
68
  rubocop (~> 1.0)
70
- rubocop-rspec (2.4.0)
71
- rubocop (~> 1.0)
72
- rubocop-ast (>= 1.1.0)
69
+ rubocop-rspec (2.9.0)
70
+ rubocop (~> 1.19)
73
71
  ruby-progressbar (1.11.0)
74
72
  tzinfo (2.0.4)
75
73
  concurrent-ruby (~> 1.0)
76
- unicode-display_width (2.0.0)
77
- zeitwerk (2.4.2)
74
+ unicode-display_width (2.1.0)
78
75
 
79
76
  PLATFORMS
80
- ruby
77
+ aarch64-linux-musl
78
+ x86_64-darwin-18
79
+ x86_64-darwin-19
81
80
  x86_64-darwin-20
81
+ x86_64-darwin-21
82
82
  x86_64-linux
83
83
 
84
84
  DEPENDENCIES
@@ -93,4 +93,4 @@ DEPENDENCIES
93
93
  rubocop-rspec
94
94
 
95
95
  BUNDLED WITH
96
- 2.2.15
96
+ 2.3.9
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  [![Gem Version](https://badge.fury.io/rb/graphql-pagination.svg)](https://rubygems.org/gems/graphql-pagination)
2
- [![Build Status](https://travis-ci.org/RenoFi/graphql-pagination.svg?branch=master)](https://travis-ci.org/RenoFi/graphql-pagination)
2
+ [![Build Status](https://github.com/RenoFi/graphql-pagination/actions/workflows/ci.yml/badge.svg)](https://github.com/RenoFi/graphql-pagination/actions/workflows/ci.yml?query=branch%3Amain)
3
3
 
4
4
  # graphql-pagination
5
5
 
@@ -7,7 +7,7 @@ Implements page-based pagination returning collection and pagination metadata. I
7
7
 
8
8
  ## Installation
9
9
 
10
- Add `graphql-pagination` to your Gemfile, you can use `kaminari-activerecord` or `kaminari-monogid` to not implement page scope methods. Kaminari is not loaded by the gem, so you need to decide anmd load it on your own.
10
+ Add `graphql-pagination` to your Gemfile, you can use `kaminari-activerecord` or `kaminari-monogid` to not implement page scope methods. Kaminari is not loaded by the gem, so you need to decide and load it on your own.
11
11
 
12
12
  ```ruby
13
13
  gem 'graphql-pagination'
@@ -22,7 +22,7 @@ Add `graphql-pagination` to your Gemfile, you can use `kaminari-activerecord` or
22
22
  argument :limit, Integer, required: false
23
23
  end
24
24
 
25
- def fruit(page: nil, limit: nil)
25
+ def fruits(page: nil, limit: nil)
26
26
  ::Fruit.page(page).per(limit)
27
27
  end
28
28
  ```
data/Rakefile CHANGED
@@ -5,4 +5,5 @@ require 'rubocop/rake_task'
5
5
  RSpec::Core::RakeTask.new(:spec)
6
6
  RuboCop::RakeTask.new
7
7
 
8
- task default: %i[rubocop spec]
8
+ task ci: %i[spec rubocop]
9
+ task default: %i[spec rubocop:auto_correct]
@@ -15,6 +15,7 @@ Gem::Specification.new do |spec|
15
15
 
16
16
  spec.metadata['homepage_uri'] = 'https://github.com/RenoFi/graphql-pagination'
17
17
  spec.metadata['source_code_uri'] = 'https://github.com/RenoFi/graphql-pagination'
18
+ spec.metadata['rubygems_mfa_required'] = 'true'
18
19
 
19
20
  spec.files = Dir.chdir(__dir__) do
20
21
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(bin/|spec/|\.rub)}) }
@@ -23,9 +24,9 @@ Gem::Specification.new do |spec|
23
24
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
25
  spec.require_paths = ['lib']
25
26
 
26
- spec.required_ruby_version = '>= 2.6'
27
+ spec.required_ruby_version = '>= 2.7'
27
28
 
28
- spec.add_dependency 'graphql', '~> 1.11'
29
+ spec.add_dependency 'graphql', '~> 2.0'
29
30
 
30
31
  spec.add_development_dependency 'kaminari-activerecord'
31
32
  spec.add_development_dependency 'kaminari-core'
@@ -1,3 +1,3 @@
1
1
  module GraphqlPagination
2
- VERSION = '1.1.3'.freeze
2
+ VERSION = '2.0.0.rc'.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.3
4
+ version: 2.0.0.rc
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: 2021-07-08 00:00:00.000000000 Z
12
+ date: 2022-03-14 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.11'
20
+ version: '2.0'
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.11'
27
+ version: '2.0'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: kaminari-activerecord
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -154,9 +154,9 @@ files:
154
154
  - ".github/PULL_REQUEST_TEMPLATE.md"
155
155
  - ".github/workflows/auto-approve.yml"
156
156
  - ".github/workflows/auto-merge.yml"
157
+ - ".github/workflows/ci.yml"
157
158
  - ".gitignore"
158
159
  - ".rspec"
159
- - ".travis.yml"
160
160
  - Gemfile
161
161
  - Gemfile.lock
162
162
  - LICENSE
@@ -174,6 +174,7 @@ licenses:
174
174
  metadata:
175
175
  homepage_uri: https://github.com/RenoFi/graphql-pagination
176
176
  source_code_uri: https://github.com/RenoFi/graphql-pagination
177
+ rubygems_mfa_required: 'true'
177
178
  post_install_message:
178
179
  rdoc_options: []
179
180
  require_paths:
@@ -182,14 +183,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
182
183
  requirements:
183
184
  - - ">="
184
185
  - !ruby/object:Gem::Version
185
- version: '2.6'
186
+ version: '2.7'
186
187
  required_rubygems_version: !ruby/object:Gem::Requirement
187
188
  requirements:
188
- - - ">="
189
+ - - ">"
189
190
  - !ruby/object:Gem::Version
190
- version: '0'
191
+ version: 1.3.1
191
192
  requirements: []
192
- rubygems_version: 3.2.15
193
+ rubygems_version: 3.2.32
193
194
  signing_key:
194
195
  specification_version: 4
195
196
  summary: Page-based kaminari pagination for graphql.
data/.travis.yml DELETED
@@ -1,11 +0,0 @@
1
- ---
2
- sudo: false
3
- language: ruby
4
- cache: bundler
5
- rvm:
6
- - 2.7
7
- - 3.0
8
- before_install: gem install bundler
9
- script:
10
- - bundle exec rake spec
11
- - bundle exec rake rubocop