sensu-settings 9.2.2 → 9.3.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: e2314280ac8daa5b71f0db6f7cac9f5ed92d7d72
4
- data.tar.gz: eda3885e2270d9b6637e520f33bd4a59c030b2c5
3
+ metadata.gz: c4404b91a440da9acdb694c506073a3702ef40ca
4
+ data.tar.gz: d4aac5f73fef35b3147e51ad6cdab419f506994f
5
5
  SHA512:
6
- metadata.gz: 5085a2b545881de199bb5877a29c0f2d29e79fe5110e9ed6ec3f0d3a468b637ed9fc80d2fbbf82a859a9b085b485f73fd46bffc29e968f58b05d6770bdb731bb
7
- data.tar.gz: 0903d6116eec7051e0728878ed4d78c12349a4e07c4f5f784b68e67cad340e71d4b9f468e9e9ca449676b5f4badf572144c968e091dc01b5dc2bbc0206ac5463
6
+ metadata.gz: cb3cd3de879fd8c2694922b92667a938e03b4ee9e5c5a77d762a335fe98cada55c5411a080097297d947387b6662a71f8a98f2bbc059924330b02ea2b83843dc
7
+ data.tar.gz: 9b019fd3ffdf115e0e56ac3cdedb76dcd06156d0f6f2921e990d6f80ccfa407d6e384892913db54fc2a3065dc2c4eb459c76efd6790805259a3e7de789085f05
@@ -80,7 +80,7 @@ module Sensu
80
80
  end
81
81
 
82
82
  # Validate check ttl.
83
- # Validates: ttl
83
+ # Validates: ttl, ttl_status
84
84
  #
85
85
  # @param check [Hash] sensu check definition.
86
86
  def validate_check_ttl(check)
@@ -90,6 +90,8 @@ module Sensu
90
90
  else
91
91
  invalid(check, "check ttl must be an integer")
92
92
  end
93
+ must_be_an_integer_if_set(check[:ttl_status]) ||
94
+ invalid(check, "check ttl_status must be an integer")
93
95
  end
94
96
 
95
97
  # Validate check aggregate.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "sensu-settings"
5
- spec.version = "9.2.2"
5
+ spec.version = "9.3.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"
@@ -20,5 +20,4 @@ Gem::Specification.new do |spec|
20
20
  spec.add_development_dependency "bundler", "~> 1.6"
21
21
  spec.add_development_dependency "rake"
22
22
  spec.add_development_dependency "rspec"
23
- spec.add_development_dependency "codeclimate-test-reporter"
24
23
  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: 9.2.2
4
+ version: 9.3.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: 2016-10-24 00:00:00.000000000 Z
11
+ date: 2016-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-json
@@ -66,20 +66,6 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: codeclimate-test-reporter
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
69
  description: The Sensu settings library, loader and validator
84
70
  email:
85
71
  - portertech@gmail.com
@@ -126,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
112
  version: '0'
127
113
  requirements: []
128
114
  rubyforge_project:
129
- rubygems_version: 2.6.6
115
+ rubygems_version: 2.6.3
130
116
  signing_key:
131
117
  specification_version: 4
132
118
  summary: The Sensu settings library, loader and validator