kaminari-core 1.0.0.rc1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kaminari/core/version.rb +1 -1
- data/lib/kaminari/models/page_scope_methods.rb +3 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 411d49d8ce83d73051514c6ef479b92ce907eea9
|
4
|
+
data.tar.gz: fa0c4408c8e22ccac81ced012536294624bb5b82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85c3fc1e602c9eb2d23ea4a837cf38055adbb01943862b3c73323eeddc98c417cb6561b5f1c05b916b11af271ed0d5f00270ab052d5af120f41542eee753e735
|
7
|
+
data.tar.gz: dee9d87b0e03af6529afd73d586169382deb47d553dfea2702300895169366fbc1f881b5fcfe4205f35a8a4df0bb92657b87e44d666e5580981969e8c111e42b
|
@@ -25,8 +25,10 @@ module Kaminari
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def padding(num)
|
28
|
+
num = num.to_i
|
29
|
+
raise ArgumentError, "padding must not be negative" if num < 0
|
28
30
|
@_padding = num
|
29
|
-
offset(offset_value +
|
31
|
+
offset(offset_value + @_padding)
|
30
32
|
end
|
31
33
|
|
32
34
|
# Total number of pages
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kaminari-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Akira Matsuda
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -101,9 +101,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
101
101
|
version: '0'
|
102
102
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
103
103
|
requirements:
|
104
|
-
- - "
|
104
|
+
- - ">="
|
105
105
|
- !ruby/object:Gem::Version
|
106
|
-
version:
|
106
|
+
version: '0'
|
107
107
|
requirements: []
|
108
108
|
rubyforge_project:
|
109
109
|
rubygems_version: 2.6.8
|