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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ac7f083e3a7151c2bec0a9814910fc40c6f489cc
4
- data.tar.gz: 18bd44c1fa9158c079a218ad31881844955a8ef8
3
+ metadata.gz: 32b0a4cfa4359b634fa5ccf275c59a40edbbec79
4
+ data.tar.gz: bdbcd9be0082ae4e1f85e786ae6ed34e4d7e3cee
5
5
  SHA512:
6
- metadata.gz: b9753cf338608265e2075c4435f237cd8bf98985179a48cd38b0a52c4de26107b2efc0bb88fd0bb0dc2cb4bc3b7ddf60a39d09e6e7767a74528d2bb3d8bf63f4
7
- data.tar.gz: 1d0c0b72917172cd9e04b78c923e9cbd43309701a84e0f726e5b91e0d04d3e92af186b8e216ce5323d54db844be7278c7064655cbc16ec2037c16f606d7e7136
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}|[\w\.-]+)\z/, check[:source]) ||
42
- invalid(check, "check source cannot contain spaces or special characters")
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "sensu-settings"
5
- spec.version = "10.11.0"
5
+ spec.version = "10.12.0"
6
6
  spec.authors = ["Sean Porter"]
7
7
  spec.email = ["portertech@gmail.com"]
8
8
  spec.summary = "The Sensu settings library, loader and validator"
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.11.0
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-01 00:00:00.000000000 Z
11
+ date: 2017-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-json