sensu 0.28.4 → 0.28.5

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: b6072e3c9acc34e26707916ecb39a15412ac9d6b
4
- data.tar.gz: 4684fa7e0c3b7184e3f6e86ff261ab40cee32eb9
3
+ metadata.gz: e8c11e41665106ee2bc0f82c86f592ada60c9e3f
4
+ data.tar.gz: 8ea7ac9f55323c8169514efbe38ab615c79b1243
5
5
  SHA512:
6
- metadata.gz: aecfd752576017e158a8f9e56759ebccdcbf3f11244b361b1dc26e495a7bfea25ceeccdf35f347f7c4472ff50a015c0f62cfcb14a5a532c58de888ac7ac5cde9
7
- data.tar.gz: 0759e0044dc2f52816cae0ccd29a19ddf52db86a32b4706ae9dfbc6523f2b6b793a7f5be9f7b8fedb91e5d87e38cbf56076614f109a8126f82ac5804d0fb47f2
6
+ metadata.gz: 63cbaba4b312b0a171161fdfb3f498cfb2608e96bdd2f6057ee3030a8f37473199b094ebb9b58f0b208a10a4e2699db7ab123336cb5db39ea8825a91ce62efb7
7
+ data.tar.gz: 18f1b4406bdcb565823699ec382ba50b60e65cfc524fc1df0f61af04c166e0950fb44f07a6a6b202bcea3b662171ad5c4c9dad0b9c3833b2be6f91b29d72e63d
@@ -1,3 +1,10 @@
1
+ ## 0.28.5 - 2017-03-23
2
+
3
+ ### Fixes
4
+
5
+ Fixed check `subdue` and filter `when` features when a time window spans
6
+ over `00:00:00`, crossing the day boundary.
7
+
1
8
  ## 0.28.4 - 2017-03-10
2
9
 
3
10
  ### Fixes
@@ -1,7 +1,7 @@
1
1
  module Sensu
2
2
  unless defined?(Sensu::VERSION)
3
3
  # Sensu release version.
4
- VERSION = "0.28.4".freeze
4
+ VERSION = "0.28.5".freeze
5
5
 
6
6
  # Sensu check severities.
7
7
  SEVERITIES = %w[ok warning critical unknown].freeze
@@ -294,11 +294,9 @@ module Sensu
294
294
  end_time = Time.parse(condition[:end])
295
295
  if end_time < begin_time
296
296
  if Time.now < end_time
297
- offset = begin_time.strftime("%:z")
298
- begin_time = Time.new("12:00:00 AM #{offset}")
297
+ begin_time = Time.new(*begin_time.strftime("%Y %m %d 00 00 00 %:z").split("\s"))
299
298
  else
300
- offset = end_time.strftime("%:z")
301
- end_time = Time.new("11:59:59 PM #{offset}")
299
+ end_time = Time.new(*end_time.strftime("%Y %m %d 23 59 59 %:z").split("\s"))
302
300
  end
303
301
  end
304
302
  Time.now >= begin_time && Time.now <= end_time
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.4
4
+ version: 0.28.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Porter
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2017-03-13 00:00:00.000000000 Z
12
+ date: 2017-03-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: eventmachine