callbacks_attachable 1.0.2 → 1.0.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 841ea199caa6811569cc442f4bb49848cae85667
|
4
|
+
data.tar.gz: 559a012545ba5b1721f0c603ff6abceda05920a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0446b729f4bebdff0e3b2c2c304dcc1c54a83807e59c296ed4eb7623fb4e31328a3c94d091154dd8f755618e1846fc98c5024cdfb079d53fd61b039234d7b718
|
7
|
+
data.tar.gz: eed08c3f04df0b8a8c0908d5da139b6fdfaf814201dfbdd4bb2a481002e78be1c561cb8bdcd73f9d6a4028f9b84db07025f29b8c257709006aebb9674faaabd6
|
@@ -13,7 +13,7 @@ module CallbacksAttachable
|
|
13
13
|
|
14
14
|
def once_on(event, *opts, &callback)
|
15
15
|
callback_registry = self
|
16
|
-
registered_callback = on(event, *opts) do |*args|
|
16
|
+
registered_callback = @object.on(event, *opts) do |*args|
|
17
17
|
callback_registry.off(event, registered_callback)
|
18
18
|
yield(*args)
|
19
19
|
end
|
@@ -21,7 +21,7 @@ module CallbacksAttachable
|
|
21
21
|
|
22
22
|
def until_true_on(event, *opts, &callback)
|
23
23
|
callback_registry = self
|
24
|
-
registered_callback = on(event, *opts) do |*args|
|
24
|
+
registered_callback = @object.on(event, *opts) do |*args|
|
25
25
|
yield(*args).tap do |result|
|
26
26
|
callback_registry.off(event, registered_callback) if result
|
27
27
|
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: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christopher Aue
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|