sensu 0.12.4 → 0.12.5

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.12.5 - 2014-01-20
2
+
3
+ ### Other
4
+
5
+ Fixed handler severity filtering, check history is an array of strings.
6
+
1
7
  ## 0.12.4 - 2014-01-17
2
8
 
3
9
  ### Other
@@ -1,6 +1,6 @@
1
1
  module Sensu
2
2
  unless defined?(Sensu::VERSION)
3
- VERSION = '0.12.4'
3
+ VERSION = '0.12.5'
4
4
 
5
5
  LOG_LEVELS = [:debug, :info, :warn, :error, :fatal]
6
6
 
data/lib/sensu/server.rb CHANGED
@@ -216,10 +216,10 @@ module Sensu
216
216
  handle = case event[:action]
217
217
  when :resolve
218
218
  event[:check][:history].reverse[1..-1].any? do |status|
219
- if status == 0
219
+ if status.to_i == 0
220
220
  break
221
221
  end
222
- severity = SEVERITIES[status] || 'unknown'
222
+ severity = SEVERITIES[status.to_i] || 'unknown'
223
223
  handler[:severities].include?(severity)
224
224
  end
225
225
  else
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu
3
3
  version: !ruby/object:Gem::Version
4
- hash: 39
4
+ hash: 37
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 12
9
- - 4
10
- version: 0.12.4
9
+ - 5
10
+ version: 0.12.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sean Porter
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2014-01-17 00:00:00 -08:00
19
+ date: 2014-01-20 00:00:00 -08:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency