geared_pagination 1.0.2 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/geared_pagination.gemspec +1 -1
- data/lib/geared_pagination/page.rb +5 -1
- data/test/page_test.rb +7 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05c58b3498b3b341fd11f5500545278837414633b714f7c02aca2c3718c86227
|
4
|
+
data.tar.gz: b3c4729222ff73faf62566f48187ae522544a1491a6fba02ff4b921e24c1dcbd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c327c83175f3a27a8a91732ab3ae81c3c5d0f0da3ef54726a0d30042e7bb90b4ba933781ccee5b57cc7808c477e9bb12b5e67204e0c2417450a82350eeeadacf
|
7
|
+
data.tar.gz: ed877d95bad4a4d4083ee05f02d7211aa9e28c96eaf948cd387baa7b930373d5e08227024268bd1efef46c8fa75f84ac71c297a9080626c9c39ce8148e6e1e1c
|
data/Gemfile.lock
CHANGED
data/geared_pagination.gemspec
CHANGED
data/test/page_test.rb
CHANGED
@@ -20,8 +20,13 @@ class GearedPagination::PageTest < ActiveSupport::TestCase
|
|
20
20
|
end
|
21
21
|
|
22
22
|
test "last with page number greater than page count" do
|
23
|
-
|
24
|
-
|
23
|
+
assert_not GearedPagination::Recordset.new(Recording.none, per_page: 1000).page(2).last?
|
24
|
+
end
|
25
|
+
|
26
|
+
test "before_last" do
|
27
|
+
assert GearedPagination::Recordset.new(Recording.all, per_page: 1).page(1).before_last?
|
28
|
+
assert_not GearedPagination::Recordset.new(Recording.all, per_page: 1000).page(1).before_last?
|
29
|
+
assert_not GearedPagination::Recordset.new(Recording.none, per_page: 1000).page(2).before_last?
|
25
30
|
end
|
26
31
|
|
27
32
|
test "next offset param" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geared_pagination
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-12-
|
11
|
+
date: 2020-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|