reactor 0.1.2 → 0.1.3

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: b8f973cd9837cbb3928aed292f258b3de46a3db6
4
- data.tar.gz: ca362f7c430d3255d78268fd5a1db0a056a5fc54
3
+ metadata.gz: d0cceb129e794127e425a30e6c99b79133e8e4ff
4
+ data.tar.gz: 7c568995e6b466aedba39b7f646dfb7e895584ae
5
5
  SHA512:
6
- metadata.gz: cf86502c96dcaa4e866a9c8bc8e21412a3f9ac53a37409f55dd6a793fdfcd67f0af5d34b5d70dab30efccd989fd8b63058ad0336511e7c7fa8f386cc38ca5a75
7
- data.tar.gz: 2f3a5f5ad4573a2668d96f952344554542a48be8b172fe2a2c210bb85c38fd330ff33d8cbb2dd0845dc4e06e50cd6c110168e8eaddf79ebd0a59cd1fc783b3d9
6
+ metadata.gz: 12ee6c6f14b74ae21ec02d75e479b088e19f55ec02d0006caa94df6641513ccc59d10a30e97eb850ca6c42e5f9e5b433dd30797f57c9de6afc5765ab5b79957a
7
+ data.tar.gz: 374dbdd05e53475da24ed75ff2dc89ddb082baf841e209175c0d43e99fbb68ab0461c504f8ab88e8f4f2dc2f257c02b94c855bdd84a73aa969ef0682fbb485b6
@@ -24,18 +24,18 @@ module Reactor::Eventable
24
24
 
25
25
  def schedule_events
26
26
  self.class.events.each do |name, data|
27
- data = data.merge(
27
+ event = data.merge(
28
28
  at: ( data[:at] ? send(data[:at]) : nil), actor: self
29
29
  ).except(:watch)
30
30
  need_to_fire = case (ifarg = data[:if])
31
31
  when Proc
32
- what = instance_exec &ifarg
32
+ instance_exec &ifarg
33
33
  when Symbol
34
34
  send(ifarg)
35
35
  else
36
36
  true
37
37
  end
38
- Reactor::Event.delay.publish name, data if need_to_fire
38
+ Reactor::Event.delay.publish name, event if need_to_fire
39
39
  end
40
40
  end
41
41
 
@@ -1,3 +1,3 @@
1
1
  module Reactor
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
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.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - winfred