kaminari-cells 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGES.md +5 -0
- data/README.md +2 -2
- data/kaminari-cells.gemspec +1 -1
- data/lib/kaminari/cells/version.rb +1 -1
- data/lib/kaminari-cells.rb +2 -3
- data/test/fake_app/rails_app.rb +1 -1
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6e1de52baf3f4136f8de0bf664b79d14206a225c0f87ccc6fe4785139a6bf229
|
4
|
+
data.tar.gz: 5b031405a187e2bcc2b938f2e29df82ceb3c63d0a7e922abcfec730c5cf56173
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0043854ab708f0d73523a3741629f5dfbda0be09f19a5f7f6ab440aa37967a3be991374b87a40f10d4843b176eeeb23a4e2dbc640b6954a85448e096199f72d
|
7
|
+
data.tar.gz: 0732246e5263e1ec74edf38246cd8668e0168884f257a1ed9e7923178728e58e08e8f4f8de4bbe4a50309a6c08fbca2ac74774a4ea6d5b9ca95f9586d3c3ebab
|
data/CHANGES.md
CHANGED
data/README.md
CHANGED
@@ -2,13 +2,13 @@
|
|
2
2
|
|
3
3
|
_Use Kaminari in Cells._
|
4
4
|
|
5
|
+
|
5
6
|
## Installation
|
6
7
|
|
7
8
|
Add this line to your application's Gemfile:
|
8
9
|
|
9
10
|
gem 'kaminari-cells'
|
10
11
|
|
11
|
-
For Kaminari `1.0.*`, use kaminari-cells `1.0.0` or higher. For Kaminari versions lower than `1.0.0`, use kaminari-cells `0.1.*`.
|
12
12
|
|
13
13
|
## Usage
|
14
14
|
|
@@ -19,4 +19,4 @@ To use the wonderful [Kaminari](https://github.com/amatsuda/kaminari) gem in you
|
|
19
19
|
include Kaminari::Cells
|
20
20
|
```
|
21
21
|
|
22
|
-
You can now use `#paginate` in your cell and it will work.
|
22
|
+
You can now use `#paginate` in your cell and it will work.
|
data/kaminari-cells.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_dependency "kaminari", "~> 1.
|
21
|
+
spec.add_dependency "kaminari", "~> 1.2.0"
|
22
22
|
spec.add_dependency "cells", ">= 4.0.0", "<= 5.0.0"
|
23
23
|
spec.add_development_dependency "bundler", "~> 1.6"
|
24
24
|
spec.add_development_dependency "cells-erb"
|
data/lib/kaminari-cells.rb
CHANGED
@@ -12,13 +12,12 @@ ActiveSupport.on_load :action_view do
|
|
12
12
|
include ActionView::Helpers::TranslationHelper
|
13
13
|
include Cell::ViewModel::Partial
|
14
14
|
|
15
|
-
def paginate(scope, options
|
15
|
+
def paginate(scope, **options, &block)
|
16
16
|
options = options.reverse_merge(:views_prefix => "../views/")
|
17
17
|
super
|
18
18
|
end
|
19
19
|
end
|
20
20
|
end
|
21
21
|
end
|
22
|
+
require 'kaminari/cells'
|
22
23
|
end
|
23
|
-
|
24
|
-
require 'kaminari/cells'
|
data/test/fake_app/rails_app.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kaminari-cells
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Sutterer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: kaminari
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.2.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
26
|
+
version: 1.2.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: cells
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -184,8 +184,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
184
184
|
- !ruby/object:Gem::Version
|
185
185
|
version: '0'
|
186
186
|
requirements: []
|
187
|
-
|
188
|
-
rubygems_version: 2.6.11
|
187
|
+
rubygems_version: 3.1.2
|
189
188
|
signing_key:
|
190
189
|
specification_version: 4
|
191
190
|
summary: Kaminari pagination in Cells.
|