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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0b5924c554f204f0f00a71f77090169cbeb928a8
4
- data.tar.gz: a9e9948fede1773e4ba478e2d0fee89bb0c7f458
3
+ metadata.gz: 8655785e99227be773937bcb1eca589fb722fc2a
4
+ data.tar.gz: 82dd206fd22e6eeb4448a6c3eabc735f78163454
5
5
  SHA512:
6
- metadata.gz: 18294edda32703b3a028b8b13b643140523b994234c0ad4ae753d453ccdb48b78170c35033deb4747f8320361519cbd85e1191dd99f0d0c9ba33619450604ee6
7
- data.tar.gz: e0a36c34a5669ff929fb6c6ca011bc8d40ccb535064be2dc16d311d5078aa60b070b251c08b6c27195c2a8a19b47b3ea0a47f27e64c1008612ab7b3fdc63f346
6
+ metadata.gz: cd220c071b7fe429c8f03e2a9e8dbc3d9b30a8c534e8d5605750dfe58e9d532a2cc86b01b176af60a85ec45333d63eb41f07359f09f9d1fd33a111fc0f1d271e
7
+ data.tar.gz: e4800883b78bd0bba36993d2858cb322ec85cc25d3695cfb35a9b5ea33785285417a24995dd6df4866edb812962896b59ef6ca2134c9947da5391771aeb66fbc
@@ -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
- @raw = @conn.delete "/v1/kv/#{@key}"
40
+ @key = key
41
+ @raw = @conn.delete "/v1/kv/#{@key}"
40
42
  @key = nil
41
43
  @value = nil
42
44
  end
@@ -1,3 +1,3 @@
1
1
  module Diplomat
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: diplomat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Hamelink