mojombo-god 0.7.10 → 0.7.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/History.txt +4 -0
  2. data/Rakefile +1 -1
  3. data/lib/god.rb +1 -1
  4. data/lib/god/task.rb +2 -2
  5. metadata +2 -2
@@ -1,3 +1,7 @@
1
+ == 0.7.11 / 2008-11-14
2
+ * Bug Fixes
3
+ * Make notifications work inside lifecycle blocks
4
+
1
5
  == 0.7.10 / 2008-11-13
2
6
  * Major Enhancements
3
7
  * 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.11') 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.11'
152
152
 
153
153
  LOG_BUFFER_SIZE_DEFAULT = 100
154
154
  PID_FILE_DIRECTORY_DEFAULTS = ['/var/run/god', '~/.god/pids']
@@ -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 result && 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: mojombo-god
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.10
4
+ version: 0.7.11
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-11-14 00:00:00 -08:00
13
13
  default_executable: god
14
14
  dependencies: []
15
15