sensu 0.12.2 → 0.12.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -70,7 +70,6 @@ module Sensu
70
70
  if @options[:pid_file]
71
71
  process.write_pid(@options[:pid_file])
72
72
  end
73
- process.setup_eventmachine
74
73
  end
75
74
  end
76
75
  end
@@ -1,6 +1,6 @@
1
1
  module Sensu
2
2
  unless defined?(Sensu::VERSION)
3
- VERSION = '0.12.2'
3
+ VERSION = '0.12.3'
4
4
 
5
5
  LOG_LEVELS = [:debug, :info, :warn, :error, :fatal]
6
6
 
@@ -1,4 +1,7 @@
1
+ gem 'em-worker', '0.0.2'
2
+
1
3
  require 'timeout'
4
+ require 'em/worker'
2
5
 
3
6
  module Sensu
4
7
  class IO
@@ -60,7 +63,8 @@ module Sensu
60
63
  complete = Proc.new do |output, status|
61
64
  block.call(output, status) if block
62
65
  end
63
- EM::defer(execute, complete)
66
+ @async_popen_worker ||= EM::Worker.new
67
+ @async_popen_worker.enqueue(execute, complete)
64
68
  end
65
69
 
66
70
  private
@@ -44,9 +44,5 @@ module Sensu
44
44
  end
45
45
  end
46
46
  end
47
-
48
- def setup_eventmachine
49
- EM::threadpool_size = 14
50
- end
51
47
  end
52
48
  end
@@ -22,6 +22,7 @@ Gem::Specification.new do |s|
22
22
  s.add_dependency('thin', '1.5.0')
23
23
  s.add_dependency('sinatra', '1.3.5')
24
24
  s.add_dependency('async_sinatra', '1.0.0')
25
+ s.add_dependency('em-worker', '0.0.2')
25
26
 
26
27
  s.add_development_dependency('rake')
27
28
  s.add_development_dependency('rspec')
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu
3
3
  version: !ruby/object:Gem::Version
4
- hash: 43
4
+ hash: 41
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 12
9
- - 2
10
- version: 0.12.2
9
+ - 3
10
+ version: 0.12.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sean Porter
@@ -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: 2013-12-19 00:00:00 -08:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -164,9 +164,25 @@ dependencies:
164
164
  type: :runtime
165
165
  version_requirements: *id009
166
166
  - !ruby/object:Gem::Dependency
167
- name: rake
167
+ name: em-worker
168
168
  prerelease: false
169
169
  requirement: &id010 !ruby/object:Gem::Requirement
170
+ none: false
171
+ requirements:
172
+ - - "="
173
+ - !ruby/object:Gem::Version
174
+ hash: 27
175
+ segments:
176
+ - 0
177
+ - 0
178
+ - 2
179
+ version: 0.0.2
180
+ type: :runtime
181
+ version_requirements: *id010
182
+ - !ruby/object:Gem::Dependency
183
+ name: rake
184
+ prerelease: false
185
+ requirement: &id011 !ruby/object:Gem::Requirement
170
186
  none: false
171
187
  requirements:
172
188
  - - ">="
@@ -176,11 +192,11 @@ dependencies:
176
192
  - 0
177
193
  version: "0"
178
194
  type: :development
179
- version_requirements: *id010
195
+ version_requirements: *id011
180
196
  - !ruby/object:Gem::Dependency
181
197
  name: rspec
182
198
  prerelease: false
183
- requirement: &id011 !ruby/object:Gem::Requirement
199
+ requirement: &id012 !ruby/object:Gem::Requirement
184
200
  none: false
185
201
  requirements:
186
202
  - - ">="
@@ -190,11 +206,11 @@ dependencies:
190
206
  - 0
191
207
  version: "0"
192
208
  type: :development
193
- version_requirements: *id011
209
+ version_requirements: *id012
194
210
  - !ruby/object:Gem::Dependency
195
211
  name: em-http-request
196
212
  prerelease: false
197
- requirement: &id012 !ruby/object:Gem::Requirement
213
+ requirement: &id013 !ruby/object:Gem::Requirement
198
214
  none: false
199
215
  requirements:
200
216
  - - ">="
@@ -204,7 +220,7 @@ dependencies:
204
220
  - 0
205
221
  version: "0"
206
222
  type: :development
207
- version_requirements: *id012
223
+ version_requirements: *id013
208
224
  description: A monitoring framework that aims to be simple, malleable, and scalable. Uses the publish/subscribe model.
209
225
  email:
210
226
  - portertech@gmail.com