api-pagination 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 89fc0b6667ca5db8b964c8ddc52902359b808251
4
- data.tar.gz: e0c4f2a8a4bba136691e8f7484d0d58fe1ec4d14
3
+ metadata.gz: 09a9dd73ccebd7280dbb49978e11f0f667f178b4
4
+ data.tar.gz: dd0ee8715806ce59a197e76ab9e3fdec7a189634
5
5
  SHA512:
6
- metadata.gz: f6b95fd8252f48c98eef1a817eb5740b9944b3237daed662907342c39da6ca047f505e413beba2a560e2c5bda2532f7d57612ab5e2b2867a753d212056dbb580
7
- data.tar.gz: fb0faffe5f8d686981666fb690a1c346de9d8350711feb83003d28689d364a91dc5ca9380320a0c76753d8282a9b876baeaf01f1aab6b6e7b3500611b7b0c24c
6
+ metadata.gz: df67ca42a6de5f48e9c38b72981ecb6ea78a4cadeeff295811c229ded4e9180633c77133d0d28aebf8bbeb5834afdbe28d42f2c273e624a854ba63f7ecf48bfd
7
+ data.tar.gz: f836023f6066bb9b3269924e0af441d77881ee1c7448ae5063c293ada7a6d47b843ab5339a61c4b8a70279fc9f59db42195e3b727cc54d7038e6672c7cbdecef
@@ -22,7 +22,7 @@ module ApiPagination
22
22
  %(<#{url}?#{new_params.to_param}>; rel="#{k}")
23
23
  end
24
24
 
25
- headers['Link'] = links.join(', ')
25
+ headers['Link'] = links.join(', ') unless links.empty?
26
26
  end
27
27
  end
28
28
 
@@ -1,7 +1,7 @@
1
1
  module ApiPagination
2
2
  MAJOR = 1
3
3
  MINOR = 1
4
- PATCH = 0
4
+ PATCH = 1
5
5
 
6
6
  VERSION = [MAJOR, MINOR, PATCH].join('.')
7
7
  end
@@ -34,7 +34,7 @@ describe NumbersController, :type => :controller do
34
34
  context 'without enough items to give more than one page' do
35
35
  it 'should not paginate' do
36
36
  get :index, count: 20
37
- response.headers['Link'].should be_blank
37
+ response.headers.keys.should_not include("Link")
38
38
  end
39
39
  end
40
40
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api-pagination
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Celis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-30 00:00:00.000000000 Z
11
+ date: 2013-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack
@@ -78,3 +78,4 @@ test_files:
78
78
  - spec/controllers/numbers_controller_spec.rb
79
79
  - spec/dummy/log/development.log
80
80
  - spec/spec_helper.rb
81
+ has_rdoc: