reactor 0.2.1 → 0.2.2

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
  SHA1:
3
- metadata.gz: dfe68b868d52324e6aa47e1e23135c9a12544f21
4
- data.tar.gz: 39bebc003bd9865de887d1e925d81c641c5be0fb
3
+ metadata.gz: 899765d039dc16a3ae752e6bf347c96b45ed0fac
4
+ data.tar.gz: 0b1aea882ae877eade8fc589c0c553e396c8443b
5
5
  SHA512:
6
- metadata.gz: fcc1d2b9f70025f1d18d795ae9f72eab11006a2d564e8a90a0d41aa7bf58470fc9a09b4f704ef0b49ee0cc647049d55ec9b6e7e9a86e01f6a4764d0460d17aa4
7
- data.tar.gz: 219130c5bd2860ec2bdea39e03ff7db0620fd608a161538763365d0be68385101915f1abbd71e97a6ce049c836e3e09d406f3f54d3fdbbaaaf4338f5e6ed8c31
6
+ metadata.gz: d7f4df1a877d2141c96cda533f1313e42c7a6616cfef2a69ee839142e02d2160205cc4b0f919ecda8e0b5be309115bfc47dc6df05e709f55c870e821a6ca9cc0
7
+ data.tar.gz: eccf1649e9a6fb011ae78d578336b0748008678f14a31b2e175ba24d427edffe075bb244ce16d79a33d050501e7dd88d67604eb84956fc57ff1ba27c76ed02a6
@@ -26,7 +26,7 @@ module Reactor::Eventable
26
26
  self.class.events.each do |name, data|
27
27
  event = data.merge(
28
28
  actor: ( data[:actor] ? send(data[:actor]) : self ),
29
- target: ( data[:target] ? send(data[:target]) : nil),
29
+ target: ( data[:target] ? self : nil),
30
30
  at: ( data[:at] ? send(data[:at]) : nil)
31
31
  ).except(:watch, :if)
32
32
  need_to_fire = case (ifarg = data[:if])
@@ -1,3 +1,3 @@
1
1
  module Reactor
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reactor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - winfred