kaminari-core 1.3.2 → 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/lib/kaminari/core/version.rb +1 -1
- data/lib/kaminari/helpers/helper_methods.rb +3 -2
- data/lib/kaminari/helpers/tags.rb +1 -0
- metadata +87 -92
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0ec3fb8bf1c167b2db6bdcef98ebf6b96c6132525977c15eac23154c05fe486b
|
|
4
|
+
data.tar.gz: 16a19d46d7955f46fd66bbafa639cb894d4ffbae9daa8a8dd447d62b9f82e45a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 17eab9de4ace52058860a29bbbb7449d72887fad65409a8bb383fbf4e597eaeef1813182fc9f8f6b2c2956ef8d1b148c580bcf7248c0da8a7d4fa49c18d68b3f
|
|
7
|
+
data.tar.gz: d7de884270d9a05b91d30c66f039a9ff28f0b88c71e6d7da5b4e5e64522dcd6768be1c8ea7042750c01e7a6ed2ef93447bd7bc643fc377df2fe3935cf33f3d81
|
|
@@ -109,6 +109,7 @@ module Kaminari
|
|
|
109
109
|
# * <tt>:right</tt> - The "right outer window" size (0 by default).
|
|
110
110
|
# * <tt>:params</tt> - url_for parameters for the links (:controller, :action, etc.)
|
|
111
111
|
# * <tt>:param_name</tt> - parameter name for page number in the links (:page by default)
|
|
112
|
+
# * <tt>:format</tt> - format for the links (e.g. <tt>:turbo_stream</tt>), a shortcut for <tt>params: {format: ...}</tt>
|
|
112
113
|
# * <tt>:remote</tt> - Ajax? (false by default)
|
|
113
114
|
# * <tt>:data</tt> - data-* attributes for the links (e.g. <tt>{turbo_frame: 'users'}</tt>)
|
|
114
115
|
# * <tt>:paginator_class</tt> - Specify a custom Paginator (Kaminari::Helpers::Paginator by default)
|
|
@@ -143,7 +144,7 @@ module Kaminari
|
|
|
143
144
|
def link_to_previous_page(scope, name, **options)
|
|
144
145
|
prev_page = path_to_prev_page(scope, options)
|
|
145
146
|
|
|
146
|
-
options.except! :params, :param_name
|
|
147
|
+
options.except! :params, :param_name, :format
|
|
147
148
|
options[:rel] ||= 'prev'
|
|
148
149
|
|
|
149
150
|
if prev_page
|
|
@@ -174,7 +175,7 @@ module Kaminari
|
|
|
174
175
|
def link_to_next_page(scope, name, **options)
|
|
175
176
|
next_page = path_to_next_page(scope, options)
|
|
176
177
|
|
|
177
|
-
options.except! :params, :param_name
|
|
178
|
+
options.except! :params, :param_name, :format
|
|
178
179
|
options[:rel] ||= 'next'
|
|
179
180
|
|
|
180
181
|
if next_page
|
metadata
CHANGED
|
@@ -1,118 +1,113 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kaminari-core
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
|
|
7
|
+
- Akira Matsuda
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
10
|
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
- !ruby/object:Gem::Version
|
|
43
|
-
version: "10.0"
|
|
44
|
-
description: kaminari-core includes pagination logic independent from ORMs and view libraries
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: bundler
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - ">="
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: '1.13'
|
|
19
|
+
type: :development
|
|
20
|
+
prerelease: false
|
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
22
|
+
requirements:
|
|
23
|
+
- - ">="
|
|
24
|
+
- !ruby/object:Gem::Version
|
|
25
|
+
version: '1.13'
|
|
26
|
+
- !ruby/object:Gem::Dependency
|
|
27
|
+
name: rake
|
|
28
|
+
requirement: !ruby/object:Gem::Requirement
|
|
29
|
+
requirements:
|
|
30
|
+
- - ">="
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '10.0'
|
|
33
|
+
type: :development
|
|
34
|
+
prerelease: false
|
|
35
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
36
|
+
requirements:
|
|
37
|
+
- - ">="
|
|
38
|
+
- !ruby/object:Gem::Version
|
|
39
|
+
version: '10.0'
|
|
40
|
+
description: kaminari-core includes pagination logic independent from ORMs and view
|
|
41
|
+
libraries
|
|
45
42
|
email:
|
|
46
|
-
|
|
43
|
+
- ronnie@dio.jp
|
|
47
44
|
executables: []
|
|
48
45
|
extensions: []
|
|
49
46
|
extra_rdoc_files: []
|
|
50
47
|
files:
|
|
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
|
-
homepage:
|
|
48
|
+
- CHANGELOG.md
|
|
49
|
+
- MIT-LICENSE
|
|
50
|
+
- README.md
|
|
51
|
+
- app/views/kaminari/_first_page.html.erb
|
|
52
|
+
- app/views/kaminari/_first_page.html.haml
|
|
53
|
+
- app/views/kaminari/_first_page.html.slim
|
|
54
|
+
- app/views/kaminari/_gap.html.erb
|
|
55
|
+
- app/views/kaminari/_gap.html.haml
|
|
56
|
+
- app/views/kaminari/_gap.html.slim
|
|
57
|
+
- app/views/kaminari/_last_page.html.erb
|
|
58
|
+
- app/views/kaminari/_last_page.html.haml
|
|
59
|
+
- app/views/kaminari/_last_page.html.slim
|
|
60
|
+
- app/views/kaminari/_next_page.html.erb
|
|
61
|
+
- app/views/kaminari/_next_page.html.haml
|
|
62
|
+
- app/views/kaminari/_next_page.html.slim
|
|
63
|
+
- app/views/kaminari/_page.html.erb
|
|
64
|
+
- app/views/kaminari/_page.html.haml
|
|
65
|
+
- app/views/kaminari/_page.html.slim
|
|
66
|
+
- app/views/kaminari/_paginator.html.erb
|
|
67
|
+
- app/views/kaminari/_paginator.html.haml
|
|
68
|
+
- app/views/kaminari/_paginator.html.slim
|
|
69
|
+
- app/views/kaminari/_prev_page.html.erb
|
|
70
|
+
- app/views/kaminari/_prev_page.html.haml
|
|
71
|
+
- app/views/kaminari/_prev_page.html.slim
|
|
72
|
+
- config/locales/kaminari.yml
|
|
73
|
+
- kaminari-core.gemspec
|
|
74
|
+
- lib/generators/kaminari/config_generator.rb
|
|
75
|
+
- lib/generators/kaminari/templates/kaminari_config.rb
|
|
76
|
+
- lib/generators/kaminari/views_generator.rb
|
|
77
|
+
- lib/kaminari/config.rb
|
|
78
|
+
- lib/kaminari/core.rb
|
|
79
|
+
- lib/kaminari/core/version.rb
|
|
80
|
+
- lib/kaminari/engine.rb
|
|
81
|
+
- lib/kaminari/exceptions.rb
|
|
82
|
+
- lib/kaminari/helpers/helper_methods.rb
|
|
83
|
+
- lib/kaminari/helpers/paginator.rb
|
|
84
|
+
- lib/kaminari/helpers/tags.rb
|
|
85
|
+
- lib/kaminari/models/array_extension.rb
|
|
86
|
+
- lib/kaminari/models/configuration_methods.rb
|
|
87
|
+
- lib/kaminari/models/page_scope_methods.rb
|
|
88
|
+
- lib/kaminari/railtie.rb
|
|
89
|
+
homepage: https://github.com/kaminari/kaminari
|
|
93
90
|
licenses:
|
|
94
|
-
|
|
91
|
+
- MIT
|
|
95
92
|
metadata:
|
|
96
|
-
changelog_uri:
|
|
97
|
-
source_code_uri:
|
|
98
|
-
rubygems_mfa_required:
|
|
93
|
+
changelog_uri: https://github.com/kaminari/kaminari/blob/master/CHANGELOG.md
|
|
94
|
+
source_code_uri: https://github.com/kaminari/kaminari/tree/master/kaminari-core
|
|
95
|
+
rubygems_mfa_required: 'true'
|
|
99
96
|
rdoc_options: []
|
|
100
97
|
require_paths:
|
|
101
|
-
|
|
98
|
+
- lib
|
|
102
99
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
103
100
|
requirements:
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
version: 2.0.0
|
|
101
|
+
- - ">="
|
|
102
|
+
- !ruby/object:Gem::Version
|
|
103
|
+
version: 2.0.0
|
|
108
104
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
109
105
|
requirements:
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
version: "0"
|
|
106
|
+
- - ">="
|
|
107
|
+
- !ruby/object:Gem::Version
|
|
108
|
+
version: '0'
|
|
114
109
|
requirements: []
|
|
115
|
-
rubygems_version: 4.
|
|
110
|
+
rubygems_version: 4.0.20
|
|
116
111
|
specification_version: 4
|
|
117
112
|
summary: Kaminari's core pagination library
|
|
118
113
|
test_files: []
|