chef 12.3.0.rc.0-x86-mingw32 → 12.3.0-x86-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: 91f2fc1f5461db9f00c5bb861ba643c8ecba728e
4
- data.tar.gz: f520f5bbb0057bec905346f923dc3f6cabab4780
3
+ metadata.gz: eb639d2c2583d9b19124978c7fab0ba163fa9cfa
4
+ data.tar.gz: c4d50ed83d16869edea7ef90ab02e1b36977bc24
5
5
  SHA512:
6
- metadata.gz: 5fdc2cbedacc39566ce05e9b4b448f992d7766eda5f5585d075437987db7058a675147d689a624c1b8f50416740c21643393713ce1fc06ebef0e1ca177969083
7
- data.tar.gz: 010f4fae462cdeaf79d1bbbbd82bd7d01d19af19af6880b1e8d607ed8aae8bd44d6fa1ea9bfd99dd9a41a052ce1c05c4c7aa2dbaab55035925d3affdd807c0f4
6
+ metadata.gz: df53fd500a09615e01dd3267a301c00b463232aeea19a4640623054dee8732fa3770861f2a9259f7fad9807ae57d897033a562fd2db584aee38c66636fde6d15
7
+ data.tar.gz: 4db10cb9ac723b9dee1a7c210423256aaa69401f7c09a8706fb2a0f14af52ee1d1122f0b031718848f102a91e04d6ecb5fa0032d1f808fb395c7282004af4929
@@ -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
 
@@ -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: x86-mingw32
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
@@ -2215,12 +2215,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
2215
2215
  version: 2.0.0
2216
2216
  required_rubygems_version: !ruby/object:Gem::Requirement
2217
2217
  requirements:
2218
- - - ">"
2218
+ - - ">="
2219
2219
  - !ruby/object:Gem::Version
2220
- version: 1.3.1
2220
+ version: '0'
2221
2221
  requirements: []
2222
2222
  rubyforge_project:
2223
- rubygems_version: 2.4.5
2223
+ rubygems_version: 2.4.4
2224
2224
  signing_key:
2225
2225
  specification_version: 4
2226
2226
  summary: A systems integration framework, built to bring the benefits of configuration