hal-client 4.1.0 → 4.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: 8bfaa5d8d4e7d292a1451a99fc57242f11bdea8a
4
- data.tar.gz: 5d94cd3f5b0dbfadd72fb69500961bc3ae7de871
3
+ metadata.gz: 794f4fccafdd13d31c3e0cdb5ad7ce8941351703
4
+ data.tar.gz: ce1ad05b474a395de2313c302c0fb8b91f6ea68f
5
5
  SHA512:
6
- metadata.gz: 509d532e384249bfc7a2c1be053cf52c71dc04bec2d5328520cdbda229a6e637a0ce094b50f7e4e9e8fcbf064ac661c543be8ea51cd48a93fabe1a48c0322d98
7
- data.tar.gz: b2421ace2e732764564dade36b67ebf83459877f3c001bb6afe2032c05c9a6ab290e00669f31b82e79c87d40c93938b658d142d658a8ab74bcf0e7f44190221c
6
+ metadata.gz: 7fd1d9d4ea3be8546d4cdaa381a26da50eb9a5a207f5ab3914bc152665878429dc028a3375fa730e8bf0a25ef621e956da2ae2c7cc2f4b9058f176b7a5c3de11
7
+ data.tar.gz: ea3c21d6eb6308ce9e6be6fb447ee4396db2d21042da561776460e3dc9f8aaa581356af1318886b56a1043a94c50b1c594f479a6ca54e75ddcfab00e06fc994f
@@ -186,8 +186,6 @@ class HalClient
186
186
  def related(link_rel, options = {}, &default_proc)
187
187
  default_proc ||= NO_RELATED_RESOURCE
188
188
 
189
- ensure_reified
190
-
191
189
  related = links_by_rel
192
190
  .fetch(link_rel) { return default_proc.call(link_rel) }
193
191
  .map { |l| l.target(options) }
@@ -229,8 +227,6 @@ class HalClient
229
227
  def raw_related_hrefs(link_rel, &default_proc)
230
228
  default_proc ||= NO_RELATED_RESOURCE
231
229
 
232
- ensure_reified
233
-
234
230
  links_by_rel
235
231
  .fetch(link_rel) { return default_proc.call(link_rel) }
236
232
  .map { |l| l.raw_href }
@@ -314,7 +310,6 @@ class HalClient
314
310
 
315
311
  protected
316
312
 
317
- attr_reader :links_by_rel
318
313
  attr_writer :hal_client
319
314
 
320
315
  MISSING = Object.new
@@ -354,6 +349,10 @@ class HalClient
354
349
  }
355
350
  end
356
351
 
352
+ def links_by_rel
353
+ @links_by_rel || ensure_reified
354
+ end
355
+
357
356
  def_delegators :links, :namespaces
358
357
  end
359
358
  end
@@ -1,3 +1,3 @@
1
1
  class HalClient
2
- VERSION = "4.1.0"
2
+ VERSION = "4.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hal-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.0
4
+ version: 4.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-19 00:00:00.000000000 Z
11
+ date: 2017-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http