cangrejo 0.0.10 → 0.0.11
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 +4 -4
- data/lib/cangrejo/support/launcher.rb +4 -4
- data/lib/cangrejo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b8197f33c5cfde4077331c74eeacc051b92b84f
|
4
|
+
data.tar.gz: cd37ee99820f1793de2b2c6677b15cbb9077e106
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27e8b1b7f539b6e0ed997422c4d4ef42c1daf8e372da0c75f39bf0fea5b37f652f1055aa029ef91249792f9f21b3e58966d271ce7cd18b7cacf73431e03799b9
|
7
|
+
data.tar.gz: 99bf41a1cae36f5f8bbe61334be7f8d4180252cabda892709b357eb1d4a052e668bf83b8e1dd5b2bd10b3d78303c959840696f73651259ddb693348b54fed621
|
@@ -26,7 +26,7 @@ module Cangrejo
|
|
26
26
|
def launch
|
27
27
|
gem_path = File.join(@path, 'Gemfile')
|
28
28
|
# TODO: for some reason, the gemfile path must be specified here, maybe because of rbenv?
|
29
|
-
@pid = Process.spawn({ 'BUNDLE_GEMFILE' => gem_path }, "bin/crabfarm s --host=#{host} #{@options.join(' ')}", chdir: @path)
|
29
|
+
@pid = Process.spawn({ 'BUNDLE_GEMFILE' => gem_path }, "bin/crabfarm s --host=#{host} #{@options.join(' ')}", chdir: @path, pgroup: true)
|
30
30
|
wait_for_socket
|
31
31
|
end
|
32
32
|
|
@@ -54,12 +54,12 @@ module Cangrejo
|
|
54
54
|
def safe_kill _pid
|
55
55
|
begin
|
56
56
|
Timeout.timeout(KILL_TIMEOUT) do
|
57
|
-
Process.kill
|
57
|
+
Process.kill "INT", _pid
|
58
58
|
Process.wait _pid
|
59
59
|
end
|
60
60
|
rescue Timeout::Error
|
61
|
-
Process.kill 9, _pid
|
62
|
-
Process.wait _pid
|
61
|
+
Process.kill -9, _pid # kill entire process group
|
62
|
+
Process.wait _pid
|
63
63
|
end
|
64
64
|
end
|
65
65
|
|
data/lib/cangrejo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cangrejo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ignacio Baixas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|