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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dd18cea0c11e60f42b273702e3a27fd1b3b52886
4
- data.tar.gz: 7e5ebfd1cec4db21066f21fea9fc2fd943e78db6
3
+ metadata.gz: 9cca5f8cc62bca94fe0b6512c29e5e0d93d32c87
4
+ data.tar.gz: 411f15e13ef561b3ec17539226e50f74d9d82498
5
5
  SHA512:
6
- metadata.gz: 964d8792b8b9cd9b7516f4ba93880e7f7fe3ee4db5beab9ceeddc9e438ddf29fab50dddbe4b4ec165bd0a59f311ad719daf609eff5be7e38937ffae4d0034deb
7
- data.tar.gz: 7122d5752c06ac0a613adf8a34c8f704a6e2070e43e0772460e16816a0d606f44c95caa21f494685779d914b7fb1a04f4bc0f6cb7588f653e5124472620041a6
6
+ metadata.gz: 5058652a441d478944b3c0c91c6d36be2324c0d86b5461412f2710a69c5dd17319c413fa8953354e94592aa8821c4f8ef5bcf8e1b453c49c55dc7d38d7b2dbad
7
+ data.tar.gz: 8bd323f6f4886bf93f164a72465cd509e7c3ed990f14afb98077b3e1d91f4332fc1f74b4d17b22497fa2c89828d3982159743b7912f26550f5cfb20e7133768c
@@ -1,3 +1,3 @@
1
1
  class MysqlIsolatedServer
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.3"
3
3
  end
@@ -98,8 +98,9 @@ class MysqlIsolatedServer
98
98
  end
99
99
 
100
100
  def down!
101
- Process.kill("TERM", @pid)
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.2
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-09 00:00:00.000000000 Z
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.