just_paginate 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/just_paginate.rb +2 -2
- metadata +3 -3
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.
|
4
|
+
VERSION = "0.0.4"
|
5
5
|
|
6
6
|
def self.page_value(page)
|
7
7
|
if page.nil?
|
@@ -98,7 +98,7 @@ module JustPaginate
|
|
98
98
|
current = (total-max_visible)+1
|
99
99
|
end
|
100
100
|
|
101
|
-
current.upto(current+(max_visible
|
101
|
+
current.upto(current+(max_visible)).each {|n| labels.push(n.to_s)}
|
102
102
|
|
103
103
|
if (current <= (total-max_visible))
|
104
104
|
labels.concat ["...", "#{total}", ">"]
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: just_paginate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 4
|
10
|
+
version: 0.0.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Gitorious AS
|