rm-extensions 0.1.2 → 0.1.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: 02fb75ddd038c6406b368e6ccb1361d405dcb478
4
- data.tar.gz: 3c95a41a3b65161c20d21945877d4874a38bcf13
3
+ metadata.gz: d3b640dd2b89eae8bfcc443d4a5e5067abd283f3
4
+ data.tar.gz: 26bb1864c3fc4f89cf09b39e858a92001df0ea1e
5
5
  SHA512:
6
- metadata.gz: 0a91492f630edd7895209325cd7b751adec500ba6db14cde294ff3dff8a96b57ae677b926209caec848fdd04b7061408c0997b777281c4bb348334a8325ad4f4
7
- data.tar.gz: ddcdb4e9601e8928ed07109ab179203fa5a588c1a867ea5782a6e40cb26c2d70a9fa8b0eef806943777889f97ead7cc3a547ae7899f15ac853e4314ba0c4fffa
6
+ metadata.gz: 17b76f012868bf23b795b02bda7b8ecb77907825e0a1b2684cbc101eb619c1c2ddaf68dda300eb21a140ab31299f596e2a3bf1dc93983641d9929b04d0672e49
7
+ data.tar.gz: fd49633cff7b9fb77a9bd108c515ef3647054700b886e8a80cee317619be57109b91ff230428e48597a7bbc74098b84cf1750175e0205a25a81149adcc83836e
@@ -64,6 +64,13 @@ module RMExtensions
64
64
  end
65
65
  end
66
66
 
67
+ # remove all observations and event callbacks on this object
68
+ def rmext_cleanup
69
+ if @rmext_observation_proxy
70
+ @rmext_observation_proxy.cleanup
71
+ end
72
+ end
73
+
67
74
  end
68
75
 
69
76
  end
@@ -85,9 +92,14 @@ module RMExtensions
85
92
  # clean up on dellocation
86
93
  def dealloc
87
94
  # p "dealloc #{self.inspect} for #{@desc}"
95
+ cleanup
96
+ super
97
+ end
98
+
99
+ def cleanup
88
100
  unobserve_all
89
101
  off_all
90
- super
102
+ true
91
103
  end
92
104
 
93
105
  def observe(target, key_path, &block)
@@ -1,3 +1,3 @@
1
1
  module RMExtensions
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rm-extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Noon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-05 00:00:00.000000000 Z
11
+ date: 2013-08-12 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Extensions and helpers for dealing with various areas of rubymotion
14
14
  email: