vault 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: 9496bfe71a748722868ca561d6eee9b39653f22f
4
- data.tar.gz: 9fbd192e0714dd8ccae4eea5dae83731093eb622
3
+ metadata.gz: 12a80ba875f11be9224f21addf0e95de643e5748
4
+ data.tar.gz: f07616511bd7f411c2480be2974da8a0903a83cb
5
5
  SHA512:
6
- metadata.gz: 743faddaf58727aa08c0b32dcdf52e599c87142011fec8e7910480e365a3d398e551f209822c5f9df35fbabdfe0f4f98dcc07793d482f0a7f8e96243cf2b00f8
7
- data.tar.gz: 704847057e6127627aab9ad2c7394cfcc59e6c77364c3d73a77fc12ac6fb22434e0761f14708e4dca581cc5502d312c3637135fa19c771dc111f8e8542c133e4
6
+ metadata.gz: 8742288bd182858eadde1bbba7281cc26c5f34cad4fcbb9311d93624f928752ca64a3c76683ca02d0b7d22caaa60ea386e81cfad6fd93557a1a5840dd3fb2510
7
+ data.tar.gz: 107c0be18482c2e8a399013dc3854418ab197e0da7c639edc1170f769ede69b050c40f6f046b77d334d6e3ba385869d49b8bd9351917ec092e8d7543ac816d4d
@@ -1,5 +1,11 @@
1
1
  # Vault Ruby Changelog
2
2
 
3
+ ## v0.1.3 (May 14, 2015)
4
+
5
+ BUG FIXES
6
+
7
+ - Decode logical response body if present
8
+
3
9
  ## v0.1.2 (May 3, 2015)
4
10
 
5
11
  BUG FIXES
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- vault (0.1.2)
4
+ vault (0.1.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -44,8 +44,8 @@ module Vault
44
44
  #
45
45
  # @return [Secret]
46
46
  def write(path, data = {})
47
- client.put("/v1/#{path}", JSON.fast_generate(data))
48
- return read(path)
47
+ json = client.put("/v1/#{path}", JSON.fast_generate(data))
48
+ return json.nil? ? read(path) : Secret.decode(json)
49
49
  end
50
50
 
51
51
  # Delete the secret at the given path. If the secret does not exist, vault
@@ -1,3 +1,3 @@
1
1
  module Vault
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: vault
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
  - Seth Vargo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-05-03 00:00:00.000000000 Z
11
+ date: 2015-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler