poise-service 1.5.1 → 1.5.2

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: d92f4e247a88942c324c7517c7c2aeaaa2512d87
4
- data.tar.gz: 3a1d2d9965654b26c1cf05bbeb93b7ea23ba2f8e
3
+ metadata.gz: 5235bb5459804ba6a2328658f145bab7951640ee
4
+ data.tar.gz: '009a5daf57894d6dfd4c1f99fe6c5e1367108e05'
5
5
  SHA512:
6
- metadata.gz: 27d253004e27f04762c4da77ac27dc022e1757d19492de2e3db5814a51ee0d1c8949b15f9abc6021e3ac3135684e0d6622332272b2ce5bad7a282a7ba64d474d
7
- data.tar.gz: c3be8ba6054aa2eb936a58df11fcffbda41430bca46cca8e6064057599793ea51ce8118f3e7e78bb9cbf88d281739e7895bd14a13170e9940641003905149aaf
6
+ metadata.gz: cd1f516d247cbc2eb83e3e2af0d05dde25532017f2d9cbd54ecf7864eb41a02bca8b9b353953517a4df882ee29d3f7822ca8c6e825258f0d111cc99cdc3b8d4a
7
+ data.tar.gz: b7b1b4d1bb9b9f27b0a36cc322b30307ed4a744c4b7328b0afa34d5f27269cfabc2ad3de65cc074cba022a3c9a1a865e523d2899897abac51891d320beb32ad5
@@ -1,3 +1,3 @@
1
1
  ---
2
2
  #<% require 'poise_boiler' %>
3
- <%= PoiseBoiler.kitchen(platforms: %w{linux centos-5 ubuntu-16.04}, driver: 'rackspace') %>
3
+ <%= PoiseBoiler.kitchen(platforms: %w{ubuntu-12.04 ubuntu-14.04 ubuntu-16.04 centos-5 centos-6 centos-7}, driver: 'rackspace') %>
@@ -1,5 +1,10 @@
1
1
  # Poise-Service Changelog
2
2
 
3
+ ## v1.5.2
4
+
5
+ * Set `declared_type` on the mixin-created `poise_service` resource so it works
6
+ correctly with ChefSpec.
7
+
3
8
  ## v1.5.1
4
9
 
5
10
  * Fix the `sysvinit` provider on Amazon Linux under Chef 13.
@@ -167,6 +167,7 @@ module PoiseService
167
167
  def service_resource
168
168
  @service_resource ||= PoiseService::Resources::PoiseService::Resource.new(new_resource.name, run_context).tap do |r|
169
169
  # Set some defaults.
170
+ r.declared_type = :poise_service
170
171
  r.enclosing_provider = self
171
172
  r.source_line = new_resource.source_line
172
173
  r.service_name(new_resource.service_name)
@@ -141,6 +141,7 @@ module PoiseService
141
141
  # restart actions.
142
142
  def service_resource
143
143
  @service_resource ||= Chef::Resource::Service.new(new_resource.service_name, run_context).tap do |r|
144
+ r.declared_type = :service
144
145
  r.enclosing_provider = self
145
146
  r.source_line = new_resource.source_line
146
147
  r.supports(status: true, restart: true, reload: true)
@@ -16,5 +16,5 @@
16
16
 
17
17
 
18
18
  module PoiseService
19
- VERSION = '1.5.1'
19
+ VERSION = '1.5.2'
20
20
  end
@@ -150,6 +150,7 @@ describe PoiseService::ServiceMixin::Provider do
150
150
  allow(new_resource).to receive(:service_name).and_return('test')
151
151
  fake_poise_service = double('poise_service')
152
152
  expect(PoiseService::Resources::PoiseService::Resource).to receive(:new).with('test', nil).and_return(fake_poise_service)
153
+ expect(fake_poise_service).to receive(:declared_type=).with(:poise_service)
153
154
  expect(fake_poise_service).to receive(:enclosing_provider=).with(subject)
154
155
  expect(fake_poise_service).to receive(:source_line=).with('path.rb:1')
155
156
  expect(fake_poise_service).to receive(:service_name).with('test')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: poise-service
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Noah Kantrowitz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-03 00:00:00.000000000 Z
11
+ date: 2017-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef