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 +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +1 -1
- data/lib/vault/api/logical.rb +2 -2
- data/lib/vault/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12a80ba875f11be9224f21addf0e95de643e5748
|
4
|
+
data.tar.gz: f07616511bd7f411c2480be2974da8a0903a83cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8742288bd182858eadde1bbba7281cc26c5f34cad4fcbb9311d93624f928752ca64a3c76683ca02d0b7d22caaa60ea386e81cfad6fd93557a1a5840dd3fb2510
|
7
|
+
data.tar.gz: 107c0be18482c2e8a399013dc3854418ab197e0da7c639edc1170f769ede69b050c40f6f046b77d334d6e3ba385869d49b8bd9351917ec092e8d7543ac816d4d
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/lib/vault/api/logical.rb
CHANGED
@@ -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
|
data/lib/vault/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|