ak47 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ak47/cli.rb +1 -0
- data/lib/ak47/runner.rb +3 -1
- data/lib/ak47/version.rb +1 -1
- metadata +4 -4
data/lib/ak47/cli.rb
CHANGED
data/lib/ak47/runner.rb
CHANGED
@@ -44,11 +44,13 @@ module Ak47
|
|
44
44
|
@pid = fork(&@blk)
|
45
45
|
Process.detach(@pid)
|
46
46
|
_, status = Process.waitpid2(@pid)
|
47
|
+
rescue Errno::ECHILD
|
48
|
+
@pid = nil
|
47
49
|
ensure
|
48
50
|
running = false
|
49
51
|
end
|
50
52
|
@thread.kill if @thread
|
51
|
-
if status.success?
|
53
|
+
if @pid.nil? || status.success?
|
52
54
|
if change_detected
|
53
55
|
puts "[Change detected while previously running]".green
|
54
56
|
change_detected = false
|
data/lib/ak47/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ak47
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 5
|
10
|
+
version: 0.2.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Josh Hull
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-01-
|
18
|
+
date: 2012-01-13 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: guard
|