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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c22649fc5b9cf64045bfe2a8d00c7ee333875b908683f59371b111e23baa6e68
4
- data.tar.gz: ea3690f1f041619f9d1f6491ac21784fdc5bf31b5ee496c80d2fe3bd3195e9b1
3
+ metadata.gz: 00d873dd4459410cc9e81ea17ffa5feddd9323e085d362f889004285225adc6b
4
+ data.tar.gz: d3e9f0ee21bd8e13a4f96a2294bef1f4a205f1662851c9d6abac2ddfb758ef8b
5
5
  SHA512:
6
- metadata.gz: c79cfd0da579e74134d9c01a5745f0f69b8e9dcc72532fcd88bbd3ca3c82410c48a0e61ee41923becbdcef72d67e2af551d00760be1521534494f331634f19d2
7
- data.tar.gz: 748c0dee85126f1bda4db6bffbe338ff4b1d71ea50b02e4bb3779cd9479cc963dadeeefc62c3c5e3d09911b57d42b4cfab77de4d18416fd8194a5fedf6ea0bb6
6
+ metadata.gz: 69d97383a3a53c5844a54876c8a99841a52bc211807112898d416fd9a319b9e408de9b600334c6b52e8152ffde07c16d266d6e9957737865c00c7dcf02ee3955
7
+ data.tar.gz: a2ac7be354834908fc734c40414614998a5bcc4df5026d3b9ddc1e2686dba3352a35bfc20bc57895055896454eae62345c91b33beda7b5afe4f4b8ab53b14ed1
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -12,7 +12,7 @@ class ShafClient
12
12
  end
13
13
  end
14
14
 
15
- def initialize(href:, templated: nil)
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.0
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: 2018-12-18 00:00:00.000000000 Z
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
- rubyforge_project:
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