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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6b05399a4f322a216b88e51598db9b38b91162e3
4
- data.tar.gz: ed5a62269bb820e77ebe95fbd424fa6c1b89db90
3
+ metadata.gz: 8d58fd9e2c3adb7adb50a050b779346135fcd066
4
+ data.tar.gz: c6e2991522caac53ec29a52e108a7b6882c824a6
5
5
  SHA512:
6
- metadata.gz: 9c66ee4bab342a2564dcc7ba70ca4a208f851ee6828c2ce4309b45addc0cbcbb67944d050f1718e846a425acf2cef8d3ccb0931096a5c194e8f6c8ea27d3fe92
7
- data.tar.gz: c3c806c8de55a7254d8056b4e02626a649a9256f1f0091d06d79e1729d4c2e023825e80723156b72afb3c913ddb36541c80a3befb3a31e77c7c5ae447805bcf7
6
+ metadata.gz: b72f05033c959e656cbe5d42b465405173f82524b0da3f5f22d88122b044fce498b52b6f596004813b9ca7262f871dd7e4e3e2113c2348f40b8309b86600e44e
7
+ data.tar.gz: 007f0c6efccb8bbbf1ff23351815f4302627a1993203fccb1b4c846d382b9591bc59a98474f7144de7d8e39839c2b7097fce9f6a4964035b44f438b2ee37ff15
@@ -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.map do |callback|
40
- context.instance_exec(*args, &callback)
41
- end.all?
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)
@@ -1,3 +1,3 @@
1
1
  module CallbacksAttachable
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
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.2.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-07 00:00:00.000000000 Z
11
+ date: 2015-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler