hal-client 4.1.2 → 4.1.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0c0e1539630f8980093f15aadd3b1fcbc14d25c
|
4
|
+
data.tar.gz: 214d31c02a626d1f26423ebd1445436790ce189e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58c7cdcc017d440025ac1d4f8553789a7ffefc4ca0276a6e00bf314eff12361cd34f29e9d1ee302642e411c86b10710babcd137cdd805d681d39debbc3320a2c
|
7
|
+
data.tar.gz: b7371c8a8cb56e71b58c40b6aff6d35f02629379461e92115a8ee2966371b8caa9b261967432001396fd51f46979923865e27e2f38d4d22d8e159267be4656c7
|
data/lib/hal_client/link.rb
CHANGED
data/lib/hal_client/version.rb
CHANGED
@@ -54,9 +54,9 @@ RSpec.describe HalClient::RepresentationSet do
|
|
54
54
|
|
55
55
|
context "templated" do
|
56
56
|
subject(:returned_val) { repr_set.related("cousin", distance: "first") }
|
57
|
-
|
58
|
-
|
59
|
-
|
57
|
+
specify { expect(subject.map{ |s| s.href.to_s }).to include("http://example.com/foo-first-cousin") }
|
58
|
+
specify { expect(subject.map{ |s| s.href.to_s }).to include("http://example.com/bar-paternal-first-cousin") }
|
59
|
+
specify { expect(subject.map{ |s| s.href.to_s }).to include("http://example.com/bar-maternal-first-cousin") }
|
60
60
|
it { is_expected.to have(3).items }
|
61
61
|
end
|
62
62
|
end
|
@@ -254,7 +254,8 @@ HAL
|
|
254
254
|
context "for existent templated link" do
|
255
255
|
subject { repr.related "templated", name: "bob" }
|
256
256
|
it { is_expected.to have(1).item }
|
257
|
-
|
257
|
+
specify { expect(subject.first.href.to_s).to eq(
|
258
|
+
"http://example.com/people?name=bob") }
|
258
259
|
end
|
259
260
|
|
260
261
|
context "for existent embedded" do
|
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.3
|
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-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|