fate 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/fate/manager.rb +2 -2
  2. metadata +17 -1
data/lib/fate/manager.rb CHANGED
@@ -108,7 +108,7 @@ class Fate
108
108
  if name = @names_by_pid.delete(pid)
109
109
  @pids_by_name.delete(name)
110
110
  # TODO: CLI and instantiation flags for @mode
111
- if (@mode != :production) && status.exitstatus != 0
111
+ if (@mode != :production) && status != 0
112
112
  down_in_flames(name, pid, status)
113
113
  else
114
114
  # Probably should notify somebody somehow
@@ -119,7 +119,7 @@ class Fate
119
119
  def down_in_flames(name, pid, status)
120
120
  puts "Process '#{name}' (pid #{pid}) exited with code #{status}:"
121
121
  puts "Shutting down all processes."
122
- exit(status.exitstatus)
122
+ exit(status)
123
123
  end
124
124
 
125
125
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,6 +11,22 @@ bindir: bin
11
11
  cert_chain: []
12
12
  date: 2012-09-04 00:00:00.000000000 Z
13
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: json
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: 1.7.5
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 1.7.5
14
30
  - !ruby/object:Gem::Dependency
15
31
  name: harp
16
32
  requirement: !ruby/object:Gem::Requirement