startback 0.17.3 → 0.17.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 47e8ac3b588f01947b8f6850a40ae2777bf3578b8fea2c38d923f9619f7ddf0e
4
- data.tar.gz: d09a7168a291df2a59b199be072969fad30a1c7ef33d6c78058dfb358fbafd5f
3
+ metadata.gz: 5d9b3532828f0cd3b82d8a2df96cd5343b98d1c3c55c8c6d3dd1402c24fbbcd8
4
+ data.tar.gz: e7b19db3af487c0c725e35b923c136dad05daa7b2c0be829dc91ab3be01fe885
5
5
  SHA512:
6
- metadata.gz: dddbf9e33df9565c4ec445d107e9decc83c23a7538aba0eac4babd5104c0000ad89a49d657060ac400a9e79418e1c705c2dfb4b3b620b530e932f04977ce98f0
7
- data.tar.gz: 6fe5a230ac86dc2cd2b8bee70b54df7c3be840f9afd8d871d54d1a31cffa3a1b10bccc0de003201f169436a96b14b32bcd58f2a6aaffddd4a0d67b4a132398db
6
+ metadata.gz: bb5bfea0e5dec4b691fc908260f9af6bb42bdd829954673dd00adc83433fd3bb2ceee01430045ec4b263230a4f4072f00268d8d189bf2c636de8cf7bd129a1b1
7
+ data.tar.gz: c28211dca05b881de6d3368152234a7e9b331eda5355d21c57c27a8860a45dc4f45cd730203d02c94d4411da6a784c7fbb356a1129e6530ff6f7b37c93196d90
@@ -3,11 +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
- return unless event_data
8
-
9
- event = type.new(type.to_s, event_data, context)
10
- context.engine.bus.emit(event)
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
11
10
  end
12
11
  end
13
12
 
@@ -2,7 +2,7 @@ module Startback
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 17
5
- TINY = 3
5
+ TINY = 4
6
6
  end
7
7
  VERSION = "#{Version::MAJOR}.#{Version::MINOR}.#{Version::TINY}"
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: startback
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.3
4
+ version: 0.17.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bernard Lambeau