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 +4 -4
- data/lib/hal_client/representation.rb +4 -5
- data/lib/hal_client/version.rb +1 -1
- 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: 794f4fccafdd13d31c3e0cdb5ad7ce8941351703
|
4
|
+
data.tar.gz: ce1ad05b474a395de2313c302c0fb8b91f6ea68f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/hal_client/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|