volt-pagination 0.0.2 → 0.0.3

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: c5435b773982080114f5e7ab7fd5ac6daad4e6aa
4
- data.tar.gz: f9ce380a24897e1d1d05683987b2f4a065e4e24f
3
+ metadata.gz: 310b22b4b98f5b94dbad6ebc49f538d918f66ebf
4
+ data.tar.gz: 563ec32d329e77171b036ee814c9e6caad0ced38
5
5
  SHA512:
6
- metadata.gz: 28ddb51b61dd566d10ad2f1e1aff6912c26db70595aefeebbe5979db0753c78c571c9f48b496cbbf3de829d2f85cf77954835a263d6b0fb858d142aad23d616d
7
- data.tar.gz: 0c59e7571e224029e11fa0eac2759ba9a7f463c5f17b1a3ad2f1ee8c4dcb448f8ee44c13c0b50aa2c69706db969bdfe811873660499b8e14c5d3af0c49aa0879
6
+ metadata.gz: 4adc24aa55ad5e945cb2c83981d4b728055f337172eb3c955eaa3fac66b76e29b8dd0635955a206ab6667b7e4e245d86f5a1b58c3b6fe282187bb012406c7625
7
+ data.tar.gz: 21225cfd957e5b6e21cb3c2a259ed8451844c51fde50da02c10b75c7a18bc739c5d8da96cc957106af55a75de0a63ae34d45d27336a8464c42b1133eaea7b311
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
@@ -59,11 +59,11 @@ module Pagination
59
59
  end
60
60
 
61
61
  def per_page
62
- attrs.per_page.or(10)
62
+ attrs.per_page.or(10).to_i
63
63
  end
64
64
 
65
65
  def current_page
66
- (attrs.page || params._page.or(1)).to_i
66
+ (attrs.page || params._page).or(1).to_i
67
67
  end
68
68
 
69
69
  def total_pages
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: volt-pagination
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Stout
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-21 00:00:00.000000000 Z
11
+ date: 2014-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: volt