sensu-settings 1.4.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d07bac3d033762f1692fc77a8ee78cfa93b8af23
4
- data.tar.gz: d51b987e700c9aaa9da75d4486e875acdecbd35f
3
+ metadata.gz: 5e72fe5365f84e168ecba9e968e10144f82b5e0c
4
+ data.tar.gz: 751ba3579d6607a39680169b843a1d28712b3e18
5
5
  SHA512:
6
- metadata.gz: abf335edc0f6cb4174bf52c1c2a9c3241cca29db316e6ce27d19bcd948d981ff5d5fc20da4cc7314ec39f8d3ea5a7d49d7b12d97d2b0b1d633819af29b76804b
7
- data.tar.gz: 440a5744b1bcc636f4ed3b59582918c94c24714c165a62d74b668416c2bfcb68d869d08d12f38cb62a39c2f90fefdda1502ad7e5bb682471a67229d8df13d608
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
- must_be_an_integer(api[:port]) ||
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")
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "sensu-settings"
5
- spec.version = "1.4.0"
5
+ spec.version = "1.5.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"
@@ -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(1)
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.0
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-15 00:00:00.000000000 Z
11
+ date: 2015-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json