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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0d2cd78e89f819311eedaa9dc75d71fdfeff685aa2723d16dd50391077be1061
4
- data.tar.gz: 808cc9194bedab39965ddcd3cc31774470335b264dd938803a5f90233b9fea73
3
+ metadata.gz: 5d9b3532828f0cd3b82d8a2df96cd5343b98d1c3c55c8c6d3dd1402c24fbbcd8
4
+ data.tar.gz: e7b19db3af487c0c725e35b923c136dad05daa7b2c0be829dc91ab3be01fe885
5
5
  SHA512:
6
- metadata.gz: dfdb0ec227a477d7f543dbb8e615d3f81c453fe6f4f9dc18fc20212e9d0fe476fc1c481b0e1292ff6202e99ae7e99fe670f82113fa7b64e1fa7323e53ba08436
7
- data.tar.gz: f5405619b93cb20ef492beeba4b01d857dfc0d6adf77e50ff2517cefef953d57897c4082bf7d46708e85ad9f2048a475833f151dc78fb265f06eae86e0f661bc
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
- event = type.new(type.to_s, event_data, context)
8
- 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
9
10
  end
10
11
  end
11
12
 
@@ -2,7 +2,7 @@ module Startback
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 17
5
- TINY = 2
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.2
4
+ version: 0.17.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bernard Lambeau