knife-spork 1.0.10 → 1.0.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,17 @@
1
+ ## 1.0.12 (22nd November, 2012)
2
+ Bugfixes:
3
+
4
+ - Fix bug where cookbook dependancy loading broke in older chef client versions as a result of a fix in 1.0.10
5
+
6
+ ## 1.0.11 (22nd November, 2012)
7
+
8
+ Yanked
9
+
1
10
  ## 1.0.10 (22nd November, 2012)
2
11
  Bugfixes:
3
12
 
4
13
  - Load all cookbook versions from remote server when checking dependencies (thanks to gmcmillan)
14
+ - Fix case where git plugin would update a previously loaded cookbook, resulting in out of data metadata being used. (thanks to zsol)
5
15
 
6
16
  ## 1.0.9 (28th October, 2012)
7
17
  Features:
@@ -2,7 +2,7 @@ $:.push File.expand_path('../lib', __FILE__)
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = 'knife-spork'
5
- gem.version = '1.0.10'
5
+ gem.version = '1.0.12'
6
6
  gem.authors = ["Jon Cowie"]
7
7
  gem.email = 'jonlives@gmail.com'
8
8
  gem.homepage = 'https://github.com/jonlives/knife-spork'
@@ -108,7 +108,11 @@ module KnifeSpork
108
108
  end
109
109
 
110
110
  def server_side_cookbooks(cookbook_name, version)
111
- @server_side_cookbooks ||= Chef::CookbookVersion.list_all_versions
111
+ if Chef::CookbookVersion.respond_to?(:list_all_versions)
112
+ @server_side_cookbooks ||= Chef::CookbookVersion.list_all_versions
113
+ else
114
+ @server_side_cookbooks ||= Chef::CookbookVersion.list
115
+ end
112
116
 
113
117
  hash = @server_side_cookbooks[cookbook_name]
114
118
  hash && hash['versions'] && hash['versions'].any?{ |v| Chef::VersionConstraint.new(version).include?(v['version']) }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-spork
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.10
4
+ version: 1.0.12
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: