sensu 0.9.2.beta → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -101,7 +101,7 @@ module Sensu
101
101
  output = io.read
102
102
  end
103
103
  rescue Errno::EPIPE => error
104
- output = handler + ' -- broken pipe: ' + error
104
+ output = handler + ' -- broken pipe: ' + error.to_s
105
105
  end
106
106
  end
107
107
  output
data/lib/sensu.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Sensu
2
- VERSION = "0.9.2.beta"
2
+ VERSION = "0.9.2"
3
3
  end
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: 31098113
5
- prerelease: true
4
+ hash: 63
5
+ prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
9
  - 2
10
- - beta
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-04 00:00:00 -08:00
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: 25
263
+ hash: 3
265
264
  segments:
266
- - 1
267
- - 3
268
- - 1
269
- version: 1.3.1
265
+ - 0
266
+ version: "0"
270
267
  requirements: []
271
268
 
272
269
  rubyforge_project: