startback 0.17.2 → 0.17.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/startback/event/ext/operation.rb +4 -3
- data/lib/startback/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d9b3532828f0cd3b82d8a2df96cd5343b98d1c3c55c8c6d3dd1402c24fbbcd8
|
4
|
+
data.tar.gz: e7b19db3af487c0c725e35b923c136dad05daa7b2c0be829dc91ab3be01fe885
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb5bfea0e5dec4b691fc908260f9af6bb42bdd829954673dd00adc83433fd3bb2ceee01430045ec4b263230a4f4072f00268d8d189bf2c636de8cf7bd129a1b1
|
7
|
+
data.tar.gz: c28211dca05b881de6d3368152234a7e9b331eda5355d21c57c27a8860a45dc4f45cd730203d02c94d4411da6a784c7fbb356a1129e6530ff6f7b37c93196d90
|
@@ -3,9 +3,10 @@ module Startback
|
|
3
3
|
|
4
4
|
def self.emits(type, &bl)
|
5
5
|
after_call do
|
6
|
-
event_data = instance_exec(&bl)
|
7
|
-
|
8
|
-
|
6
|
+
if event_data = instance_exec(&bl)
|
7
|
+
event = type.new(type.to_s, event_data, context)
|
8
|
+
context.engine.bus.emit(event)
|
9
|
+
end
|
9
10
|
end
|
10
11
|
end
|
11
12
|
|
data/lib/startback/version.rb
CHANGED