chef 15.7.31 → 15.7.32

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: 9738163041b95edf75281064715ff14a4cfea12319d127190eb5cb7d13a3e83e
4
- data.tar.gz: 172082bd04e074990f689e14c90dd487597c4199ddaba6e398dff2fab5acb257
3
+ metadata.gz: 4b3ebb04ffde602265dce9ac87318e3b8e2f7a68a0f6e23a66622c8f929a0e16
4
+ data.tar.gz: 7bb9217015f5ba3d3ff4dc351e30f840fba861c237e6d113c1eb23c425cab46c
5
5
  SHA512:
6
- metadata.gz: 445f03e0685732c82e8a613f7e577fcfed29df04c885ba665a931b1029fb2c1deef6405a63f8733ad3d47c0fa37a6afb92e6ee7de4bd04923fc9de714a925cd2
7
- data.tar.gz: 6a1ea9a187c85f0f956663a43988c450cf59a8a2f72a19bf780840fef30f58cb2bb2e8262e7d3b848560c62c32e0124efb3c5666c8fdaf472bec7d9adadee3f5
6
+ metadata.gz: f01aae84235878b6145b2acf34c187696549150594d879abddc32cea95e5e0cfa144f500c55dfd50126206d9bcd7a35b5359fb9ef68ce4bd0b69033acc56e9e1
7
+ data.tar.gz: d95315b5cc3361acf54d7cd274f6ec27392667244c58b205b5e768433a95f26f354b44dd7683edef131be2d818b17921f0caf66dc2ee76714556e1ae0fd89b68
@@ -82,7 +82,7 @@ class Chef
82
82
  end
83
83
 
84
84
  def load
85
- Chef::Log.warn "Chef::Cookbook::CookbookVersionLoader's load method is deprecated. Please use load! instead."
85
+ Chef.deprecated(:internal_api, "Chef::Cookbook::CookbookVersionLoader's load method is deprecated. Please use load! instead.")
86
86
  metadata # force lazy evaluation to occur
87
87
 
88
88
  # re-raise any exception that occurred when reading the metadata
@@ -93,7 +93,7 @@ class Chef
93
93
  remove_ignored_files
94
94
 
95
95
  if empty?
96
- raise Exceptions::CookbookNotFoundInRepo, "The directory #{cookbook_path} does not contain a cookbook"
96
+ Chef::Log.warn "Found a directory #{cookbook_name} in the cookbook path, but it contains no cookbook files. skipping."
97
97
  end
98
98
 
99
99
  cookbook_settings
@@ -47,7 +47,7 @@ class Chef
47
47
 
48
48
  def upload_cookbooks
49
49
  # Syntax Check
50
- validate_cookbooks
50
+ validate_cookbooks unless opts[:skip_syntax_check]
51
51
  # generate checksums of cookbook files and create a sandbox
52
52
  checksum_files = {}
53
53
  cookbooks.each do |cb|
data/lib/chef/version.rb CHANGED
@@ -23,7 +23,7 @@ require_relative "version_string"
23
23
 
24
24
  class Chef
25
25
  CHEF_ROOT = File.expand_path("../..", __FILE__)
26
- VERSION = Chef::VersionString.new("15.7.31")
26
+ VERSION = Chef::VersionString.new("15.7.32")
27
27
  end
28
28
 
29
29
  #
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # Author:: Daniel DeLeo (<dan@chef.io>)
3
- # Copyright:: Copyright 2014-2018, Chef Software Inc.
3
+ # Copyright:: Copyright 2014-2020, Chef Software Inc.
4
4
  # License:: Apache License, Version 2.0
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -124,8 +124,9 @@ describe Chef::Cookbook::CookbookVersionLoader do
124
124
  expect { cookbook_loader.load! }.to raise_error(Chef::Exceptions::CookbookNotFoundInRepo)
125
125
  end
126
126
 
127
- it "gives deprecation warning called with #load and raise error for Cookbook not found" do
128
- expect { cookbook_loader.load }.to raise_error(Chef::Exceptions::CookbookNotFoundInRepo)
127
+ it "gives deprecation warning called with #load" do
128
+ Chef::Config[:treat_deprecation_warnings_as_errors] = false
129
+ cookbook_loader.load
129
130
  end
130
131
 
131
132
  end
@@ -149,6 +150,7 @@ describe Chef::Cookbook::CookbookVersionLoader do
149
150
  end
150
151
 
151
152
  it "gives deprecation warning to us load! when called with #load and raises error" do
153
+ Chef::Config[:treat_deprecation_warnings_as_errors] = false
152
154
  expect { cookbook_loader.load }.to raise_error("THIS METADATA HAS A BUG")
153
155
  end
154
156
 
@@ -181,6 +183,7 @@ describe Chef::Cookbook::CookbookVersionLoader do
181
183
  end
182
184
 
183
185
  it "gives deprecation warning to use load! method when called with #load and raises error for invalid metadata" do
186
+ Chef::Config[:treat_deprecation_warnings_as_errors] = false
184
187
  expect { cookbook_loader.load }.to raise_error(Chef::Exceptions::MetadataNotValid, error_message)
185
188
  end
186
189
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef
3
3
  version: !ruby/object:Gem::Version
4
- version: 15.7.31
4
+ version: 15.7.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Jacob
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-24 00:00:00.000000000 Z
11
+ date: 2020-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef-config
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 15.7.31
19
+ version: 15.7.32
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 15.7.31
26
+ version: 15.7.32
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: chef-utils
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 15.7.31
33
+ version: 15.7.32
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 15.7.31
40
+ version: 15.7.32
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: train-core
43
43
  requirement: !ruby/object:Gem::Requirement