sensu 0.9.2.beta → 0.9.2
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.
- data/README.org +3 -0
- data/lib/sensu/client.rb +1 -1
- data/lib/sensu/config.rb +2 -2
- data/lib/sensu/server.rb +1 -1
- data/lib/sensu.rb +1 -1
- metadata +8 -11
data/README.org
CHANGED
@@ -38,3 +38,6 @@
|
|
38
38
|
- [[http://github.com/lum][Steve Lum]]
|
39
39
|
- [[http://twitter.com/miller_joe][Joe Miller]]
|
40
40
|
- [[http://twitter.com/decklin][Decklin Foster]]
|
41
|
+
- [[http://twitter.com/ohlol][Scott Smith]]
|
42
|
+
- [[http://twitter.com/webframp][Sean Escriva]]
|
43
|
+
- [[http://twitter.com/fujin_][AJ Christensen]]
|
data/lib/sensu/client.rb
CHANGED
@@ -223,7 +223,7 @@ module Sensu
|
|
223
223
|
@logger.warn('[socket] -- a check name, exit status, and output are required -- e.g. {"name": "x", "status": 0, "output": "y"}')
|
224
224
|
end
|
225
225
|
rescue JSON::ParserError => error
|
226
|
-
@logger.warn('[socket] -- check result must be valid JSON: ' + error)
|
226
|
+
@logger.warn('[socket] -- check result must be valid JSON: ' + error.to_s)
|
227
227
|
end
|
228
228
|
close_connection
|
229
229
|
end
|
data/lib/sensu/config.rb
CHANGED
@@ -158,7 +158,7 @@ module Sensu
|
|
158
158
|
begin
|
159
159
|
config_hash = JSON.parse(File.open(@options[:config_file], 'r').read)
|
160
160
|
rescue JSON::ParserError => error
|
161
|
-
invalid_config('configuration file (' + @options[:config_file] + ') must be valid JSON: ' + error)
|
161
|
+
invalid_config('configuration file (' + @options[:config_file] + ') must be valid JSON: ' + error.to_s)
|
162
162
|
end
|
163
163
|
@settings = Hashie::Mash.new(config_hash)
|
164
164
|
else
|
@@ -170,7 +170,7 @@ module Sensu
|
|
170
170
|
begin
|
171
171
|
snippet_hash = JSON.parse(File.open(snippet_file, 'r').read)
|
172
172
|
rescue JSON::ParserError => error
|
173
|
-
invalid_config('configuration snippet file (' + snippet_file + ') must be valid JSON: ' + error)
|
173
|
+
invalid_config('configuration snippet file (' + snippet_file + ') must be valid JSON: ' + error.to_s)
|
174
174
|
end
|
175
175
|
merged_settings = @settings.to_hash.deep_merge(snippet_hash)
|
176
176
|
@logger.warn('[settings] configuration snippet (' + snippet_file + ') applied changes: ' + @settings.deep_diff(merged_settings).to_json)
|
data/lib/sensu/server.rb
CHANGED
data/lib/sensu.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 63
|
5
|
+
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
9
|
- 2
|
10
|
-
|
11
|
-
version: 0.9.2.beta
|
10
|
+
version: 0.9.2
|
12
11
|
platform: ruby
|
13
12
|
authors:
|
14
13
|
- Sean Porter
|
@@ -17,7 +16,7 @@ autorequire:
|
|
17
16
|
bindir: bin
|
18
17
|
cert_chain: []
|
19
18
|
|
20
|
-
date: 2012-01-
|
19
|
+
date: 2012-01-05 00:00:00 -08:00
|
21
20
|
default_executable:
|
22
21
|
dependencies:
|
23
22
|
- !ruby/object:Gem::Dependency
|
@@ -259,14 +258,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
259
258
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
260
259
|
none: false
|
261
260
|
requirements:
|
262
|
-
- - "
|
261
|
+
- - ">="
|
263
262
|
- !ruby/object:Gem::Version
|
264
|
-
hash:
|
263
|
+
hash: 3
|
265
264
|
segments:
|
266
|
-
-
|
267
|
-
|
268
|
-
- 1
|
269
|
-
version: 1.3.1
|
265
|
+
- 0
|
266
|
+
version: "0"
|
270
267
|
requirements: []
|
271
268
|
|
272
269
|
rubyforge_project:
|