callbacks_attachable 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/callbacks_attachable.rb +3 -3
- data/lib/callbacks_attachable/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d58fd9e2c3adb7adb50a050b779346135fcd066
|
4
|
+
data.tar.gz: c6e2991522caac53ec29a52e108a7b6882c824a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b72f05033c959e656cbe5d42b465405173f82524b0da3f5f22d88122b044fce498b52b6f596004813b9ca7262f871dd7e4e3e2113c2348f40b8309b86600e44e
|
7
|
+
data.tar.gz: 007f0c6efccb8bbbf1ff23351815f4302627a1993203fccb1b4c846d382b9591bc59a98474f7144de7d8e39839c2b7097fce9f6a4964035b44f438b2ee37ff15
|
data/lib/callbacks_attachable.rb
CHANGED
@@ -36,9 +36,9 @@ module CallbacksAttachable
|
|
36
36
|
|
37
37
|
# dup the callback list so that removing callbacks while iterating does
|
38
38
|
# still call all callbacks during map.
|
39
|
-
callbacks[event].dup.
|
40
|
-
context.instance_exec(*args, &callback)
|
41
|
-
end
|
39
|
+
callbacks[event].dup.all? do |callback|
|
40
|
+
context.instance_exec(*args, &callback) != false
|
41
|
+
end
|
42
42
|
end
|
43
43
|
|
44
44
|
def off(event, callback)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: callbacks_attachable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christopher Aue
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|