sensu-settings 5.0.0 → 5.0.1

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: 945f0d180df7cf835f3fd0e94a998c7112a9f9f8
4
- data.tar.gz: 51f3037a8a53f66dc1e1f91a2d25cabd15aacd15
3
+ metadata.gz: 365f93ccdb13c600eb978fd62feae6253b2b4647
4
+ data.tar.gz: bbaba4c2380b990a7d36eac82b0f8f5d4f7b18e0
5
5
  SHA512:
6
- metadata.gz: 7b4bf57d1d696f63120641a88f26691491648fccab35dffe7f88cc558e7dd61ff97c6ebdcb2586ae25944e4fbe23f3eb8c6c40c5e0b112214e0d089c2d21b9ff
7
- data.tar.gz: 742dc56ea7fcd14fc57a6389bd2f9f09aa88af495aa4f38084d0244bc9be7498aaf6728a7f300cd593bcbbe11a46f409fa32714a77f2c7049b9a27363cb635eb
6
+ metadata.gz: ed41c6a0c689f47259cd2d446225f913b2302c56a3a6f077880c978cb0983deca7b22a45edae2119d2cb9662b7dcd67050d38ae499eaa3ef745cb3ce01dcecc3
7
+ data.tar.gz: a79fd4c4779b0ec8bba923d41b6049f93c28205d4eba8ddf9bf3ab523d6ff1d74e52802f7903e6fe00edbc09abc4c6d4f58e7634af24fe8ac16c55daeb676bf7
@@ -50,7 +50,7 @@ module Sensu
50
50
  invalid(check, "check publish must be boolean")
51
51
  unless check[:publish] == false
52
52
  (must_be_an_integer(check[:interval]) && check[:interval] > 0) ||
53
- invalid(check, "check interval must be an integer")
53
+ invalid(check, "check interval must be an integer greater than 0")
54
54
  end
55
55
  must_be_boolean_if_set(check[:standalone]) ||
56
56
  invalid(check, "check standalone must be boolean")
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "sensu-settings"
5
- spec.version = "5.0.0"
5
+ spec.version = "5.0.1"
6
6
  spec.authors = ["Sean Porter"]
7
7
  spec.email = ["portertech@gmail.com"]
8
8
  spec.summary = "The Sensu settings library, loader and validator"
data/spec/loader_spec.rb CHANGED
@@ -102,7 +102,7 @@ describe "Sensu::Settings::Loader" do
102
102
  reasons = failures.map do |failure|
103
103
  failure[:message]
104
104
  end
105
- expect(reasons).to include("check interval must be an integer")
105
+ expect(reasons).to include("check interval must be an integer greater than 0")
106
106
  end
107
107
 
108
108
  it "can attempt to load settings from a nonexistent file" do
@@ -104,7 +104,7 @@ describe "Sensu::Settings::Validator" do
104
104
  end
105
105
  expect(reasons).to include("check name cannot contain spaces or special characters")
106
106
  expect(reasons).to include("either check command or extension must be set")
107
- expect(reasons).to include("check interval must be an integer")
107
+ expect(reasons).to include("check interval must be an integer greater than 0")
108
108
  expect(reasons).to include("check subscribers must be an array")
109
109
  expect(reasons.size).to eq(5)
110
110
  end
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: 5.0.0
4
+ version: 5.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Porter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-17 00:00:00.000000000 Z
11
+ date: 2016-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-json