sensu 0.25.2 → 0.25.3

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: 53fdc73c392979cab9dbc537fe2cd118d40692c5
4
- data.tar.gz: 0656b8f002a58d2785e0b84dc7550efeb64e8dfb
3
+ metadata.gz: fb6d18da6177df8e89c857130ca0ed9bcc6fbd84
4
+ data.tar.gz: f14ab5690a7491100a070f4a21b705da0d05f69c
5
5
  SHA512:
6
- metadata.gz: 93ac81536b9e6370157c0d87eaab2a22c73fc8769a0ccf44bbbeb3fa053561627470a6b60f99fc0ebe76cf889c5e092d88592eebfdc6386f107fa9898f84ab01
7
- data.tar.gz: a23633c7703136d4b92ab344f3e4619357eee34ddb274d268fd6612ace5be433095805af92d2995bad5a1d7d3248f48feb070414fb40b0fe433dc4782ed42f6e
6
+ metadata.gz: dd9083aff0b54daa2253cf3f4f9caa8a56702d45070c7fbaa6f966cc547d77f76d8b8c0410d1a8423d794cd814c571e2f1e36e6d95569c6912cc9eef8d69dc15
7
+ data.tar.gz: b59e0aad3001b9432fc121735450e93ffe6587ad92988573f54b76ba14a153ea5667f7e2e794766c7fecc08166b8d3669f4c8c2884df3cd2966b09007ec06900
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## 0.25.3 - 2016-06-17
2
+
3
+ ### Fixes
4
+
5
+ Fixed a bug in the Sensu API where it was unable to set the CORS HTTP
6
+ headers when the API had not been configured (no `"api": {}` definition).
7
+
1
8
  ## 0.25.2 - 2016-06-16
2
9
 
3
10
  ### Fixes
@@ -122,7 +122,7 @@ module Sensu
122
122
 
123
123
  # Set the cors (Cross-origin resource sharing) HTTP headers.
124
124
  def set_cors_headers
125
- api = @settings[:api]
125
+ api = @settings[:api] || {}
126
126
  api[:cors] ||= {
127
127
  "Origin" => "*",
128
128
  "Methods" => "GET, POST, PUT, DELETE, OPTIONS",
@@ -1,7 +1,7 @@
1
1
  module Sensu
2
2
  unless defined?(Sensu::VERSION)
3
3
  # Sensu release version.
4
- VERSION = "0.25.2".freeze
4
+ VERSION = "0.25.3".freeze
5
5
 
6
6
  # Sensu check severities.
7
7
  SEVERITIES = %w[ok warning critical unknown].freeze
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.25.2
4
+ version: 0.25.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Porter
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2016-06-16 00:00:00.000000000 Z
12
+ date: 2016-06-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: eventmachine