confidante 0.28.0.pre.16 → 0.28.0.pre.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f227c07f069e181681816cc7489b858e84902900d7c19f31b5ba99449f6e431b
4
- data.tar.gz: b0d0e7a23a56b82c86a26aedad88b03f12ae92a08a8a6d670cd6929916c15c79
3
+ metadata.gz: 94d4ad7adeb2f7f50922b57bbcb7112754b76c8c14c1deec0f6e6c976ef746bc
4
+ data.tar.gz: 720f5ad0310855b2c45babda8fef3a0a2a31457a43e836a384c690ddc781b8b5
5
5
  SHA512:
6
- metadata.gz: 83b32114eccd28d13653e36afe295828adf3def314aa33d21da2665e237021c74128b852c7244a273cedfa880bcd2ad628226ca16ae14db5f50d9adb39cc0626
7
- data.tar.gz: 031042a9e6e29028ff51a5772c834cf4025f04b4e250a3ca2ea5fe638d1d1fb70c43bf209200ff5c2e3b6ccc07537a711d87277b1035ac5fdfebb4d8d51fe5a9
6
+ metadata.gz: bcb0aaf12c349634d99b098d74fff4eceb293105f9a763e6651f3ff85af907b865d87e3e16fd68b57c8db368b641977f705705969de78e4b1030621f559f45b0
7
+ data.tar.gz: 60436dbd48b8ec6e338a407381acaa839361e3b658216f81d70f2786b06a159c985cc992f8614ded82516ef8a0d51afbbbf32190b30a8b0a31a95b7147227dc1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- confidante (0.28.0.pre.16)
4
+ confidante (0.28.0.pre.17)
5
5
  activesupport (>= 4)
6
6
  hiera (~> 3.3)
7
7
  shikashi (~> 0.6)
@@ -113,7 +113,7 @@ GEM
113
113
  diff-lcs (>= 1.2.0, < 2.0)
114
114
  rspec-support (~> 3.11.0)
115
115
  rspec-support (3.11.0)
116
- rubocop (1.35.0)
116
+ rubocop (1.35.1)
117
117
  json (~> 2.3)
118
118
  parallel (~> 1.10)
119
119
  parser (>= 3.1.2.1)
@@ -180,4 +180,4 @@ DEPENDENCIES
180
180
  simplecov
181
181
 
182
182
  BUNDLED WITH
183
- 2.3.20
183
+ 2.3.21
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Confidante
4
- VERSION = '0.28.0.pre.16'
4
+ VERSION = '0.28.0.pre.17'
5
5
  end
@@ -17,10 +17,11 @@ class Hiera
17
17
 
18
18
  vault_config = Backend.parse_answer(Config[:vault], scope)
19
19
  vault_address = vault_config[:address]
20
- vault_client = Vault::Client.new(address: vault_address)
21
20
 
22
- value = get_value(vault_client, key, vault_config[:sources])
21
+ throw :no_vault_address_provided unless vault_address
23
22
 
23
+ vault_client = Vault::Client.new(address: vault_address)
24
+ value = get_value(vault_client, key, vault_config[:sources])
24
25
  Backend.parse_answer(value, scope)
25
26
  end
26
27
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: confidante
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.0.pre.16
4
+ version: 0.28.0.pre.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - InfraBlocks Maintainers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-17 00:00:00.000000000 Z
11
+ date: 2022-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport