knife-verschart 2.8.3 → 2.8.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/chef/knife/Verschart.rb +8 -1
  3. metadata +10 -12
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 323b008836a730813c7d555f8fefb30a6457d64a
4
+ data.tar.gz: 8b235b49a62d6ac5d2faf6ac4c57c2e103c7c14d
5
+ SHA512:
6
+ metadata.gz: 091b0334933649bba59d127b716cae3a6b631a2ccdb4ec72bfda4d9ba320a5a144c465963b91a749b6c922bc5fe01fa0958a53327a4061f3fd0b4090ce068c6f
7
+ data.tar.gz: 5752e094daa335eff5ab50086303662bc325512acb83068c69d1ccecb39a17bd81592ffc52e29cf390b809a74a084c5f0fc02d70654a348e5c7a1a68355994ff
@@ -40,7 +40,14 @@ module Verschart
40
40
  primary = config[:primary] || []
41
41
  order = config[:envorder] || []
42
42
  envorder = []
43
- envorder = order.split(',') unless order.empty?
43
+ unless order.empty?
44
+ case order.class
45
+ when 'String'
46
+ envorder = order.split(',') unless order.empty?
47
+ when 'Array'
48
+ order.each { |env| envorder << env } unless order.empty?
49
+ end
50
+ end
44
51
  srv = server_url.sub(%r{https://}, '').sub(/:[0-9]*$/, '')
45
52
  cbselect = config[:cbselect] || []
46
53
  html = config[:html] || false
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-verschart
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.3
5
- prerelease:
4
+ version: 2.8.5
6
5
  platform: ruby
7
6
  authors:
8
7
  - Chaz Ruhl
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2015-03-19 00:00:00.000000000 Z
11
+ date: 2015-06-16 00:00:00.000000000 Z
13
12
  dependencies: []
14
- description:
13
+ description: Plug-in for Chef::Knife to print a chart of all cookbooks and the version
14
+ constraints contained in each environment. See README.md for more details
15
15
  email: chazzly@gmail.com
16
16
  executables: []
17
17
  extensions: []
@@ -21,27 +21,25 @@ files:
21
21
  homepage: https://github.com/chazzly/knife-verschart
22
22
  licenses:
23
23
  - Apache
24
+ metadata: {}
24
25
  post_install_message:
25
26
  rdoc_options: []
26
27
  require_paths:
27
28
  - lib
28
29
  required_ruby_version: !ruby/object:Gem::Requirement
29
- none: false
30
30
  requirements:
31
- - - ! '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  required_rubygems_version: !ruby/object:Gem::Requirement
35
- none: false
36
35
  requirements:
37
- - - ! '>='
36
+ - - ">="
38
37
  - !ruby/object:Gem::Version
39
38
  version: '0'
40
39
  requirements: []
41
40
  rubyforge_project:
42
- rubygems_version: 1.8.24
41
+ rubygems_version: 2.4.4
43
42
  signing_key:
44
- specification_version: 3
45
- summary: Plug-in for Chef::Knife to print a chart of all cookbooks and the version
46
- constraints contained in each environment. See README.md for more details
43
+ specification_version: 4
44
+ summary: Print chart of cookbooks version constraints per environment.
47
45
  test_files: []