sensu 0.12.2 → 0.12.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sensu/base.rb +0 -1
- data/lib/sensu/constants.rb +1 -1
- data/lib/sensu/io.rb +5 -1
- data/lib/sensu/process.rb +0 -4
- data/sensu.gemspec +1 -0
- metadata +26 -10
data/lib/sensu/base.rb
CHANGED
data/lib/sensu/constants.rb
CHANGED
data/lib/sensu/io.rb
CHANGED
@@ -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::
|
66
|
+
@async_popen_worker ||= EM::Worker.new
|
67
|
+
@async_popen_worker.enqueue(execute, complete)
|
64
68
|
end
|
65
69
|
|
66
70
|
private
|
data/lib/sensu/process.rb
CHANGED
data/sensu.gemspec
CHANGED
@@ -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:
|
4
|
+
hash: 41
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 12
|
9
|
-
-
|
10
|
-
version: 0.12.
|
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-
|
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:
|
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: *
|
195
|
+
version_requirements: *id011
|
180
196
|
- !ruby/object:Gem::Dependency
|
181
197
|
name: rspec
|
182
198
|
prerelease: false
|
183
|
-
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: *
|
209
|
+
version_requirements: *id012
|
194
210
|
- !ruby/object:Gem::Dependency
|
195
211
|
name: em-http-request
|
196
212
|
prerelease: false
|
197
|
-
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: *
|
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
|