rec 1.1.3 → 1.1.4
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.
- data/CHANGELOG +2 -1
- data/lib/rec/state.rb +7 -0
- metadata +3 -3
data/CHANGELOG
CHANGED
data/lib/rec/state.rb
CHANGED
@@ -46,6 +46,13 @@ class State
|
|
46
46
|
state.release()
|
47
47
|
}
|
48
48
|
|
49
|
+
# shortcut action to notify and release
|
50
|
+
# Good for a single event not requiring immediate action
|
51
|
+
Notify_and_release = Proc.new { |state|
|
52
|
+
Notify.normal(state.generate(:alert))
|
53
|
+
state.release()
|
54
|
+
}
|
55
|
+
|
49
56
|
# A array of Timeouts. A Timeout struct has two elements:
|
50
57
|
# - timestamp at which to expire
|
51
58
|
# - key of the state to be expired
|
metadata
CHANGED