rec 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rec/correlator.rb +0 -1
- data/lib/rec/state.rb +2 -2
- metadata +4 -4
data/lib/rec/correlator.rb
CHANGED
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
|
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
|
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:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 1.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-
|
18
|
+
date: 2012-10-02 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: xmpp4r
|