grape-pagy 0.5.1 → 0.6.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: ca339ac7f54bf525cd93e7df3da9e4d881ab83825c28e500afcb1774ad6a7991
4
- data.tar.gz: 5bd4e7028e53d7b6ed9770d08298fe21b6e2253edc006906c652f2227b645cf2
3
+ metadata.gz: 37ebea78807a69b217decab0117ac82528ae01db94c909b18025e3c85e6a2c6f
4
+ data.tar.gz: 03547b0d4bd43a7241237c7c8acf7a204d919f55fec94339edca859daab4c2fc
5
5
  SHA512:
6
- metadata.gz: 31f94b19fbf94f33622333385075376149a694653da7297864945f6cb9afd11a38b355fc63dd426e0d887b5b8b295f4c4969826aad07b7ced9fdf32048f556db
7
- data.tar.gz: 8126538a4b3592a3eb259ebdbe597add3749ab9297a08494414dc571231ea5ebc2370b4fc9ad4aeac8bbafbfee8566fd447b4f3a6b67baa10b961d3c73d998d6
6
+ metadata.gz: 20e8746a4919de9dc56870934e3f24ca0ff18be31470713c614073c24901d13ab4e4f27bf87706d271397af7c61f78a423bc2d13111b2833e081e8fef42078ab
7
+ data.tar.gz: 2530fe8611153f8a1f7958207e416056ecb4cbafcb9c97442e5d37946f62b9fc7e6036a63ca7e613d21f67fc1a4fd3c9a7c381812ae9b6929d2e7dd904525485
@@ -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.0", "3.1", "3.2"]
15
15
  steps:
16
16
  - uses: actions/checkout@v3
17
17
  - uses: ruby/setup-ruby@v1
data/Gemfile CHANGED
@@ -1,2 +1,8 @@
1
1
  source 'https://rubygems.org'
2
2
  gemspec
3
+
4
+ gem 'bundler'
5
+ gem 'rack-test'
6
+ gem 'rake'
7
+ gem 'rspec'
8
+ gem 'rubocop-bsm'
data/Gemfile.lock CHANGED
@@ -1,37 +1,37 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- grape-pagy (0.5.1)
4
+ grape-pagy (0.6.0)
5
5
  grape (>= 1.5)
6
- pagy (>= 5.4)
6
+ pagy (>= 6.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activesupport (7.0.3.1)
11
+ activesupport (7.0.4.2)
12
12
  concurrent-ruby (~> 1.0, >= 1.0.2)
13
13
  i18n (>= 1.6, < 2)
14
14
  minitest (>= 5.1)
15
15
  tzinfo (~> 2.0)
16
16
  ast (2.4.2)
17
17
  builder (3.2.4)
18
- concurrent-ruby (1.1.10)
18
+ concurrent-ruby (1.2.0)
19
19
  diff-lcs (1.5.0)
20
- dry-container (0.10.0)
20
+ dry-core (1.0.0)
21
21
  concurrent-ruby (~> 1.0)
22
- dry-core (0.8.0)
22
+ zeitwerk (~> 2.6)
23
+ dry-inflector (1.0.0)
24
+ dry-logic (1.5.0)
23
25
  concurrent-ruby (~> 1.0)
24
- dry-inflector (0.3.0)
25
- dry-logic (1.2.0)
26
+ dry-core (~> 1.0, < 2)
27
+ zeitwerk (~> 2.6)
28
+ dry-types (1.7.0)
26
29
  concurrent-ruby (~> 1.0)
27
- dry-core (~> 0.5, >= 0.5)
28
- dry-types (1.5.1)
29
- concurrent-ruby (~> 1.0)
30
- dry-container (~> 0.3)
31
- dry-core (~> 0.5, >= 0.5)
32
- dry-inflector (~> 0.1, >= 0.1.2)
33
- dry-logic (~> 1.0, >= 1.0.2)
34
- grape (1.6.2)
30
+ dry-core (~> 1.0, < 2)
31
+ dry-inflector (~> 1.0, < 2)
32
+ dry-logic (>= 1.4, < 2)
33
+ zeitwerk (~> 2.6)
34
+ grape (1.7.0)
35
35
  activesupport
36
36
  builder
37
37
  dry-types (>= 1.1)
@@ -40,68 +40,71 @@ GEM
40
40
  rack-accept
41
41
  i18n (1.12.0)
42
42
  concurrent-ruby (~> 1.0)
43
- json (2.6.2)
44
- minitest (5.16.2)
45
- mustermann (2.0.1)
43
+ json (2.6.3)
44
+ minitest (5.17.0)
45
+ mustermann (3.0.0)
46
46
  ruby2_keywords (~> 0.0.1)
47
47
  mustermann-grape (1.0.2)
48
48
  mustermann (>= 1.0.0)
49
- pagy (5.10.1)
50
- activesupport
49
+ pagy (6.0.1)
51
50
  parallel (1.22.1)
52
- parser (3.1.2.0)
51
+ parser (3.2.0.0)
53
52
  ast (~> 2.4.1)
54
- rack (2.2.4)
53
+ rack (3.0.4.1)
55
54
  rack-accept (0.4.5)
56
55
  rack (>= 0.4)
57
56
  rack-test (2.0.2)
58
57
  rack (>= 1.3)
59
58
  rainbow (3.1.1)
60
59
  rake (13.0.6)
61
- regexp_parser (2.5.0)
60
+ regexp_parser (2.6.2)
62
61
  rexml (3.2.5)
63
- rspec (3.11.0)
64
- rspec-core (~> 3.11.0)
65
- rspec-expectations (~> 3.11.0)
66
- rspec-mocks (~> 3.11.0)
67
- rspec-core (3.11.0)
68
- rspec-support (~> 3.11.0)
69
- rspec-expectations (3.11.0)
62
+ rspec (3.12.0)
63
+ rspec-core (~> 3.12.0)
64
+ rspec-expectations (~> 3.12.0)
65
+ rspec-mocks (~> 3.12.0)
66
+ rspec-core (3.12.0)
67
+ rspec-support (~> 3.12.0)
68
+ rspec-expectations (3.12.2)
70
69
  diff-lcs (>= 1.2.0, < 2.0)
71
- rspec-support (~> 3.11.0)
72
- rspec-mocks (3.11.1)
70
+ rspec-support (~> 3.12.0)
71
+ rspec-mocks (3.12.3)
73
72
  diff-lcs (>= 1.2.0, < 2.0)
74
- rspec-support (~> 3.11.0)
75
- rspec-support (3.11.0)
76
- rubocop (1.31.2)
73
+ rspec-support (~> 3.12.0)
74
+ rspec-support (3.12.0)
75
+ rubocop (1.44.1)
77
76
  json (~> 2.3)
78
77
  parallel (~> 1.10)
79
- parser (>= 3.1.0.0)
78
+ parser (>= 3.2.0.0)
80
79
  rainbow (>= 2.2.2, < 4.0)
81
80
  regexp_parser (>= 1.8, < 3.0)
82
81
  rexml (>= 3.2.5, < 4.0)
83
- rubocop-ast (>= 1.18.0, < 2.0)
82
+ rubocop-ast (>= 1.24.1, < 2.0)
84
83
  ruby-progressbar (~> 1.7)
85
- unicode-display_width (>= 1.4.0, < 3.0)
86
- rubocop-ast (1.19.1)
84
+ unicode-display_width (>= 2.4.0, < 3.0)
85
+ rubocop-ast (1.24.1)
87
86
  parser (>= 3.1.1.0)
88
- rubocop-bsm (0.6.0)
87
+ rubocop-bsm (0.6.1)
89
88
  rubocop (~> 1.0)
90
89
  rubocop-performance
91
90
  rubocop-rake
92
91
  rubocop-rspec
93
- rubocop-performance (1.14.3)
92
+ rubocop-capybara (2.17.0)
93
+ rubocop (~> 1.41)
94
+ rubocop-performance (1.15.2)
94
95
  rubocop (>= 1.7.0, < 2.0)
95
96
  rubocop-ast (>= 0.4.0)
96
97
  rubocop-rake (0.6.0)
97
98
  rubocop (~> 1.0)
98
- rubocop-rspec (2.12.1)
99
- rubocop (~> 1.31)
99
+ rubocop-rspec (2.18.1)
100
+ rubocop (~> 1.33)
101
+ rubocop-capybara (~> 2.17)
100
102
  ruby-progressbar (1.11.0)
101
103
  ruby2_keywords (0.0.5)
102
104
  tzinfo (2.0.5)
103
105
  concurrent-ruby (~> 1.0)
104
- unicode-display_width (2.2.0)
106
+ unicode-display_width (2.4.2)
107
+ zeitwerk (2.6.6)
105
108
 
106
109
  PLATFORMS
107
110
  ruby
@@ -115,4 +118,4 @@ DEPENDENCIES
115
118
  rubocop-bsm
116
119
 
117
120
  BUNDLED WITH
118
- 2.3.16
121
+ 2.4.1
data/grape-pagy.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'grape-pagy'
3
- spec.version = '0.5.1'
3
+ spec.version = '0.6.0'
4
4
  spec.authors = ['Black Square Media']
5
5
  spec.email = ['info@blacksquaremedia.com']
6
6
  spec.description = 'Pagy paginator for grape API'
@@ -13,12 +13,7 @@ Gem::Specification.new do |spec|
13
13
  spec.required_ruby_version = '>= 3.0'
14
14
 
15
15
  spec.add_runtime_dependency 'grape', '>= 1.5'
16
- spec.add_runtime_dependency 'pagy', '>= 5.4'
16
+ spec.add_runtime_dependency 'pagy', '>= 6.0'
17
17
 
18
- spec.add_development_dependency 'bundler'
19
- spec.add_development_dependency 'rack-test'
20
- spec.add_development_dependency 'rake'
21
- spec.add_development_dependency 'rspec'
22
- spec.add_development_dependency 'rubocop-bsm'
23
18
  spec.metadata['rubygems_mfa_required'] = 'true'
24
19
  end
data/lib/grape/pagy.rb CHANGED
@@ -31,7 +31,7 @@ module Grape
31
31
  module Helpers
32
32
  extend Grape::API::Helpers
33
33
 
34
- params :pagy do |opts|
34
+ params :pagy do |**opts|
35
35
  items = opts.delete(:items) || ::Pagy::DEFAULT[:items]
36
36
  page = opts.delete(:page) || ::Pagy::DEFAULT[:page]
37
37
  page_param = opts[:page_param] || ::Pagy::DEFAULT[:page_param]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grape-pagy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Black Square Media
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-21 00:00:00.000000000 Z
11
+ date: 2023-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grape
@@ -30,84 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '5.4'
33
+ version: '6.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '5.4'
41
- - !ruby/object:Gem::Dependency
42
- name: bundler
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: rack-test
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: rake
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: rspec
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: rubocop-bsm
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '0'
40
+ version: '6.0'
111
41
  description: Pagy paginator for grape API
112
42
  email:
113
43
  - info@blacksquaremedia.com
@@ -147,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
77
  - !ruby/object:Gem::Version
148
78
  version: '0'
149
79
  requirements: []
150
- rubygems_version: 3.3.3
80
+ rubygems_version: 3.4.1
151
81
  signing_key:
152
82
  specification_version: 4
153
83
  summary: ''