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 +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/sensu/constants.rb +1 -1
- data/lib/sensu/utilities.rb +2 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8c11e41665106ee2bc0f82c86f592ada60c9e3f
|
4
|
+
data.tar.gz: 8ea7ac9f55323c8169514efbe38ab615c79b1243
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63cbaba4b312b0a171161fdfb3f498cfb2608e96bdd2f6057ee3030a8f37473199b094ebb9b58f0b208a10a4e2699db7ab123336cb5db39ea8825a91ce62efb7
|
7
|
+
data.tar.gz: 18f1b4406bdcb565823699ec382ba50b60e65cfc524fc1df0f61af04c166e0950fb44f07a6a6b202bcea3b662171ad5c4c9dad0b9c3833b2be6f91b29d72e63d
|
data/CHANGELOG.md
CHANGED
data/lib/sensu/constants.rb
CHANGED
data/lib/sensu/utilities.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
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
|
+
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-
|
12
|
+
date: 2017-03-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: eventmachine
|