ocean-rails 5.6.0 → 5.7.0

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: 28fc3fe87d46aa6a8fef90e97666eecbb0374e6d
4
- data.tar.gz: ba0a331acd12c986d47adb3c79f4d1e77e058756
3
+ metadata.gz: dd254ebe68959d2d33f6ad3c0907b02078d70598
4
+ data.tar.gz: 7e6b4813a48ee9fdf65087b2f0e72a529c5632cf
5
5
  SHA512:
6
- metadata.gz: b6f6790a906a3ff973f6b50ecfb75c860e1c5a9939999bda54b7720906611a6cabb223b6f32aa81b756122e060ab8e130bcf531d99b4dcef75854062c013bbd0
7
- data.tar.gz: 4f729097a080810b7f1b9983c07fce31f7e30297e0d91e67afa83b9460431c2b67fbfdd71070b1f561f0d0e30f74be99e0add4e7a715100586c188cb0e742e59
6
+ metadata.gz: a687103ddeedbc2845945f728d948c77026cfb732085597882d6e798b1690cad766513933ef163465ac8f42e70fb6383f29b81dffd58f79eaaac49312b5183f0
7
+ data.tar.gz: 47477f52e6e3220e567afe338369a793a2302e93e55c7c72c8aa1e30b4380fa51795b0a011268fc6877a6f3587275a1b5c0a7282ce779dcf369c446f0537e3d0
@@ -188,8 +188,8 @@ module OceanApplicationController
188
188
  last_page = total_pages - 1
189
189
  prev_page = page > 0 && page - 1
190
190
  next_page = page < last_page && page + 1
191
- links['first_page'] = {href: url_for(params.merge(page: 0)), type: 'application/json'}
192
- links['last_page'] = {href: url_for(params.merge(page: last_page)), type: 'application/json'}
191
+ links['first_page'] = {href: url_for(params.merge(page: 0)), type: 'application/json'} if page > 0
192
+ links['last_page'] = {href: url_for(params.merge(page: last_page)), type: 'application/json'} if page < last_page
193
193
  links['previous_page'] = {href: url_for(params.merge(page: prev_page)), type: 'application/json'} if prev_page
194
194
  links['next_page'] = {href: url_for(params.merge(page: next_page)), type: 'application/json'} if next_page
195
195
  end
data/lib/ocean/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ocean
2
- VERSION = "5.6.0"
2
+ VERSION = "5.7.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ocean-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.6.0
4
+ version: 5.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Bengtson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-09 00:00:00.000000000 Z
11
+ date: 2016-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus