hq-check-drill 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hq/check-drill/script.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00d53145e57f006385a3428b77b68e732e4bdf26
|
4
|
+
data.tar.gz: c3c632d12e616a06d9123aba1aee1930f8f62f3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4917b2e508c8b147f695a8c274adc0728b033bd80062c4b6e6ca60c531189dd5dbe7e0797e52313068f1231f32b07579f546e5f2145dcef9d057232b82b8f5fb
|
7
|
+
data.tar.gz: 0fe9ef20291d9ec015c70f8738745eb2326ffff26c32e802a4384fd96996aa1928f962fc7b902b9d077b24b1f0efd8ac8104d7dafeb633feeb1fbb98f4386b50
|
@@ -43,7 +43,7 @@ class Script < Tools::CheckScript
|
|
43
43
|
|
44
44
|
def perform_checks
|
45
45
|
|
46
|
-
now = Time.now
|
46
|
+
now = Time.now.utc
|
47
47
|
|
48
48
|
@drill_elems.each do
|
49
49
|
|drill_elem|
|
@@ -52,7 +52,7 @@ class Script < Tools::CheckScript
|
|
52
52
|
|match_elem|
|
53
53
|
|
54
54
|
current = now.strftime match_elem["template"]
|
55
|
-
regex = Regexp.new match_elem["regex"]
|
55
|
+
regex = Regexp.new "^(?:#{match_elem["regex"]})$"
|
56
56
|
|
57
57
|
current =~ regex
|
58
58
|
|