process_handler 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6fd60303a59541c3bb2208182c758f9ed6323679
|
4
|
+
data.tar.gz: ab6f4335a237552b4ac421b784c75a2431202ec3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f95f037652afe3cda9897494a2744ae749fbfa1d5b70d273504f4d8d44d68faa50e53814dbaafdbc4cefc88e0046f9febbba672650934eef1c2b6885795cc51
|
7
|
+
data.tar.gz: 27f173b2c1f177347a82f93f895246eb8639f7f2ae7ddc7b123e73bb9daffbe047bc69a5548d477dd6c945325694005851046fced4b44b2c8cf308b14e45a606
|
@@ -77,10 +77,7 @@ module Salemove
|
|
77
77
|
|
78
78
|
def wait_for_monitor
|
79
79
|
sleep 1 while @process_monitor.running?
|
80
|
-
@service_threads.each
|
81
|
-
service_thread.shutdown
|
82
|
-
service_thread.join
|
83
|
-
end
|
80
|
+
@service_threads.each(&:shutdown)
|
84
81
|
@process_monitor.shutdown
|
85
82
|
@exit_enforcer.call
|
86
83
|
end
|
@@ -10,7 +10,7 @@ describe ProcessHandler::PivotProcess do
|
|
10
10
|
let(:process) { ProcessHandler::PivotProcess.new(messenger, process_params) }
|
11
11
|
let(:process_params) {{ process_monitor: monitor , notifier_factory: notifier_factory, env: 'test' }}
|
12
12
|
let(:notifier_factory) { double('NotifierFactory') }
|
13
|
-
let(:responder) { double(shutdown: true
|
13
|
+
let(:responder) { double(shutdown: true) }
|
14
14
|
let(:logger) { Logasm.new([]) }
|
15
15
|
|
16
16
|
def expect_monitor_to_behave
|
@@ -40,7 +40,6 @@ describe ProcessHandler::PivotProcess do
|
|
40
40
|
allow(handler).to receive(:success) { thread }
|
41
41
|
allow(handler).to receive(:error) { thread }
|
42
42
|
expect(responder).to receive(:shutdown)
|
43
|
-
expect(responder).to receive(:join)
|
44
43
|
end
|
45
44
|
|
46
45
|
def expect_message
|
@@ -193,7 +192,6 @@ describe ProcessHandler::PivotProcess do
|
|
193
192
|
before do
|
194
193
|
expect_tap_into
|
195
194
|
expect(responder).to receive(:shutdown)
|
196
|
-
expect(responder).to receive(:join)
|
197
195
|
allow(service).to receive(:call).with(input)
|
198
196
|
end
|
199
197
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: process_handler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Indrek Juhkam
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: airbrake
|