unicorn-wrangler 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1caba80d14d2ba78c0141579ee032bc2ac1f19d7
4
- data.tar.gz: b3ee0aa920698aa8225e2d5795e71240b64490b4
3
+ metadata.gz: 1c453420ee8fd0c8d01dc9226450e39d2223388c
4
+ data.tar.gz: 535e8fb3e3c75539a811f396127d3a4b00e78e9b
5
5
  SHA512:
6
- metadata.gz: 06a6ac39aa156fc2dded7cfd895fff7870a6ecdc98dbf8170df767c455a735e6f654b60ec5796e2302fabc9b8420047a90935578d6b2be711b1741b84c14d50e
7
- data.tar.gz: d60b7bb9fdb697cf39d778deeb9749ce78e61c84f4982db231354a975680f528531a126e81791937e4af934852cfe829f884176b2c2a623e6c551ce4660a420a
6
+ metadata.gz: b0b31942c67f3e15db8fd0724b5d363cee9f5f2807be1927dea4e84981b04826ff229bbb77dbf08d31746c96ed6603be4f50b5f9eb1b438dccef7e973a920bd3
7
+ data.tar.gz: 1e8e6520147bb560d52cc49c415f1beb68188cc6d7269b71e34a7eaa45511168d8d6037d598fb835c8d1e0a94a9c6524f398b3d3ca931b49b564e52661fbeb66
@@ -1,5 +1,5 @@
1
1
  module Unicorn
2
2
  class Wrangler
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -16,7 +16,7 @@ module Unicorn
16
16
  if unicorn_running?
17
17
  restart_unicorn
18
18
  else
19
- Process.spawn(command)
19
+ Process.spawn(command, pgroup: true)
20
20
  wait_for { unicorn_running? }
21
21
  end
22
22
 
@@ -92,6 +92,11 @@ describe Unicorn::Wrangler do
92
92
  start_wrangler
93
93
  unicorn_running?.should be_true
94
94
  end
95
+
96
+ it 'launches unicorn with a new process group (so upstart does not clean it up)' do
97
+ start_wrangler
98
+ Process.getpgid(@wrangler_pid).should_not eql(Process.getpgid(unicorn_pid))
99
+ end
95
100
  end
96
101
 
97
102
  context 'when unicorn is already running' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unicorn-wrangler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Ward