sensu-settings 10.11.0 → 10.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sensu/settings/validators/check.rb +2 -2
- data/sensu-settings.gemspec +1 -1
- 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: 32b0a4cfa4359b634fa5ccf275c59a40edbbec79
|
4
|
+
data.tar.gz: bdbcd9be0082ae4e1f85e786ae6ed34e4d7e3cee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f46ae9ad71508573c8ef1e5012162124165f2eca4f4527aaac637b7cc2d0d8532b83757775d61d4b58853d4cc1a03da81e689f42379e85e3479a5a6378d68ae
|
7
|
+
data.tar.gz: 94f1e7a8bbdeb35e0684439cf164229dfc36b8c00de9d89ed70a0b20425d245d5bb5aa6143394c4bb44d9cc99a352c553d0844ad46f392d680be2af7448a2aa6
|
@@ -38,8 +38,8 @@ module Sensu
|
|
38
38
|
# @param check [Hash] sensu check definition.
|
39
39
|
def validate_check_source(check)
|
40
40
|
if is_a_string?(check[:source])
|
41
|
-
must_match_regex(/\A([:]{3}[\w\|\.-]+[:]{3}
|
42
|
-
invalid(check, "check source cannot contain spaces or
|
41
|
+
must_match_regex(/\A[\w\.-]*([:]{3}[\w\|\.-]+[:]{3}[\w\.-]*|[\w\.-]+)\z/, check[:source]) ||
|
42
|
+
invalid(check, "check source cannot contain spaces, special characters, or invalid tokens")
|
43
43
|
else
|
44
44
|
invalid(check, "check source must be a string")
|
45
45
|
end
|
data/sensu-settings.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-settings
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 10.
|
4
|
+
version: 10.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Porter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-12-
|
11
|
+
date: 2017-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sensu-json
|