chef-vault 4.0.6 → 4.0.10

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: 03bdd8e351901cf22ffe796719f896d66facb68e879c9391cc1a9b1c37f7fda6
4
- data.tar.gz: f0bcdfb1453a3a1369b8dc4c4bf953d88f02553b7b7a75c37b52bb53d6c433c6
3
+ metadata.gz: 90adcd61e0fc654df4ce295a57fdbec194c1da9985298e8353165bd1ddb98f76
4
+ data.tar.gz: 63eda080cc7a54bd9d5b66aaa75d7a384d2cc7f5fc834a84d70bc0e785c430e0
5
5
  SHA512:
6
- metadata.gz: dd6bf1713a7070cb868c8ada5cebefc160f7d20dea520068b280a4bbd66c6a2dca429ca3a06a6c50186d4bc23145e41536b6dd141c8d53ed3c12d0244ae0a105
7
- data.tar.gz: b5be7ab98224fecb927546fe14513fc2c1efec41d63069c460e402b9581ee38e7bc3fd1241e76de00334760e7df7aa480abd907263155d6bb59124d6eadb0017
6
+ metadata.gz: f12f914abfd57e0b7e1b99051ec645b2ce34c3b67f8b3ef586f74b2686000f363963e7e27b3a1e85fc06d39e78524ed03c1fc0fdf5e41ed28fde036e9fa16732
7
+ data.tar.gz: de5160bf822bb43934287f36f30b257a081b8988842dc106896dbb227d90e6a7690b337df4d12ba767d7f986107630a2b415261dd749da0d78c7b99d0fc29155
data/Gemfile CHANGED
@@ -8,8 +8,6 @@ group :development do
8
8
  gem "rake"
9
9
  gem "rspec", "~> 3.4"
10
10
  gem "aruba", "~> 0.6"
11
- gem "simplecov", "~> 0.9"
12
- gem "simplecov-console", "~> 0.2.0"
13
11
  gem "chef", "~> 14.0" # avoids test failures on license acceptance
14
12
  end
15
13
 
@@ -18,7 +18,7 @@
18
18
  # See the License for the specific language governing permissions and
19
19
  # limitations under the License.
20
20
 
21
- require "optparse"
21
+ require "optparse" unless defined?(OptionParser)
22
22
 
23
23
  options_config = {
24
24
  chef: {
@@ -82,7 +82,7 @@ options_config.each do |option, config|
82
82
  options[option] = options[option] ? options[option] : config[:default]
83
83
  end
84
84
 
85
- require "rubygems"
85
+ require "rubygems" unless defined?(Gem)
86
86
  $:.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
87
87
  require "chef-vault"
88
88
 
@@ -15,6 +15,6 @@
15
15
  # limitations under the License.
16
16
 
17
17
  class ChefVault
18
- VERSION = "4.0.6"
18
+ VERSION = "4.0.10"
19
19
  MAJOR, MINOR, TINY = VERSION.split(".")
20
20
  end
@@ -26,6 +26,10 @@ class Chef
26
26
  vault_admins = Chef::Config[:knife][:vault_admins]
27
27
  admin_array = [Chef::Config[:node_name]]
28
28
 
29
+ if !vault_admins.kind_of?(Array)
30
+ + ui.warn("Vault admin must be an array")
31
+ + end
32
+
29
33
  if config_admins
30
34
  admin_array += [config_admins]
31
35
  elsif vault_admins
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-vault
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.6
4
+ version: 4.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thom May
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-13 00:00:00.000000000 Z
11
+ date: 2020-08-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Data encryption support for Chef Infra using data bags
14
14
  email: