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 +4 -4
- data/lib/signal.rb +1 -4
- data/lib/signal/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59c367a4af5c147250796ec4ac97b8e07a7e9a2f
|
4
|
+
data.tar.gz: a011171826f8920edee520058073481a1ae7aafb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2ce9e011e335d2a20b867b89f51d0827b0d015f7f3e264b804693e080eaf59174a5b24ca1dca6f89852fa16d7a496aa886d34e77f50aba2dfabf55979e41acf
|
7
|
+
data.tar.gz: d73936c50a0618a2fea021850f711a36b95279a98e92d7696ac059286ea870211d21411e065bbe25e7e06a66b3e0c002ef0c69a323a54063b743877c2c93f5e2
|
data/lib/signal.rb
CHANGED
@@ -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
|
data/lib/signal/version.rb
CHANGED