chef-handler-riemann 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/chef/handler/riemann.rb +5 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fc3804398913092c87c0c48205ce742f2e46f09b
4
- data.tar.gz: ca10b6bb28095a395871eaca3dfd6ce1bd49a8b5
3
+ metadata.gz: eb89bdce7e2f557a35f7bbb180b98ba08075a887
4
+ data.tar.gz: c1c324b3afff459f69c6b5dbb890f50da3a933f8
5
5
  SHA512:
6
- metadata.gz: e01c327d8232ddee3816cd73946b05540f015aff9ff29d43fc43d1f36c5e2cd101a7dffd5177b1c34971e44a8bf66c3dff988121def6abb58ef9b13f69fb6ed3
7
- data.tar.gz: cf80b8a484711e6218be5896a96a5497bc3ae547c73b25a36915545b8277944b0cd72c5504a46866a9544136e419f83748f426a8ac976ecb7fa60a48af7d2ac0
6
+ metadata.gz: 77f04025058308c79859c9c4fadd5041ba877bf79a24bfd926d970a378eb45cbc6f5406d5bacec3dcae86b96e989dcd494a5d9e225b25ddcb10902a89017ca1c
7
+ data.tar.gz: d048fe976fd2cbffdd42b5d3046fb20316ff5545bbd97cd4686e9bff1478e3fd8603b41fa9288fa23baf069ea7139401d8ea2971a9f6ba8647076ab0a342b3a7
@@ -7,10 +7,13 @@ class Chef
7
7
  attr_writer :host, :port, :ttl_running, :ttl_finished, :timeout
8
8
 
9
9
  def initialize(options={})
10
+ # Some versions of Chef had issues as chef-client cookbook passes it with string indicies
11
+ options = Mash.from_hash(options)
12
+
10
13
  @host = options[:host] || 'localhost'
11
14
  @port = options[:port] || 5555
12
- @ttl_running = options[:ttl] || 600
13
- @ttl_finished = options[:ttl] || 3600 # seems reasonable given chef runs every 30 mins by default
15
+ @ttl_running = options[:ttl_running] || 600
16
+ @ttl_finished = options[:ttl_finished] || 3600 # seems reasonable given chef runs every 30 mins by default
14
17
  @timeout = options[:timeout] || 5
15
18
  end
16
19
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-handler-riemann
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Forrow