chef 12.19.33-universal-mingw32 → 12.19.36-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
  SHA1:
3
- metadata.gz: 4898471f050815763755f504f5fa81e26e6ccbbc
4
- data.tar.gz: 4f1c062eb28f29d55a9abc0bdb5b73183c591f8e
3
+ metadata.gz: 5fc9e425a52821d2132f9c35e148ba201e6f291d
4
+ data.tar.gz: 2cafadfbeea5999d646984789a267905500149ab
5
5
  SHA512:
6
- metadata.gz: d36bd4f3ac9d3fdb990d155d7c422742847be0ea7d3fb7f99b82c39ad2ff6f99c69b9cff2f13f43c6fb97bcf467a6c2dc6e999464b3444cc3259fc4036cf3720
7
- data.tar.gz: 37b04937e01f29bb24ff90ed4f65c2192c2c33eadbd95b2982a3ac753a07f20bfb4ed7db277f42602399eba87ba3595911e2be798a03742a298e09067b924e9d
6
+ metadata.gz: 627595d883912ca598e30974e799525f7a8db3a750a8c8892f759a04857b48ad0d0bf7f60b9dd59f29fa7adf14bdcaac91f63e6c7c63f740578a220b21d24b66
7
+ data.tar.gz: 99012e152a7e361bb801206988469a19eb4a0769758e079754a123d2e08d295a5ab77e0ec99f383f5bc76dede3f116f1ca51febd79e64656ffd51e76be760568
data/VERSION CHANGED
@@ -1 +1 @@
1
- 12.19.33
1
+ 12.19.36
@@ -23,6 +23,7 @@ require "chef/log"
23
23
  require "chef/file_cache"
24
24
  require "chef/platform"
25
25
  require "chef/decorator/lazy_array"
26
+ require "shellwords"
26
27
 
27
28
  class Chef
28
29
  class Provider
@@ -54,10 +55,7 @@ class Chef
54
55
 
55
56
  def options
56
57
  if new_resource.options.is_a?(String)
57
- # XXX: needs to handle double quotes, single quotes, nested quotes, etc and probably act
58
- # more like a space-separated "C"SV file -- although users can fix this just by passing in
59
- # a correctly pre-split Array.
60
- new_resource.options.split(" ")
58
+ new_resource.options.shellsplit
61
59
  else
62
60
  new_resource.options
63
61
  end
@@ -21,7 +21,7 @@
21
21
 
22
22
  class Chef
23
23
  CHEF_ROOT = File.expand_path("../..", __FILE__)
24
- VERSION = "12.19.33"
24
+ VERSION = "12.19.36"
25
25
  end
26
26
 
27
27
  #
@@ -291,6 +291,16 @@ mpg123 1.12.1-0ubuntu1
291
291
 
292
292
  @provider.install_package(["irssi"], ["0.8.12-7"])
293
293
  end
294
+
295
+ it "should run apt-get install with the package name and quotes options if specified" do
296
+ expect(@provider).to receive(:shell_out!).with(
297
+ "apt-get", "-q", "-y", "--force-yes", "-o", "Dpkg::Options::=--force-confdef", "-o", "Dpkg::Options::=--force-confnew", "install", "irssi=0.8.12-7",
298
+ :env => { "DEBIAN_FRONTEND" => "noninteractive" },
299
+ :timeout => @timeout
300
+ )
301
+ @new_resource.options('--force-yes -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confnew"')
302
+ @provider.install_package(["irssi"], ["0.8.12-7"])
303
+ end
294
304
  end
295
305
 
296
306
  describe resource_klass, "upgrade_package" do
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: 12.19.33
4
+ version: 12.19.36
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: 2017-02-16 00:00:00.000000000 Z
11
+ date: 2017-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef-config
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 12.19.33
19
+ version: 12.19.36
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: 12.19.33
26
+ version: 12.19.36
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mixlib-cli
29
29
  requirement: !ruby/object:Gem::Requirement