rec 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/CHANGELOG +2 -1
  2. data/lib/rec/state.rb +7 -0
  3. metadata +3 -3
data/CHANGELOG CHANGED
@@ -1,5 +1,6 @@
1
- === Version 1.1.3
1
+ === Version 1.1.4
2
2
  - Made dependency on xmpp4r explicit
3
+ - Added some more shortcut actions: Notify_urgently_and_release, Notify_and_release, Notify_urgently_first_only
3
4
 
4
5
  === Version 1.1.2
5
6
  - added mplex.rb to support merging of event streams
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
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rec
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 3
10
- version: 1.1.3
9
+ - 4
10
+ version: 1.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Richard Kernahan