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: 27796e0b0c5f78d0b9e5f00140260a27ea52d407
4
- data.tar.gz: 9a76b181eeccd53c18ded6a7acc3f5316838fddf
3
+ metadata.gz: 6fd60303a59541c3bb2208182c758f9ed6323679
4
+ data.tar.gz: ab6f4335a237552b4ac421b784c75a2431202ec3
5
5
  SHA512:
6
- metadata.gz: 35cedd069cfc542360353dc287ae96c8d8885ac7ff0005e8545ba636bb386c5a430c3d2cb038ac4a3c71db48e68888bc7bd0219c2864f751a89d695f479f6b46
7
- data.tar.gz: 0f605b87a6e85783e6da8c57d5b7e43a92b83306ffdb01b4f48675b7265d8bb08882c6f403fd64d3148206994389c5d90614d9ab6d4f48c8224497f19facfd08
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 do |service_thread|
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
@@ -1,5 +1,5 @@
1
1
  module Salemove
2
2
  module ProcessHandler
3
- VERSION = '0.2.3'
3
+ VERSION = '0.2.4'
4
4
  end
5
5
  end
@@ -20,13 +20,8 @@ module Salemove
20
20
  end
21
21
 
22
22
  class ResponderHandler
23
-
24
23
  def shutdown
25
24
  end
26
-
27
- def join
28
- end
29
-
30
25
  end
31
26
 
32
27
  cron_process = ProcessHandler::CronProcess.new
@@ -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, join: 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.3
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-04 00:00:00.000000000 Z
11
+ date: 2015-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: airbrake