callbacks_attachable 0.3.0 → 0.3.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: 8d58fd9e2c3adb7adb50a050b779346135fcd066
4
- data.tar.gz: c6e2991522caac53ec29a52e108a7b6882c824a6
3
+ metadata.gz: cde14954ee42182a68a68fb4f9d05bbd452c32d2
4
+ data.tar.gz: ca632ce300aa550cc02c2d3b454b4e90a09e6a49
5
5
  SHA512:
6
- metadata.gz: b72f05033c959e656cbe5d42b465405173f82524b0da3f5f22d88122b044fce498b52b6f596004813b9ca7262f871dd7e4e3e2113c2348f40b8309b86600e44e
7
- data.tar.gz: 007f0c6efccb8bbbf1ff23351815f4302627a1993203fccb1b4c846d382b9591bc59a98474f7144de7d8e39839c2b7097fce9f6a4964035b44f438b2ee37ff15
6
+ metadata.gz: 241435a5ee14e9df0eb0d708718578a8b0cf56afe0c514d9fd6832e4ec22ee010650c9486933cf8a96485ef96b32d150a08b254219000551937ef00bad5b3643
7
+ data.tar.gz: eaef9fce8abeb9134d20a9265e425bc7121cd33172a879b7b2b7e01d8e7005b81b7ca584b4b7ba4fb03a4efaa33a89d7b3db983644304d0648f324fbf0ceacfc
@@ -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.all? do |callback|
39
+ callbacks[event].dup.map do |callback|
40
40
  context.instance_exec(*args, &callback) != false
41
- end
41
+ end.all?
42
42
  end
43
43
 
44
44
  def off(event, callback)
@@ -1,3 +1,3 @@
1
1
  module CallbacksAttachable
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: callbacks_attachable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Aue