fotonauts-god 0.7.10 → 0.7.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,16 @@
1
+ ==
2
+ * Bug Fixes
3
+ * Auto daemonized processes are now stopped/unmonitored correctly [github.com/jcapote]
4
+
5
+ == 0.7.12 / 2008-12-10
6
+ * Bug Fixes
7
+ * Fix capistrano deployability [github.com/eric]
8
+ * Fix event handling [brianw]
9
+
10
+ == 0.7.11 / 2008-11-14
11
+ * Bug Fixes
12
+ * Make notifications work inside lifecycle blocks
13
+
1
14
  == 0.7.10 / 2008-11-13
2
15
  * Major Enhancements
3
16
  * Enable sending of arbitrary signals to a task or group via `god signal`
data/Rakefile CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'rubygems'
2
2
  require 'hoe'
3
3
 
4
- Hoe.new('god', '0.7.10') do |p|
4
+ Hoe.new('god', '0.7.12') do |p|
5
5
  p.rubyforge_name = 'god'
6
6
  p.author = 'Tom Preston-Werner'
7
7
  p.email = 'tom@rubyisawesome.com'
data/lib/god.rb CHANGED
@@ -148,7 +148,7 @@ class Module
148
148
  end
149
149
 
150
150
  module God
151
- VERSION = '0.7.10'
151
+ VERSION = '0.7.12'
152
152
 
153
153
  LOG_BUFFER_SIZE_DEFAULT = 100
154
154
  PID_FILE_DIRECTORY_DEFAULTS = ['/var/run/god', '~/.god/pids']
@@ -420,7 +420,7 @@ module God
420
420
  when "restart"
421
421
  items.each { |w| jobs << Thread.new { w.move(:restart) } }
422
422
  when "stop"
423
- items.each { |w| jobs << Thread.new { w.unmonitor.action(:stop) if w.state != :unmonitored } }
423
+ items.each { |w| jobs << Thread.new { w.action(:stop); w.unmonitor if w.state != :unmonitored } }
424
424
  when "unmonitor"
425
425
  items.each { |w| jobs << Thread.new { w.unmonitor if w.state != :unmonitored } }
426
426
  when "remove"
@@ -34,6 +34,9 @@ module God
34
34
  end
35
35
 
36
36
  def default_run
37
+ # make sure we have STDIN/STDOUT redirected immediately
38
+ setup_logging
39
+
37
40
  # start attached pid watcher if necessary
38
41
  if @options[:attach]
39
42
  self.attach
@@ -324,7 +324,7 @@ module God
324
324
  messages = self.log_line(self, metric, condition, result)
325
325
 
326
326
  # notify
327
- if condition.notify && self.trigger?(metric, result)
327
+ if result && condition.notify
328
328
  self.notify(condition, messages.last)
329
329
  end
330
330
 
@@ -372,7 +372,7 @@ module God
372
372
  messages = self.log_line(self, metric, condition, true)
373
373
 
374
374
  # notify
375
- if condition.notify && self.trigger?(metric, true)
375
+ if condition.notify
376
376
  self.notify(condition, messages.last)
377
377
  end
378
378
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fotonauts-god
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.10
4
+ version: 0.7.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Preston-Werner
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-11-13 00:00:00 -08:00
12
+ date: 2008-12-10 00:00:00 -08:00
13
13
  default_executable: god
14
14
  dependencies: []
15
15