rec 1.2.2 → 1.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/rec/correlator.rb +0 -1
  2. data/lib/rec/state.rb +2 -2
  3. metadata +4 -4
@@ -1,5 +1,4 @@
1
1
  require 'rec/rule'
2
- require 'io/wait'
3
2
 
4
3
  module REC # :nodoc:
5
4
 
data/lib/rec/state.rb CHANGED
@@ -35,13 +35,13 @@ class State
35
35
 
36
36
  # shortcut action to generate a message on first event only, swallow the rest
37
37
  Generate_first_only = Proc.new { |state|
38
- state.generate(:alert) if @count == 1
38
+ state.generate(:alert) if state.count == 1
39
39
  }
40
40
 
41
41
  # shortcut action to notify the admin immediately (eg. system is down)
42
42
  # and wait (eg. for system to come up again)
43
43
  Notify_urgently_first_only = Proc.new { |state|
44
- Notify.urgent(state.generate(:alert)) if @count == 1
44
+ Notify.urgent(state.generate(:alert)) if state.count == 1
45
45
  }
46
46
 
47
47
  # shortcut action to notify urgently and release
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rec
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 2
10
- version: 1.2.2
9
+ - 3
10
+ version: 1.2.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Richard Kernahan
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-10-01 00:00:00 Z
18
+ date: 2012-10-02 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: xmpp4r