rm-extensions 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/motion/retention.rb +4 -8
- data/lib/rm-extensions/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d76c35600cd3f43ee72e64f70d19bc234a6534c4
|
4
|
+
data.tar.gz: a71afeb1e4b2d9dfdf87c22559f788aaca4ff9b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18d10f94655198437b6ae2a83f19bcbd90d4ec84cc628a0830b32ebd9b96c4464292019d71daf005ee0cd90210906e23dbb2059933cc49627d28ecc8dcd81ae0
|
7
|
+
data.tar.gz: 6e721dae784ef44f950d2730ddceadaf20b18ed512d82029867289c564e8b32042366aa3e52975a48ac3a4e22558c98701e2719581e30fe9e505cd5e5bde5203
|
data/lib/motion/retention.rb
CHANGED
@@ -2,19 +2,15 @@ module RMExtensions
|
|
2
2
|
|
3
3
|
# A retained array, which will hold other objects we want retained.
|
4
4
|
def self.retained_items
|
5
|
-
|
6
|
-
|
7
|
-
# FIXME: http://hipbyte.myjetbrains.com/youtrack/issue/RM-134
|
8
|
-
@retained_items ||= []
|
5
|
+
Dispatch.once { @retained_items = [] }
|
6
|
+
@retained_items
|
9
7
|
end
|
10
8
|
|
11
9
|
# A serial queue to perform all retain/detach operations on, to ensure we are always modifying
|
12
10
|
# +retained_items+ on the same thread.
|
13
11
|
def self.retains_queue
|
14
|
-
|
15
|
-
|
16
|
-
# FIXME: http://hipbyte.myjetbrains.com/youtrack/issue/RM-134
|
17
|
-
@retains_queue ||= Dispatch::Queue.new("#{NSBundle.mainBundle.bundleIdentifier}.rmext_retains_queue")
|
12
|
+
Dispatch.once { @retains_queue = Dispatch::Queue.new("#{NSBundle.mainBundle.bundleIdentifier}.rmext_retains_queue") }
|
13
|
+
@retains_queue
|
18
14
|
end
|
19
15
|
|
20
16
|
module ObjectExtensions
|
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.0.
|
4
|
+
version: 0.0.9
|
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-06-
|
11
|
+
date: 2013-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bubble-wrap
|