mysql_isolated_server 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mysql_isolated_server/version.rb +1 -1
- data/lib/mysql_isolated_server.rb +8 -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: 9cca5f8cc62bca94fe0b6512c29e5e0d93d32c87
|
4
|
+
data.tar.gz: 411f15e13ef561b3ec17539226e50f74d9d82498
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5058652a441d478944b3c0c91c6d36be2324c0d86b5461412f2710a69c5dd17319c413fa8953354e94592aa8821c4f8ef5bcf8e1b453c49c55dc7d38d7b2dbad
|
7
|
+
data.tar.gz: 8bd323f6f4886bf93f164a72465cd509e7c3ed990f14afb98077b3e1d91f4332fc1f74b4d17b22497fa2c89828d3982159743b7912f26550f5cfb20e7133768c
|
@@ -98,8 +98,9 @@ class MysqlIsolatedServer
|
|
98
98
|
end
|
99
99
|
|
100
100
|
def down!
|
101
|
-
Process.kill("
|
101
|
+
Process.kill("HUP", @pid)
|
102
102
|
while (Process.kill 0, @pid rescue false)
|
103
|
+
Process.waitpid(@pid)
|
103
104
|
sleep 1
|
104
105
|
end
|
105
106
|
@cx = nil
|
@@ -197,6 +198,12 @@ class MysqlIsolatedServer
|
|
197
198
|
end
|
198
199
|
end
|
199
200
|
|
201
|
+
# HUP == don't cleanup.
|
202
|
+
trap("HUP") do
|
203
|
+
Process.kill("KILL", exec_pid)
|
204
|
+
exit!
|
205
|
+
end
|
206
|
+
|
200
207
|
while true
|
201
208
|
begin
|
202
209
|
Process.kill(0, parent_pid)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mysql_isolated_server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Osheroff
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A small library that allows you to easily spin up new local mysql servers
|
14
14
|
for testing purposes.
|