just_paginate 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/just_paginate.rb +4 -4
  2. metadata +9 -9
data/lib/just_paginate.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  module JustPaginate
3
3
 
4
- VERSION = "0.0.13"
4
+ VERSION = "0.0.14"
5
5
 
6
6
  # TODO make sure negative numbers, non-integers etc are just converted to page 1.
7
7
  def self.page_value(page)
@@ -51,7 +51,7 @@ module JustPaginate
51
51
 
52
52
  def self.page_navigation(curr_page, total_page_count, &page_link_constructor)
53
53
  links = page_links(curr_page.to_i, total_page_count, &page_link_constructor)
54
- return "<div class='pagination'>#{links}</div>"
54
+ return "<div class='pagination'><ul>#{links}</ul></div>"
55
55
  end
56
56
 
57
57
  def self.page_links(curr_page, total_page_count, &page_link_constructor)
@@ -59,7 +59,7 @@ module JustPaginate
59
59
  page_element = ""
60
60
 
61
61
  if label == "..."
62
- page_element = "<span class='gap'>#{label}</span>"
62
+ page_element = "<a class='disabled'>#{label}</span>"
63
63
  elsif label == "<"
64
64
  page_url = yield(curr_page-1)
65
65
  page_element = "<a rel='prev' href='#{page_url}'>#{label}</a>"
@@ -69,7 +69,7 @@ module JustPaginate
69
69
  else
70
70
  page_url = yield(label)
71
71
  if label.to_i == curr_page
72
- page_element = "<span class='current'>#{label}</span>"
72
+ page_element = "<a class='active'>#{label}</span>"
73
73
  else
74
74
  page_element = "<a href='#{page_url}'>#{label}</a>"
75
75
  end
metadata CHANGED
@@ -1,24 +1,25 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: just_paginate
3
3
  version: !ruby/object:Gem::Version
4
+ version: 0.0.14
4
5
  prerelease:
5
- version: 0.0.13
6
6
  platform: ruby
7
7
  authors:
8
8
  - Gitorious AS
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-06 00:00:00.000000000 Z
12
+ date: 2013-06-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- type: :development
15
+ name: minitest
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
21
  version: '0'
22
+ type: :development
22
23
  prerelease: false
23
24
  version_requirements: !ruby/object:Gem::Requirement
24
25
  none: false
@@ -26,15 +27,15 @@ dependencies:
26
27
  - - ! '>='
27
28
  - !ruby/object:Gem::Version
28
29
  version: '0'
29
- name: minitest
30
30
  - !ruby/object:Gem::Dependency
31
- type: :development
31
+ name: shoulda
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  none: false
34
34
  requirements:
35
35
  - - ! '>='
36
36
  - !ruby/object:Gem::Version
37
37
  version: '0'
38
+ type: :development
38
39
  prerelease: false
39
40
  version_requirements: !ruby/object:Gem::Requirement
40
41
  none: false
@@ -42,15 +43,15 @@ dependencies:
42
43
  - - ! '>='
43
44
  - !ruby/object:Gem::Version
44
45
  version: '0'
45
- name: shoulda
46
46
  - !ruby/object:Gem::Dependency
47
- type: :development
47
+ name: shoulda-context
48
48
  requirement: !ruby/object:Gem::Requirement
49
49
  none: false
50
50
  requirements:
51
51
  - - ! '>='
52
52
  - !ruby/object:Gem::Version
53
53
  version: '0'
54
+ type: :development
54
55
  prerelease: false
55
56
  version_requirements: !ruby/object:Gem::Requirement
56
57
  none: false
@@ -58,7 +59,6 @@ dependencies:
58
59
  - - ! '>='
59
60
  - !ruby/object:Gem::Version
60
61
  version: '0'
61
- name: shoulda-context
62
62
  description: Framework-agnostic support for paginating collections of things, and
63
63
  linking to paginated things in your webpage
64
64
  email:
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  version: '0'
96
96
  requirements: []
97
97
  rubyforge_project: just_paginate
98
- rubygems_version: 1.8.24
98
+ rubygems_version: 1.8.25
99
99
  signing_key:
100
100
  specification_version: 3
101
101
  summary: Framework-agnostic support for paginating collections of things, and linking