will_paginate-foundation 6.2.0 → 6.2.1

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: 09c3635487775bedaf00290589eee13eb3c131b8
4
- data.tar.gz: d0f0167486e23af19e97430f550d23bd16c2d487
3
+ metadata.gz: e3f6b890c0c82faaf9c9a94f02cc66b09bde7a46
4
+ data.tar.gz: ab84f7043db9940c6f32c56fd6010249e3145202
5
5
  SHA512:
6
- metadata.gz: a78b7181644777f1a3f5a516bc3359e074ee11ad1f8ae71282959f85e542d77544d4bcddb5e9c911e86fd4e7e8802713ea516c5f4350c958f3cd9c2daa9ed6dd
7
- data.tar.gz: 77611e928882e841abf4d28c4f26a7ecd8d42ad10dd991cb5666f1a9ff787e3a25a76c9979498aa8e40224cfb10bf479335e07cbca84ff9b68b96ea0aede126f
6
+ metadata.gz: f756186ce1444f837e55c9bdf349d303344258a609f739928e8a733df5f25ec1bf01adfaf924aeaf7a4bc3fda028cfdf392eb33e3213593ed9795c812496c3b2
7
+ data.tar.gz: 6f07a9704085bf0031b090a3fa4e50224a542769b0db7754f0117f26febafee8cd3160bfb0832a5874e27c79244e143a1d8b7dedd8f7ee794b5b3b018be73951
@@ -6,12 +6,7 @@ module FoundationPagination
6
6
 
7
7
  def to_html
8
8
  list_items = pagination.map do |item|
9
- case item
10
- when Fixnum
11
- page_number(item)
12
- else
13
- send(item)
14
- end
9
+ item.is_a?(Integer) ? page_number(item) : send(item)
15
10
  end.join(@options[:link_separator])
16
11
 
17
12
  tag("ul", list_items, :class => "pagination #{@options[:class]}")
@@ -1,3 +1,3 @@
1
1
  module FoundationPagination
2
- VERSION = '6.2.0'
2
+ VERSION = '6.2.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: will_paginate-foundation
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.2.0
4
+ version: 6.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Rangel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-05 00:00:00.000000000 Z
11
+ date: 2017-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: will_paginate
@@ -66,7 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
66
66
  version: '0'
67
67
  requirements: []
68
68
  rubyforge_project: will_paginate-foundation
69
- rubygems_version: 2.5.1
69
+ rubygems_version: 2.5.2
70
70
  signing_key:
71
71
  specification_version: 4
72
72
  summary: Integrates the Foundation pagination component with will_paginate