legion 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/legion/object.rb +0 -2
- data/lib/legion/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: fd69818926d0f41b603632afaf91c6b257fd9151
|
4
|
+
data.tar.gz: 7eca50ed8192c289c2b9414ee9996e2b12f2a36b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc8a23b37cbec7e348281a8f70537d90c5acb2eeaafb8650a161dc720e11c82c8bd88de935cc2b0522d56aeceeafed29c65f826cb9bee65dcf5ae41d718529c6
|
7
|
+
data.tar.gz: 425a8a393945f8d9fefb22abab9082dcc346efc643c85e6ac9b9e7a80273e0ab103121ea69f688994fb5a20a39b5571a8325464f7d1e40b0ed95fc70196e7b57
|
data/lib/legion/object.rb
CHANGED
@@ -12,11 +12,9 @@ module Legion
|
|
12
12
|
define_method "#{name}_async" do |*args|
|
13
13
|
Thread.new do
|
14
14
|
synchronize { @busy = true }
|
15
|
-
sleep 0
|
16
15
|
self.class.callbacks[:before][name].call unless self.class.callbacks[:before][name].nil?
|
17
16
|
send(name, *args)
|
18
17
|
synchronize { @busy = false }
|
19
|
-
Thread.terminate
|
20
18
|
end
|
21
19
|
end
|
22
20
|
end
|
data/lib/legion/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: legion
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Hopkins
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|