will_paginate-foundation 5.3.4 → 6.2.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: 64a3e1e47191908126d9708f076f2eeeb87eb465
4
- data.tar.gz: d84510bbe13cb90a3c0aa2ebb16e646e4aa020ed
3
+ metadata.gz: 09c3635487775bedaf00290589eee13eb3c131b8
4
+ data.tar.gz: d0f0167486e23af19e97430f550d23bd16c2d487
5
5
  SHA512:
6
- metadata.gz: 32dd84a4ce32191297033cd4fa7484a8efaff5759d98c558618eb53922d1403ad37c28835baae8e8098be01175734a9e1d2ae4e65ff8a9567f2c100449125a26
7
- data.tar.gz: 05a16c991f2a81495681af716e10814c4b8c746c54e4e349656cfb93ffc14fede3564fc9c86b37a28c83cea1dbf44b8203b5c8c459d5bb22c6fda0defea9ca82
6
+ metadata.gz: a78b7181644777f1a3f5a516bc3359e074ee11ad1f8ae71282959f85e542d77544d4bcddb5e9c911e86fd4e7e8802713ea516c5f4350c958f3cd9c2daa9ed6dd
7
+ data.tar.gz: 77611e928882e841abf4d28c4f26a7ecd8d42ad10dd991cb5666f1a9ff787e3a25a76c9979498aa8e40224cfb10bf479335e07cbca84ff9b68b96ea0aede126f
@@ -27,7 +27,7 @@ module FoundationPagination
27
27
  link_options = @options[:link_options] || {}
28
28
 
29
29
  if page == current_page
30
- tag :li, link(page, ""), :class => ('current')
30
+ tag :li, tag(:span, page), :class => ('current')
31
31
  else
32
32
  tag :li, link(page, page, link_options.merge(:rel => rel_value(page)))
33
33
  end
@@ -38,22 +38,22 @@ module FoundationPagination
38
38
  if page
39
39
  tag :li, link(text, page, link_options), :class => classname
40
40
  else
41
- tag :li, link(text, ""), :class => "%s unavailable" % classname
41
+ tag :li, tag(:span, text), :class => "%s disabled" % classname
42
42
  end
43
43
  end
44
44
 
45
45
  def gap
46
- tag :li, tag('span','…'), :class => 'unavailable'
46
+ tag :li, '', :class => 'ellipsis'
47
47
  end
48
48
 
49
49
  def previous_page
50
50
  num = @collection.current_page > 1 && @collection.current_page - 1
51
- previous_or_next_page(num, @options[:previous_label], "arrow")
51
+ previous_or_next_page(num, @options[:previous_label], "pagination-previous")
52
52
  end
53
53
 
54
54
  def next_page
55
55
  num = @collection.current_page < @collection.total_pages && @collection.current_page + 1
56
- previous_or_next_page(num, @options[:next_label], "arrow")
56
+ previous_or_next_page(num, @options[:next_label], "pagination-next")
57
57
  end
58
58
 
59
59
  end
@@ -1,3 +1,3 @@
1
1
  module FoundationPagination
2
- VERSION = "5.3.4"
2
+ VERSION = '6.2.0'
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: 5.3.4
4
+ version: 6.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Rangel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-08 00:00:00.000000000 Z
11
+ date: 2016-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: will_paginate
@@ -66,8 +66,9 @@ 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.2.2
69
+ rubygems_version: 2.5.1
70
70
  signing_key:
71
71
  specification_version: 4
72
72
  summary: Integrates the Foundation pagination component with will_paginate
73
73
  test_files: []
74
+ has_rdoc: