shaf_client 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/shaf_client/link.rb +2 -2
- metadata +3 -4
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00d873dd4459410cc9e81ea17ffa5feddd9323e085d362f889004285225adc6b
|
4
|
+
data.tar.gz: d3e9f0ee21bd8e13a4f96a2294bef1f4a205f1662851c9d6abac2ddfb758ef8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69d97383a3a53c5844a54876c8a99841a52bc211807112898d416fd9a319b9e408de9b600334c6b52e8152ffde07c16d266d6e9957737865c00c7dcf02ee3955
|
7
|
+
data.tar.gz: a2ac7be354834908fc734c40414614998a5bcc4df5026d3b9ddc1e2686dba3352a35bfc20bc57895055896454eae62345c91b33beda7b5afe4f4b8ab53b14ed1
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/shaf_client/link.rb
CHANGED
@@ -12,7 +12,7 @@ class ShafClient
|
|
12
12
|
end
|
13
13
|
end
|
14
14
|
|
15
|
-
def initialize(href:, templated:
|
15
|
+
def initialize(href:, templated: false)
|
16
16
|
@href = href
|
17
17
|
@templated = !!templated
|
18
18
|
end
|
@@ -24,7 +24,7 @@ class ShafClient
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def resolve_templated(**args)
|
27
|
-
return unless templated?
|
27
|
+
return href unless templated?
|
28
28
|
|
29
29
|
args.inject(href) do |uri, (key, value)|
|
30
30
|
value = value.to_s.sub(/.+:/, '')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shaf_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sammy Henningsson
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
ZMhjYR7sRczGJx+GxGU2EaR0bjRsPVlC4ywtFxoOfRG3WaJcpWGEoAoMJX6Z0bRv
|
31
31
|
M40=
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date:
|
33
|
+
date: 2019-02-10 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: faraday
|
@@ -113,8 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
113
113
|
- !ruby/object:Gem::Version
|
114
114
|
version: '0'
|
115
115
|
requirements: []
|
116
|
-
|
117
|
-
rubygems_version: 2.7.6
|
116
|
+
rubygems_version: 3.0.1
|
118
117
|
signing_key:
|
119
118
|
specification_version: 4
|
120
119
|
summary: HAL client for Shaf
|
metadata.gz.sig
CHANGED
Binary file
|