chef 12.3.0.rc.0 → 12.3.0

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: dab060d316f7e7df4ab46305e971695d6f8d7c99
4
- data.tar.gz: f09a8ffb3137bdb1ba5bfcf5bff8969537c5e502
3
+ metadata.gz: 8106caa3ebdeed124b7d48ad5c24b5e47d93a844
4
+ data.tar.gz: 3f03dcdde35ca5468590d30ed7143d3e1d922df5
5
5
  SHA512:
6
- metadata.gz: 244c89673e62ec837b467ca6be7b8846012d17b8231b29f11365ba6044e044f281c34edd9ed4e71173350a0e7472d05e111145dda831198c5921234dab6da9fe
7
- data.tar.gz: e79a4ef02c7e5bf2484f06a9bba694a1c5ea4001faa5c50de3702be3b65947a59746b665a685150cc6902ab8cbcc599b3d9ae164ade2ed5b3df81689c2f98273
6
+ metadata.gz: 3dc023f2762cc9ce0a9b54660c76181a2fb8f2f699f00f221fb8587b69185a563f924714e4167e52c4c653d20f025ca3ff7a2623fe6cd05f459a19e2b49bdbcc
7
+ data.tar.gz: 759ae4706418ac77799141829e7bb286e5e17c694bf00a20395a88463711b7e9ee2254be645f942d06b35f66f5b09a95036464ea767c2f56a068019c7607fc71
@@ -144,6 +144,7 @@ class Chef
144
144
  def configure_specinfra
145
145
  if Chef::Platform.windows?
146
146
  Specinfra.configuration.backend = :cmd
147
+ Specinfra.configuration.os = { :family => 'windows' }
147
148
  else
148
149
  Specinfra.configuration.backend = :exec
149
150
  end
@@ -25,6 +25,7 @@ class Chef
25
25
 
26
26
  # provides a node on the resource (early binding)
27
27
  def provides?(node, resource_name)
28
+ resource_name = resource_name.resource_name if resource_name.is_a?(Chef::Resource)
28
29
  node_map.get(node, resource_name)
29
30
  end
30
31
  end
@@ -47,7 +47,9 @@ class Chef
47
47
  def enabled_handlers
48
48
  @enabled_handlers ||=
49
49
  providers.select do |klass|
50
- klass.provides?(node, resource.resource_name)
50
+ # NB: this is different from resource_resolver which must pass a resource_name
51
+ # FIXME: deprecate this and normalize on passing resource_name here
52
+ klass.provides?(node, resource)
51
53
  end.sort {|a,b| a.to_s <=> b.to_s }
52
54
  end
53
55
 
data/lib/chef/version.rb CHANGED
@@ -17,7 +17,7 @@
17
17
 
18
18
  class Chef
19
19
  CHEF_ROOT = File.dirname(File.expand_path(File.dirname(__FILE__)))
20
- VERSION = '12.3.0.rc.0'
20
+ VERSION = '12.3.0'
21
21
  end
22
22
 
23
23
  #
@@ -46,6 +46,10 @@ describe Chef::ProviderResolver do
46
46
 
47
47
  let(:resource) { double(Chef::Resource, provider: provider, resource_name: resource_name) }
48
48
 
49
+ before do
50
+ allow(resource).to receive(:is_a?).with(Chef::Resource).and_return(true)
51
+ end
52
+
49
53
  describe "resolving service resource" do
50
54
  def stub_service_providers(*services)
51
55
  services ||= []
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.3.0.rc.0
4
+ version: 12.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Jacob
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-23 00:00:00.000000000 Z
11
+ date: 2015-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mixlib-config
@@ -2040,12 +2040,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
2040
2040
  version: 2.0.0
2041
2041
  required_rubygems_version: !ruby/object:Gem::Requirement
2042
2042
  requirements:
2043
- - - ">"
2043
+ - - ">="
2044
2044
  - !ruby/object:Gem::Version
2045
- version: 1.3.1
2045
+ version: '0'
2046
2046
  requirements: []
2047
2047
  rubyforge_project:
2048
- rubygems_version: 2.4.5
2048
+ rubygems_version: 2.4.4
2049
2049
  signing_key:
2050
2050
  specification_version: 4
2051
2051
  summary: A systems integration framework, built to bring the benefits of configuration