sensu-dashboard 0.10.2 → 0.10.3

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.
@@ -1,7 +1,7 @@
1
1
  module Sensu
2
2
  module Dashboard
3
3
  unless defined?(Sensu::Dashboard::VERSION)
4
- VERSION = '0.10.2'
4
+ VERSION = '0.10.3'
5
5
  end
6
6
  end
7
7
  end
@@ -60,7 +60,7 @@ module Sensu::Dashboard
60
60
  $dashboard_settings = settings[:dashboard] || Hash.new
61
61
  $dashboard_settings[:port] ||= 8080
62
62
  $dashboard_settings[:poll_frequency] ||= 10
63
- $api_settings = settings[:api] || Hash.new
63
+ $api_settings = $dashboard_settings[:api] || settings[:api] || Hash.new
64
64
  $api_settings[:host] ||= 'localhost'
65
65
  $api_settings[:port] ||= 4567
66
66
  unless $dashboard_settings[:port].is_a?(Integer)
@@ -129,7 +129,7 @@ module Sensu::Dashboard
129
129
  helpers do
130
130
  def protected!
131
131
  unless authorized?
132
- response['WWW-Authenticate'] = %(Basic realm='Restricted Area')
132
+ response['WWW-Authenticate'] = %(Basic realm="Restricted Area")
133
133
  throw(:halt, [401, 'Not authorized\n'])
134
134
  end
135
135
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-dashboard
3
3
  version: !ruby/object:Gem::Version
4
- hash: 51
4
+ hash: 49
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 10
9
- - 2
10
- version: 0.10.2
9
+ - 3
10
+ version: 0.10.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Justin Kolberg
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2013-11-22 00:00:00 -08:00
19
+ date: 2014-02-19 00:00:00 -08:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency