clean_pagination 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/clean_pagination.rb +1 -1
- data/lib/clean_pagination/version.rb +1 -1
- data/test/clean_pagination_test.rb +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fead59867c1ad221c9ca134934082c2db9fac913
|
4
|
+
data.tar.gz: 9fd7a6e2d86d532d81a3e429da9890b27e34e21c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59d4e5ef1d0351162b08169541de84cf1add2dd2c7afd27059ef90a5e1d09bac7d086434ec5d70d395f5ae3c1dcd04c273f72e3ce86aa75ee0972aa733613840
|
7
|
+
data.tar.gz: 78a761c0891acb35b8ae5814181d45ee1527c23d0c9876d2e328aa1bd0c5ae99aeab3aaaf5445e3b74b339e3e7f4bad723c62c84b64577674c54c7acacb805ec
|
data/lib/clean_pagination.rb
CHANGED
@@ -369,4 +369,12 @@ class ApplicationControllerTest < ActionController::TestCase
|
|
369
369
|
assert_match /\?foo=bar/, link
|
370
370
|
end
|
371
371
|
end
|
372
|
+
|
373
|
+
test "omits empty link header" do
|
374
|
+
@controller.stubs(:total_items).returns 2
|
375
|
+
|
376
|
+
get :index
|
377
|
+
|
378
|
+
assert_equal false, response.headers.has_key?('Link')
|
379
|
+
end
|
372
380
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clean_pagination
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joe Nelson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|