sensu-settings 1.4.0 → 1.5.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/api.rb +1 -1
- data/sensu-settings.gemspec +1 -1
- data/spec/validator_spec.rb +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: 5e72fe5365f84e168ecba9e968e10144f82b5e0c
|
4
|
+
data.tar.gz: 751ba3579d6607a39680169b843a1d28712b3e18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a0b99410152970c6c8c06ce2a94067a43fb5df60da73f9dd14f9f2ce25f758f8eb4042e4cb2e461df671568ed3791e1120d76c06c17012242084551c9f811d9
|
7
|
+
data.tar.gz: cb15d29086c2a50c438f0114406be939b5e378dcfe371c0a5b5905613e2aa36606ea0e0bab07db2649ab661a8c2b8cb60606194f6780abe2c75a78deef4a34df
|
@@ -21,7 +21,7 @@ module Sensu
|
|
21
21
|
# @param api [Hash] sensu api definition.
|
22
22
|
def validate_api(api)
|
23
23
|
if is_a_hash?(api)
|
24
|
-
|
24
|
+
must_be_an_integer_if_set(api[:port]) ||
|
25
25
|
invalid(api, "api port must be an integer")
|
26
26
|
must_be_a_string_if_set(api[:bind]) ||
|
27
27
|
invalid(api, "api bind must be a string")
|
data/sensu-settings.gemspec
CHANGED
data/spec/validator_spec.rb
CHANGED
@@ -600,7 +600,7 @@ describe "Sensu::Settings::Validator" do
|
|
600
600
|
expect(@validator.reset).to eq(1)
|
601
601
|
api = {}
|
602
602
|
@validator.validate_api(api)
|
603
|
-
expect(@validator.reset).to eq(
|
603
|
+
expect(@validator.reset).to eq(0)
|
604
604
|
api[:port] = true
|
605
605
|
@validator.validate_api(api)
|
606
606
|
expect(@validator.reset).to eq(1)
|
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: 1.
|
4
|
+
version: 1.5.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: 2015-04-
|
11
|
+
date: 2015-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|