kaminari 1.3.1 → 1.3.3
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 +4 -4
- data/CHANGELOG.md +13 -1
- data/README.md +10 -1
- data/lib/kaminari/version.rb +1 -1
- metadata +146 -163
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fc1ed678bfd9d8b01d5a72b65b28070f570fbfa0009df8c44a48605b547815d1
|
|
4
|
+
data.tar.gz: 83221f1f60bd712a4c39d3f24feaad25e653b0d6683b43014c634b060c1bcf52
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6eda08546f262fbd06d0189f3704c0ac9e7e3c74491de65b079420b4dbab509e32c8d1189c2a141753c32babe1bea356859c28e4b3ab99043f3f2837fd941dd3
|
|
7
|
+
data.tar.gz: 21fb4712cafc59b94bedee024be7c7b961d5c11c32b41c751179ddcb382e3bc1e875c674174d09d85ef637e74fe8d1f662432ee9eb09ef3cda3ce0e4b0639262
|
data/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,21 @@
|
|
|
1
|
+
## 1.3.3
|
|
2
|
+
|
|
3
|
+
### Enhancements:
|
|
4
|
+
|
|
5
|
+
* Added the `format:` option to the pagination helpers as a shortcut for `params: {format: ...}` #1164 [@ihamzatarar] (based on #1152 [@vitor-de-castro])
|
|
6
|
+
|
|
7
|
+
## 1.3.2
|
|
8
|
+
|
|
9
|
+
### Bug Fixes:
|
|
10
|
+
|
|
11
|
+
* Fixed `paginate` raising NoMethodError on Rails 8.2, which removed `LookupContext#find_template` #1161 [@thibaudgg]
|
|
12
|
+
|
|
1
13
|
## 1.3.1
|
|
2
14
|
|
|
3
15
|
### Bug Fixes:
|
|
4
16
|
|
|
5
17
|
* `total_count` keeps `eager_load` in the count query again, which the conditions may need when they refer to the eager loaded tables without `references` (a regression in 1.3.0) #1160 [@r-uehara0219]
|
|
6
|
-
* `total_count` keeps `includes` in the count query when they are joined along with `eager_load` or `joins`, which the conditions may need: [
|
|
18
|
+
* `total_count` keeps `includes` in the count query when they are joined along with `eager_load` or `joins`, which the conditions may need: [1462042](https://github.com/kaminari/kaminari/commit/146204262737340e0c83ba71e3182c6b12f1b9dc)
|
|
7
19
|
|
|
8
20
|
## 1.3.0
|
|
9
21
|
|
data/README.md
CHANGED
|
@@ -276,6 +276,14 @@ This would modify the query parameter name on each links.
|
|
|
276
276
|
|
|
277
277
|
This would modify each link's `url_option`. `:controller` and `:action` might be the keys in common.
|
|
278
278
|
|
|
279
|
+
### Format (`:format`) for the Links
|
|
280
|
+
|
|
281
|
+
```erb
|
|
282
|
+
<%= paginate @users, format: :turbo_stream %>
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
This is a shortcut for `params: {format: :turbo_stream}`, and would add the format to each link's URL (e.g. `/users.turbo_stream?page=2`).
|
|
286
|
+
|
|
279
287
|
### Ajax Links (via rails-ujs, works with Rails < 7.2)
|
|
280
288
|
|
|
281
289
|
```erb
|
|
@@ -310,10 +318,11 @@ This option makes it easier to do things like A/B testing pagination templates/t
|
|
|
310
318
|
|
|
311
319
|
This simply renders a link to the next page. This would be helpful for creating a Twitter-like pagination feature.
|
|
312
320
|
|
|
313
|
-
The helper methods support a `params` option to further specify the link.
|
|
321
|
+
The helper methods support a `params` option to further specify the link. `format` can be given either as a top level option or inside the `params` hash.
|
|
314
322
|
|
|
315
323
|
```erb
|
|
316
324
|
<%= link_to_next_page @items, 'Next Page', params: {controller: 'foo', action: 'bar', format: :turbo_stream} %>
|
|
325
|
+
<%= link_to_next_page @items, 'Next Page', format: :turbo_stream %>
|
|
317
326
|
```
|
|
318
327
|
|
|
319
328
|
### The `page_entries_info` Helper Method
|
data/lib/kaminari/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,189 +1,172 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kaminari
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
- Akira Matsuda
|
|
8
|
+
- Yuki Nishijima
|
|
9
|
+
- Zachary Scott
|
|
10
|
+
- Hiroshi Shibata
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
13
|
date: 1980-01-02 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
requirement: !ruby/object:Gem::Requirement
|
|
130
|
-
requirements:
|
|
131
|
-
-
|
|
132
|
-
- ">="
|
|
133
|
-
- !ruby/object:Gem::Version
|
|
134
|
-
version: "1.0"
|
|
135
|
-
type: :development
|
|
136
|
-
prerelease: false
|
|
137
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
138
|
-
requirements:
|
|
139
|
-
-
|
|
140
|
-
- ">="
|
|
141
|
-
- !ruby/object:Gem::Version
|
|
142
|
-
version: "1.0"
|
|
143
|
-
description: "Kaminari is a Scope & Engine based, clean, powerful, agnostic, customizable and sophisticated paginator for Rails 4+"
|
|
15
|
+
- !ruby/object:Gem::Dependency
|
|
16
|
+
name: activesupport
|
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
|
18
|
+
requirements:
|
|
19
|
+
- - ">="
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: 4.1.0
|
|
22
|
+
type: :runtime
|
|
23
|
+
prerelease: false
|
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
+
requirements:
|
|
26
|
+
- - ">="
|
|
27
|
+
- !ruby/object:Gem::Version
|
|
28
|
+
version: 4.1.0
|
|
29
|
+
- !ruby/object:Gem::Dependency
|
|
30
|
+
name: kaminari-core
|
|
31
|
+
requirement: !ruby/object:Gem::Requirement
|
|
32
|
+
requirements:
|
|
33
|
+
- - '='
|
|
34
|
+
- !ruby/object:Gem::Version
|
|
35
|
+
version: 1.3.3
|
|
36
|
+
type: :runtime
|
|
37
|
+
prerelease: false
|
|
38
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
39
|
+
requirements:
|
|
40
|
+
- - '='
|
|
41
|
+
- !ruby/object:Gem::Version
|
|
42
|
+
version: 1.3.3
|
|
43
|
+
- !ruby/object:Gem::Dependency
|
|
44
|
+
name: kaminari-actionview
|
|
45
|
+
requirement: !ruby/object:Gem::Requirement
|
|
46
|
+
requirements:
|
|
47
|
+
- - '='
|
|
48
|
+
- !ruby/object:Gem::Version
|
|
49
|
+
version: 1.3.3
|
|
50
|
+
type: :runtime
|
|
51
|
+
prerelease: false
|
|
52
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
53
|
+
requirements:
|
|
54
|
+
- - '='
|
|
55
|
+
- !ruby/object:Gem::Version
|
|
56
|
+
version: 1.3.3
|
|
57
|
+
- !ruby/object:Gem::Dependency
|
|
58
|
+
name: kaminari-activerecord
|
|
59
|
+
requirement: !ruby/object:Gem::Requirement
|
|
60
|
+
requirements:
|
|
61
|
+
- - '='
|
|
62
|
+
- !ruby/object:Gem::Version
|
|
63
|
+
version: 1.3.3
|
|
64
|
+
type: :runtime
|
|
65
|
+
prerelease: false
|
|
66
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
67
|
+
requirements:
|
|
68
|
+
- - '='
|
|
69
|
+
- !ruby/object:Gem::Version
|
|
70
|
+
version: 1.3.3
|
|
71
|
+
- !ruby/object:Gem::Dependency
|
|
72
|
+
name: test-unit-rails
|
|
73
|
+
requirement: !ruby/object:Gem::Requirement
|
|
74
|
+
requirements:
|
|
75
|
+
- - ">="
|
|
76
|
+
- !ruby/object:Gem::Version
|
|
77
|
+
version: '0'
|
|
78
|
+
type: :development
|
|
79
|
+
prerelease: false
|
|
80
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
81
|
+
requirements:
|
|
82
|
+
- - ">="
|
|
83
|
+
- !ruby/object:Gem::Version
|
|
84
|
+
version: '0'
|
|
85
|
+
- !ruby/object:Gem::Dependency
|
|
86
|
+
name: bundler
|
|
87
|
+
requirement: !ruby/object:Gem::Requirement
|
|
88
|
+
requirements:
|
|
89
|
+
- - ">="
|
|
90
|
+
- !ruby/object:Gem::Version
|
|
91
|
+
version: 1.0.0
|
|
92
|
+
type: :development
|
|
93
|
+
prerelease: false
|
|
94
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
95
|
+
requirements:
|
|
96
|
+
- - ">="
|
|
97
|
+
- !ruby/object:Gem::Version
|
|
98
|
+
version: 1.0.0
|
|
99
|
+
- !ruby/object:Gem::Dependency
|
|
100
|
+
name: rr
|
|
101
|
+
requirement: !ruby/object:Gem::Requirement
|
|
102
|
+
requirements:
|
|
103
|
+
- - ">="
|
|
104
|
+
- !ruby/object:Gem::Version
|
|
105
|
+
version: '0'
|
|
106
|
+
type: :development
|
|
107
|
+
prerelease: false
|
|
108
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
109
|
+
requirements:
|
|
110
|
+
- - ">="
|
|
111
|
+
- !ruby/object:Gem::Version
|
|
112
|
+
version: '0'
|
|
113
|
+
- !ruby/object:Gem::Dependency
|
|
114
|
+
name: capybara
|
|
115
|
+
requirement: !ruby/object:Gem::Requirement
|
|
116
|
+
requirements:
|
|
117
|
+
- - ">="
|
|
118
|
+
- !ruby/object:Gem::Version
|
|
119
|
+
version: '1.0'
|
|
120
|
+
type: :development
|
|
121
|
+
prerelease: false
|
|
122
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
123
|
+
requirements:
|
|
124
|
+
- - ">="
|
|
125
|
+
- !ruby/object:Gem::Version
|
|
126
|
+
version: '1.0'
|
|
127
|
+
description: Kaminari is a Scope & Engine based, clean, powerful, agnostic, customizable
|
|
128
|
+
and sophisticated paginator for Rails 4+
|
|
144
129
|
email:
|
|
145
|
-
|
|
130
|
+
- ronnie@dio.jp
|
|
146
131
|
executables: []
|
|
147
132
|
extensions: []
|
|
148
133
|
extra_rdoc_files: []
|
|
149
134
|
files:
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
homepage:
|
|
135
|
+
- ".document"
|
|
136
|
+
- ".github/workflows/main.yml"
|
|
137
|
+
- ".gitignore"
|
|
138
|
+
- CHANGELOG.md
|
|
139
|
+
- CONTRIBUTING.md
|
|
140
|
+
- Gemfile
|
|
141
|
+
- MIT-LICENSE
|
|
142
|
+
- README.md
|
|
143
|
+
- Rakefile
|
|
144
|
+
- kaminari.gemspec
|
|
145
|
+
- lib/kaminari.rb
|
|
146
|
+
- lib/kaminari/version.rb
|
|
147
|
+
- misc/bug_report_template.rb
|
|
148
|
+
homepage: https://github.com/kaminari/kaminari
|
|
164
149
|
licenses:
|
|
165
|
-
|
|
150
|
+
- MIT
|
|
166
151
|
metadata:
|
|
167
|
-
changelog_uri:
|
|
168
|
-
source_code_uri:
|
|
169
|
-
rubygems_mfa_required:
|
|
152
|
+
changelog_uri: https://github.com/kaminari/kaminari/blob/master/CHANGELOG.md
|
|
153
|
+
source_code_uri: https://github.com/kaminari/kaminari/
|
|
154
|
+
rubygems_mfa_required: 'true'
|
|
170
155
|
rdoc_options: []
|
|
171
156
|
require_paths:
|
|
172
|
-
|
|
157
|
+
- lib
|
|
173
158
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
174
159
|
requirements:
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
version: 2.0.0
|
|
160
|
+
- - ">="
|
|
161
|
+
- !ruby/object:Gem::Version
|
|
162
|
+
version: 2.0.0
|
|
179
163
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
180
164
|
requirements:
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
version: "0"
|
|
165
|
+
- - ">="
|
|
166
|
+
- !ruby/object:Gem::Version
|
|
167
|
+
version: '0'
|
|
185
168
|
requirements: []
|
|
186
|
-
rubygems_version: 4.
|
|
169
|
+
rubygems_version: 4.0.20
|
|
187
170
|
specification_version: 4
|
|
188
171
|
summary: A pagination engine plugin for Rails 4+ and other modern frameworks
|
|
189
172
|
test_files: []
|