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 +4 -4
- data/lib/imperium/kv_pair.rb +2 -1
- data/lib/imperium/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ccb3188557a0e0648bc10cbab9b28578dd74c48
|
4
|
+
data.tar.gz: 3867b7fe25029fbd90b050794a4b088de1f78af3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd4236a9e242ec0a1e94eb3593c4b7a7e76aa8bc12dc68d17da06874d8e8d366c0f4e2cceb53da838d4f82e8c65fd623209e3da4a3885f6eacedb67f0504a9c8
|
7
|
+
data.tar.gz: e888b8ba124a1fbf6e67965143a084882c67f11ff823778603c1e469d464903f8e36fa34448f1d7f3ee6fb8076c0efd969491e88c45a836522ef7105dc285c68
|
data/lib/imperium/kv_pair.rb
CHANGED
@@ -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
|
data/lib/imperium/version.rb
CHANGED
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.
|
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-
|
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.
|
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
|