imperium 0.1.2 → 0.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: 85fe923e6229f7ef7185879ff446dfa52e05a07c
4
- data.tar.gz: b5fffc62dc2506526e73e617e2b0657fe0268959
3
+ metadata.gz: 2ccb3188557a0e0648bc10cbab9b28578dd74c48
4
+ data.tar.gz: 3867b7fe25029fbd90b050794a4b088de1f78af3
5
5
  SHA512:
6
- metadata.gz: dd538bb71db19a0300ae2e10aeffbc83f0aa42d24540377bffc39bc9d47a7b3e7be09ed256ef85382761e5ae0a79d74cdaaa8c8f6f6382e87c60180f44e8ee4b
7
- data.tar.gz: 25f8e50b3483110b5d74fd2c83a0711be2d71922039d9fcb5046db0ed433f25603ca53b528e1b851fda781466c668e9c617a66fa5e6aa4fef5f9f9a243955831
6
+ metadata.gz: cd4236a9e242ec0a1e94eb3593c4b7a7e76aa8bc12dc68d17da06874d8e8d366c0f4e2cceb53da838d4f82e8c65fd623209e3da4a3885f6eacedb67f0504a9c8
7
+ data.tar.gz: e888b8ba124a1fbf6e67965143a084882c67f11ff823778603c1e469d464903f8e36fa34448f1d7f3ee6fb8076c0efd969491e88c45a836522ef7105dc285c68
@@ -47,7 +47,7 @@ module Imperium
47
47
  # API response.
48
48
  def initialize(attributes = {})
49
49
  ATTRIBUTE_MAP.each do |key, attribute_name|
50
- send("#{attribute_name}=", attributes[key])
50
+ send("#{attribute_name}=", attributes[key]) if attributes[key]
51
51
  end
52
52
  end
53
53
 
@@ -60,6 +60,7 @@ module Imperium
60
60
  #
61
61
  # @param value [String] The base64 encoded value from the response.
62
62
  def value=(value)
63
+ return @value = nil if value.nil?
63
64
  @value = Base64.decode64 value
64
65
  end
65
66
  end
@@ -1,3 +1,3 @@
1
1
  module Imperium
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imperium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler Pickett
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-03 00:00:00.000000000 Z
11
+ date: 2017-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -187,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
187
187
  version: '0'
188
188
  requirements: []
189
189
  rubyforge_project:
190
- rubygems_version: 2.6.8
190
+ rubygems_version: 2.5.2
191
191
  signing_key:
192
192
  specification_version: 4
193
193
  summary: A powerful, easy to use, Consul client