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: 8361f3489e5f96111b82d48179db0e9e24f2133d
4
- data.tar.gz: ad0481b20b8d1429540cb2d2729251dc0c654dcc
3
+ metadata.gz: 841ea199caa6811569cc442f4bb49848cae85667
4
+ data.tar.gz: 559a012545ba5b1721f0c603ff6abceda05920a7
5
5
  SHA512:
6
- metadata.gz: f2250c9078a2b6a51024a93d5dc0ae67baa8422fb07a8c106e223465e9ccbc12434553fdfda494624ffbe283f083e53006735f18d1a3229a4175e57af5f82a0e
7
- data.tar.gz: 87ebef724ad49ac71e9a07125e173631d0c078d423cbc186d03e13602a9b467141308729a752aef0abd08ba99f6f3a069ef7e263e0160edf59ce68bb3ec640ef
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
@@ -1,3 +1,3 @@
1
1
  module CallbacksAttachable
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
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: 1.0.2
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-09 00:00:00.000000000 Z
11
+ date: 2016-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler