knife-solve 1.1.0 → 1.1.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
  SHA1:
3
- metadata.gz: 80174841ace3f60ff00027bc0ce61dab6046edd5
4
- data.tar.gz: ca1c16978219a2a171591f7940c046c435acef67
3
+ metadata.gz: 69089312483fd902f72804d5be36ade7c8402183
4
+ data.tar.gz: a9cd69a52e4d83fc125a0e8d85af0fd5c84201ad
5
5
  SHA512:
6
- metadata.gz: c8c7bf5377c8ea01127faf89bd6dc6fef2b9cb9a786670096691a9dbd56fb3b72db60ea145ab29c5841d4b689bc99ea8fa2676c36982899232a3b777e577d272
7
- data.tar.gz: f0a2a5498cfb383899026af9cf9b3ba98dd5a6ed41839077bcc86397f4fd1b3aa9581390e42ee1eabc9bf9c474ab080c34e5f4fe63d6316c8ea11e48d84df6eb
6
+ metadata.gz: e862f4ed61efd2aeac5bca8badd93ec4787de918ce60ccd38c83a6fcd75e0ac4c58ef5678f438610a82cbbc435525ff260cdc837babd7246f3283bd8624dcb20
7
+ data.tar.gz: 2728f9540330e42f01e5ffdea17e16b4a0181915633f1e86e953a9f486293cecb1ce4df41481ba7f1d7e3f5da1a3c87d58d44f05478f08e97296053cece6e999
@@ -58,7 +58,13 @@ class Chef
58
58
  ui.info("Solving [#{cookbooks.join(', ')}] in #{environment} environment")
59
59
  solution = solve_cookbooks(environment, cookbooks)
60
60
  solution.sort.each do |name, cb|
61
- msg("#{name} #{cb.version}")
61
+ # Newer Chef doesn't auto-inflate the object.
62
+ version = if cb.is_a?(Hash)
63
+ cb['version']
64
+ else
65
+ cb.version
66
+ end
67
+ msg("#{name} #{version}")
62
68
  end
63
69
  end
64
70
 
@@ -15,5 +15,5 @@
15
15
  #
16
16
 
17
17
  module KnifeSolve
18
- VERSION = '1.1.0'
18
+ VERSION = '1.1.1'
19
19
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-solve
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Noah Kantrowitz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-09 00:00:00.000000000 Z
11
+ date: 2016-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef
@@ -133,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
133
133
  version: '0'
134
134
  requirements: []
135
135
  rubyforge_project:
136
- rubygems_version: 2.4.8
136
+ rubygems_version: 2.5.2
137
137
  signing_key:
138
138
  specification_version: 4
139
139
  summary: A knife plugin to display cookbook version solutions.