hal_api-rails 1.1.3 → 1.1.4

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: 6582376382b79d5798d11a52efd471b1045a6f9b
4
- data.tar.gz: a42dc149632a9204917a52324a77eb84d8e8a6aa
3
+ metadata.gz: 4d1af91c55bf42a53d4ecfe0c6ed673bd2856a57
4
+ data.tar.gz: 0f0dac6e3b4e33821d9c20b0efe5fa1ead07b30e
5
5
  SHA512:
6
- metadata.gz: 15d29307746ba71e20696715b029bd6596eedf0e2c2daec49cac50f96cfd7e85b2fdb88973ff39420547e0ca84e941fc7ff3129cb71aeaad7536190b9f95cffa
7
- data.tar.gz: 9790fb8b62284d9292bb8fb6e29cbeac080c9d76511b1bceb9305fb26a6b99439c25597b53334e1bb2325eab3d0cb2e8d9b57f800f39a5b467f9079621aedfec
6
+ metadata.gz: 9bdfb40d56cfac300c5b2263ab25eec3b6162420cb417897c558b3e4bdfbd556acefe32da9387939ced5cb35046ad9295a6c7889881f385d996621914c0f5f3a
7
+ data.tar.gz: 5c0745b9303bae2e66046fbda5ded266b0b642350968e5bbaf409a55d6c49186770217c22a2f80813e85f4f3e4b9e58b69c6a548689e44f55dba6c8def4b3e02
@@ -1,5 +1,5 @@
1
1
  module HalApi
2
2
  module Rails
3
- VERSION = '1.1.3'
3
+ VERSION = '1.1.4'
4
4
  end
5
5
  end
@@ -12,11 +12,11 @@ module HalApi::Representer::CollectionPaging
12
12
  embeds :items, decorator: lambda{|*| item_decorator }, class: lambda{|*| item_class }, zoom: :always
13
13
 
14
14
  link :prev do
15
- href_url_helper(params.merge(page: represented.prev_page)) unless represented.first_page?
15
+ href_url_helper(params.merge(page: represented.prev_page)) if represented.prev_page
16
16
  end
17
17
 
18
18
  link :next do
19
- href_url_helper(params.merge(page: represented.next_page)) unless represented.last_page?
19
+ href_url_helper(params.merge(page: represented.next_page)) if represented.next_page
20
20
  end
21
21
 
22
22
  link :first do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hal_api-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Rhoden
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2020-06-09 00:00:00.000000000 Z
12
+ date: 2020-06-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activemodel