diplomat 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/diplomat/kv.rb +3 -1
- data/lib/diplomat/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8655785e99227be773937bcb1eca589fb722fc2a
|
4
|
+
data.tar.gz: 82dd206fd22e6eeb4448a6c3eabc735f78163454
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd220c071b7fe429c8f03e2a9e8dbc3d9b30a8c534e8d5605750dfe58e9d532a2cc86b01b176af60a85ec45333d63eb41f07359f09f9d1fd33a111fc0f1d271e
|
7
|
+
data.tar.gz: e4800883b78bd0bba36993d2858cb322ec85cc25d3695cfb35a9b5ea33785285417a24995dd6df4866edb812962896b59ef6ca2134c9947da5391771aeb66fbc
|
data/lib/diplomat/kv.rb
CHANGED
@@ -22,6 +22,7 @@ module Diplomat
|
|
22
22
|
# @param value [String] the value
|
23
23
|
# @return [String] The base64-decoded value associated with the key
|
24
24
|
def put key, value
|
25
|
+
@key = key
|
25
26
|
@raw = @conn.put do |req|
|
26
27
|
req.url "/v1/kv/#{@key}"
|
27
28
|
req.body = @value
|
@@ -36,7 +37,8 @@ module Diplomat
|
|
36
37
|
# @param key [String] the key
|
37
38
|
# @return [nil]
|
38
39
|
def delete key
|
39
|
-
@
|
40
|
+
@key = key
|
41
|
+
@raw = @conn.delete "/v1/kv/#{@key}"
|
40
42
|
@key = nil
|
41
43
|
@value = nil
|
42
44
|
end
|
data/lib/diplomat/version.rb
CHANGED