signal 0.2.0 → 0.2.1

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: 203af304645a2f533a88161c89f11d777dfbdad5
4
- data.tar.gz: 825a4bf9ac000f1f9625b1fcbac09bacb1ac8399
3
+ metadata.gz: 59c367a4af5c147250796ec4ac97b8e07a7e9a2f
4
+ data.tar.gz: a011171826f8920edee520058073481a1ae7aafb
5
5
  SHA512:
6
- metadata.gz: 3192bbb4d53667ae7c9acc5af81f34942f9a3ae23ec91f3913d86ce9c6739020446c84ad1f694192e981ec58e4c1a94763ba7b47df65c14824863e56d9772a39
7
- data.tar.gz: 39d8e3725e312e8760684f3d4f93c3963b1caf3a1a81ac663f02855d16ded90eeb4797baf578a96eff9bdd23a4cc15c3aaa80ed86a422c6d44462e286464f9c7
6
+ metadata.gz: f2ce9e011e335d2a20b867b89f51d0827b0d015f7f3e264b804693e080eaf59174a5b24ca1dca6f89852fa16d7a496aa886d34e77f50aba2dfabf55979e41acf
7
+ data.tar.gz: d73936c50a0618a2fea021850f711a36b95279a98e92d7696ac059286ea870211d21411e065bbe25e7e06a66b3e0c002ef0c69a323a54063b743877c2c93f5e2
@@ -38,10 +38,7 @@ module Signal
38
38
  def emit_signal(type, event, *args)
39
39
  listeners.each do |listener|
40
40
  method_name = "#{type}_#{event}"
41
-
42
- if listener.respond_to?(method_name)
43
- listener.public_send(method_name, *args)
44
- end
41
+ listener.send(method_name, *args) if listener.respond_to?(method_name)
45
42
  end
46
43
  end
47
44
  end
@@ -1,3 +1,3 @@
1
1
  module Signal
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: signal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nando Vieira