poise-service 1.0.0 → 1.0.1

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: 92c813d92c8af7d4c18ec212f0c9539a535abc42
4
- data.tar.gz: 655fd28e30903b194a92ca42d68a3c810bf132fe
3
+ metadata.gz: 19ac4e7234269bdbef35c490936ccf490ac35617
4
+ data.tar.gz: 142369bfa25095a9f383fb011608481fc861a6d8
5
5
  SHA512:
6
- metadata.gz: b3d0af699173014347e5518144b66ea8d89570cb0039c989b3a9ad0fb43612bc72b5c9516ab89e61e9f0f6af8bba92c4a3a29565649cccf74f8b4d48557b7c44
7
- data.tar.gz: 5b59948c6fe65b14f7904a1c2783a977e31ec3f2fb46b273c1ee3d625ae2eaabec74693da9420b4e0c428b79d0d317045a5c18d98f8495f6203efe2f76a23e80
6
+ metadata.gz: 6da85709d79589eb70e2e3483473cce141231f1b836ff8a6e45b172386360f79ec1c1eda1a60978a6938ddb99c7667d4127bcd8e5f9efd8048dcaeb125827070
7
+ data.tar.gz: e389aa918481ec598c1cbcac9bbbff271945b635809eb849fa869642c01c51fce643067555f7597ffe01b264c8f86541c896a08c6f95aacf665a3c15aff9cec9
data/.gitignore CHANGED
@@ -7,4 +7,4 @@ Berksfile.lock
7
7
  coverage/
8
8
  .yardoc/
9
9
  doc/
10
-
10
+ pkg/
data/CHANGELOG.md ADDED
@@ -0,0 +1,9 @@
1
+ # Changelog
2
+
3
+ ## v1.0.1
4
+
5
+ * Don't use a shared, mutable default value for `#environment`.
6
+
7
+ ## v1.0.0
8
+
9
+ * Initial release!
data/README.md CHANGED
@@ -355,7 +355,7 @@ end
355
355
  ```
356
356
 
357
357
  See [the poise_service_test_mixin resource](test/cookbooks/poise-service_test/resources/mixin.rb)
358
- and [provider](test/cookbooks/poise-service_test/resources/mixin.rb) for
358
+ and [provider](test/cookbooks/poise-service_test/providers/mixin.rb) for
359
359
  examples of using `ServiceMixin` in an LWRP.
360
360
 
361
361
  ## Sponsors
@@ -16,6 +16,7 @@
16
16
 
17
17
  require 'etc'
18
18
 
19
+ require 'chef/mash'
19
20
  require 'chef/resource'
20
21
  require 'poise'
21
22
 
@@ -71,7 +72,7 @@ module PoiseService
71
72
  # @!attribute environment
72
73
  # Environment variables for the service.
73
74
  # @return [Hash]
74
- attribute(:environment, kind_of: Hash, default: {})
75
+ attribute(:environment, kind_of: Hash, default: lazy { Mash.new })
75
76
  # @!attribute stop_signal
76
77
  # Signal to use to stop the service. Some systems will fall back to
77
78
  # KILL if this signal fails to stop the process. Defaults to TERM.
@@ -14,6 +14,7 @@
14
14
  # limitations under the License.
15
15
  #
16
16
 
17
+
17
18
  module PoiseService
18
- VERSION = '1.0.0'
19
+ VERSION = '1.0.1'
19
20
  end
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.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Noah Kantrowitz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-22 00:00:00.000000000 Z
11
+ date: 2015-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: halite
@@ -79,6 +79,7 @@ files:
79
79
  - ".travis.yml"
80
80
  - ".yardopts"
81
81
  - Berksfile
82
+ - CHANGELOG.md
82
83
  - Gemfile
83
84
  - LICENSE
84
85
  - README.md