reactor 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/reactor/models/concerns/eventable.rb +1 -1
- data/lib/reactor/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0856dd83dd99bfe7c3d6ee5f3fa873a2d877bf93
|
4
|
+
data.tar.gz: 3642465ade68d3b77c018fe5527ce0826b222e24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6848ba780655780d5f013d20e179ef41a6b04d89efb52d2fda2b0612ce2d507db2c0b4fe5f4b79f7103fb60a724ef984e3fa548791d1ae05ad1814e352d80c27
|
7
|
+
data.tar.gz: 9306a61c4bbc432cf4e1f88bf767f057ca8f16b0dd194f0de6bbdc39636bc5bfd3a9b951aa412c6feddab38ce96c3dddf4a039bfe60d5368592dd0b221675314
|
@@ -26,7 +26,7 @@ module Reactor::Eventable
|
|
26
26
|
self.class.events.each do |name, data|
|
27
27
|
event = data.merge(
|
28
28
|
at: ( data[:at] ? send(data[:at]) : nil), actor: self
|
29
|
-
).except(:watch)
|
29
|
+
).except(:watch, :if)
|
30
30
|
need_to_fire = case (ifarg = data[:if])
|
31
31
|
when Proc
|
32
32
|
instance_exec &ifarg
|
data/lib/reactor/version.rb
CHANGED