ak47 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -47,6 +47,7 @@ module Ak47
47
47
  exec(command)
48
48
  }.start
49
49
  rescue
50
+ puts $!.backtrace.join("\n ") if ENV['DEBUG']
50
51
  puts $!.message.red
51
52
  exit 1
52
53
  end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Ak47
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
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: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 4
10
- version: 0.2.4
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-11 00:00:00 Z
18
+ date: 2012-01-13 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: guard