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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6a193054830d20294dc6f7beac7466aefd0dc0f34371ddcf97542277e5bcc76c
4
- data.tar.gz: 97afce05344af92e41b85d673c95d718f1ca8bfa3e2793f8d047bdfa718dad1e
3
+ metadata.gz: 6bbbe84891e4fb08ed106c9f10fd72cb54a45a614cdcca44e6ced99dd02a105a
4
+ data.tar.gz: 387838d2d461c6d89f1b39484fcea6b9af1bb620bcc8bac6f80d2fe8dbd8f87e
5
5
  SHA512:
6
- metadata.gz: c92d7d8b694ec738a2ba1e34d4f0366ceb2e2180e6332afaec9aef022899fd54e4610abe845130209bc85cf4a982e7598954bda98cc616846b9f2d6f6580ae7e
7
- data.tar.gz: ce6bbe962abbf9e76ca08e7f268b763b25e0b7ef4e98c8b4df83c0ff33604e72702af33b56967e7110ec35cb6b6d91d0be73b49475d2c06167ed39504635ff76
6
+ metadata.gz: 477a949bcf83d47868d36a084525399c46db6f615a0a9f8abf74a91bc51789a4a95c43c2acf257eb2bfd4ab9f2d9c00588d2ee4a82e7b3ffbefc04d14ad3e70d
7
+ data.tar.gz: 8f5436f39bd8a25c007ce285a8739cc525394a913ee463ed7ff5a5d6738182436d9a73f82eaae60646528ba56b6a28d3a64af7f069e513af42a94f63b2cf7bbc
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- param_store (1.0.0)
4
+ param_store (1.0.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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 { |key| fetch(key, {}, **opts) }.inject(:merge)
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
@@ -1,3 +1,3 @@
1
1
  module ParamStore
2
- VERSION = '1.0.0'.freeze
2
+ VERSION = '1.0.1'.freeze
3
3
  end
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.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-02-12 00:00:00.000000000 Z
11
+ date: 2020-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler