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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4eeb3afe7862ff610adb25ab4fb1355feffec7bd
4
- data.tar.gz: f0b53ea53ead625c029a08f1ccba49adda01223e
3
+ metadata.gz: 411d49d8ce83d73051514c6ef479b92ce907eea9
4
+ data.tar.gz: fa0c4408c8e22ccac81ced012536294624bb5b82
5
5
  SHA512:
6
- metadata.gz: 311a11ed75c08fdd9927bdd2e53fdca74f7d0afbdc3e6b3512f56c90641e3320242e7f6bd051a078bf0fced678dfccc2209e4cacc27dd2948991aced1b00a3e3
7
- data.tar.gz: 5c25e65b8cc082b3b85cdf53a6a7f9514e0809ff8b83a7ba63f696a7d0780859889fd37ecde0cafcaad311cc2aa2244ac94e32315c3d2509501e92a9be515113
6
+ metadata.gz: 85c3fc1e602c9eb2d23ea4a837cf38055adbb01943862b3c73323eeddc98c417cb6561b5f1c05b916b11af271ed0d5f00270ab052d5af120f41542eee753e735
7
+ data.tar.gz: dee9d87b0e03af6529afd73d586169382deb47d553dfea2702300895169366fbc1f881b5fcfe4205f35a8a4df0bb92657b87e44d666e5580981969e8c111e42b
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module Kaminari
3
3
  module Core
4
- VERSION = '1.0.0.rc1'
4
+ VERSION = '1.0.0'
5
5
  end
6
6
  end
@@ -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 + num.to_i)
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.rc1
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: 2016-12-14 00:00:00.000000000 Z
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: 1.3.1
106
+ version: '0'
107
107
  requirements: []
108
108
  rubyforge_project:
109
109
  rubygems_version: 2.6.8