chef 15.7.31-universal-mingw32 → 15.7.32-universal-mingw32

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: 5b8b075d86eb6f5b5cf43e62d2c4c8456dc2c44516575decc4b53fa5393dc847
4
- data.tar.gz: d6b2c0dd472de8732def6f97c1f9a85643ceded2b2616397c9540632547c2b5b
3
+ metadata.gz: a01732ccd6ccd4ee0e24d13d7c4d498ef806753f0c1678dea6675a16157dc695
4
+ data.tar.gz: cd86a925bab8bd09c3baf8e5164fe449602aeeb733e1456f85b877de80f29580
5
5
  SHA512:
6
- metadata.gz: f9975debc9e64e8b835304ad5ab94b24943f8a9f45e67be6c053da09e6085032677b26a2861ff9937933aeffb635a4f601f1d3bf989506cf0ef25f45790ba0d4
7
- data.tar.gz: bac4efc3ee410b75f2e6345badb9bb39314692f052333b5620d4ed1dd688d156f8da8fe3a5abe8cf171397c3d89bf439a0996de8faa4a04843b2ba7cf9fcf3dd
6
+ metadata.gz: 2ac015160f9c4c567e42166fb441e3ace747cc8490a47b16d54b523f600525641f2e3bf24b6d85a4351a4dcc3ecccd17e70f1301312393067ea079e57af7ff2c
7
+ data.tar.gz: e1123f5fc5ba3f2b459cafe2f829aac2d7220896c04674324a8015837b615a722c87c0862ac52f8947d7c17376db741ea0e110fb4f6793f9526c8312a821487d
@@ -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|
@@ -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: universal-mingw32
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