param_store 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/param_store/adapters/secrets_manager.rb +5 -1
- data/lib/param_store/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6bbbe84891e4fb08ed106c9f10fd72cb54a45a614cdcca44e6ced99dd02a105a
|
4
|
+
data.tar.gz: 387838d2d461c6d89f1b39484fcea6b9af1bb620bcc8bac6f80d2fe8dbd8f87e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 477a949bcf83d47868d36a084525399c46db6f615a0a9f8abf74a91bc51789a4a95c43c2acf257eb2bfd4ab9f2d9c00588d2ee4a82e7b3ffbefc04d14ad3e70d
|
7
|
+
data.tar.gz: 8f5436f39bd8a25c007ce285a8739cc525394a913ee463ed7ff5a5d6738182436d9a73f82eaae60646528ba56b6a28d3a64af7f069e513af42a94f63b2cf7bbc
|
data/Gemfile.lock
CHANGED
@@ -23,7 +23,10 @@ module ParamStore
|
|
23
23
|
def fetch_all(*keys, **opts)
|
24
24
|
# poor man's fetch all
|
25
25
|
# I couldn't find a batch get for secrets manager :/
|
26
|
-
keys.map
|
26
|
+
keys.map do |key|
|
27
|
+
value = fetch(key, {}, **opts)
|
28
|
+
value&.empty? ? {} : { key => value }
|
29
|
+
end.inject(:merge)
|
27
30
|
end
|
28
31
|
|
29
32
|
private
|
@@ -36,6 +39,7 @@ module ParamStore
|
|
36
39
|
).secret_string
|
37
40
|
rescue Aws::SecretsManager::Errors::ResourceNotFoundException
|
38
41
|
# let the tmp.fetch below deal with key not found and defaults
|
42
|
+
nil
|
39
43
|
end
|
40
44
|
|
41
45
|
def cache
|
data/lib/param_store/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: param_store
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pablo Cantero
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|