just_paginate 0.0.10 → 0.0.11

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 +2 -2
  2. metadata +30 -15
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.10"
4
+ VERSION = "0.0.11"
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)
@@ -102,7 +102,7 @@ module JustPaginate
102
102
  end
103
103
 
104
104
  module Rails
105
- def self.warn_on_oob(requested_page, per_page, total_element_count)
105
+ def warn_on_oob(requested_page, per_page, total_element_count)
106
106
  flash[:error] = "Page #{@page} out of bounds." if JustPaginate.beyond_page_range?(requested_page, per_page, total_element_count)
107
107
  end
108
108
  end
metadata CHANGED
@@ -1,49 +1,64 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: just_paginate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
5
4
  prerelease:
5
+ version: 0.0.11
6
6
  platform: ruby
7
7
  authors:
8
8
  - Gitorious AS
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-09 00:00:00.000000000Z
12
+ date: 2013-01-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: minitest
16
- requirement: &6792980 !ruby/object:Gem::Requirement
15
+ type: :development
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
23
22
  prerelease: false
24
- version_requirements: *6792980
25
- - !ruby/object:Gem::Dependency
26
- name: shoulda
27
- requirement: &6792300 !ruby/object:Gem::Requirement
23
+ version_requirements: !ruby/object:Gem::Requirement
28
24
  none: false
29
25
  requirements:
30
26
  - - ! '>='
31
27
  - !ruby/object:Gem::Version
32
28
  version: '0'
29
+ name: minitest
30
+ - !ruby/object:Gem::Dependency
33
31
  type: :development
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
34
38
  prerelease: false
35
- version_requirements: *6792300
36
- - !ruby/object:Gem::Dependency
37
- name: shoulda-context
38
- requirement: &6791400 !ruby/object:Gem::Requirement
39
+ version_requirements: !ruby/object:Gem::Requirement
39
40
  none: false
40
41
  requirements:
41
42
  - - ! '>='
42
43
  - !ruby/object:Gem::Version
43
44
  version: '0'
45
+ name: shoulda
46
+ - !ruby/object:Gem::Dependency
44
47
  type: :development
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
45
54
  prerelease: false
46
- version_requirements: *6791400
55
+ version_requirements: !ruby/object:Gem::Requirement
56
+ none: false
57
+ requirements:
58
+ - - ! '>='
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ name: shoulda-context
47
62
  description: Framework-agnostic support for paginating collections of things, and
48
63
  linking to paginated things in your webpage
49
64
  email:
@@ -80,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
95
  version: '0'
81
96
  requirements: []
82
97
  rubyforge_project: just_paginate
83
- rubygems_version: 1.8.15
98
+ rubygems_version: 1.8.24
84
99
  signing_key:
85
100
  specification_version: 3
86
101
  summary: Framework-agnostic support for paginating collections of things, and linking