objectreload-pagination 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/pagination/collection.rb +1 -1
  3. metadata +5 -5
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
@@ -1,5 +1,5 @@
1
1
  module Pagination
2
- class InvalidPage < ArgumentError
2
+ class InvalidPage < ActiveRecord::RecordNotFound
3
3
  def initialize(page, max = 1)
4
4
  super "#{page} must be greater than 0" if page < 1
5
5
  super "#{page} must be less than #{max}" if page >= 1
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 3
9
- version: 0.1.3
8
+ - 4
9
+ version: 0.1.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Mateusz Drozdzynski
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-05-02 00:00:00 +01:00
17
+ date: 2010-05-12 00:00:00 +03:00
18
18
  default_executable:
19
19
  dependencies: []
20
20
 
@@ -79,8 +79,8 @@ signing_key:
79
79
  specification_version: 3
80
80
  summary: Simple pagination - without changes in controllers
81
81
  test_files:
82
+ - test/lib/view_test_process.rb
82
83
  - test/active_record_extentions_test.rb
83
84
  - test/collection_test.rb
84
- - test/lib/view_test_process.rb
85
- - test/test_helper.rb
86
85
  - test/view_helpers_test.rb
86
+ - test/test_helper.rb