legion 0.0.4 → 0.0.5

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: 6f9fe20cf2fa4bf5c225faf33fcda58c96ba7427
4
- data.tar.gz: 29ca9aa31d6090ddc68dca055dc59b429384ff74
3
+ metadata.gz: e970eb47b6083ad05e799e84efdbe29c953051b0
4
+ data.tar.gz: 5cfc62b8733d3129f67760d78cb4f7d3e04f672f
5
5
  SHA512:
6
- metadata.gz: 437b9f546bfa18351c22e249b70f3b31e155d484567a065462cd5e9711c48a4571e8474b25fe37e1c2e7ae8a5dfc3a6abd3db02ec829b113719f13c707667432
7
- data.tar.gz: f54ec6a9cce455d4621d7c6abca66a8cb626ba95e3586fcb5add1649fabdfd1822bb242d863657f0ddad27e4aefc5071c99d8a4bdbf170c3d4afcc9b28fee9b1
6
+ metadata.gz: eeb6fba6f908f1f6c235fc145e086029de5e8eacca3a58eea6ce72fe3fdd72f5f6ce3970e35cfb37d26beecc8026f1fc5d323052ca45ea7d1a48dcbd366a4e1f
7
+ data.tar.gz: 4b7b9ec5a02932541b86a5d04b70ad74f1bb72e61b74d81cd0e6f1b00a736cb4025d46359b771a2b4d4d06cac70e4865020058e0d136a9dfbc070ae6c1b81d7a
data/lib/legion/object.rb CHANGED
@@ -12,6 +12,7 @@ module Legion
12
12
  define_method "#{name}_async" do |*args|
13
13
  Thread.new do
14
14
  synchronize { @busy = true }
15
+ sleep 0
15
16
  self.class.callbacks[:before][name].call unless self.class.callbacks[:before][name].nil?
16
17
  send(name, *args)
17
18
  synchronize { @busy = false }
@@ -1,3 +1,3 @@
1
1
  module Legion
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
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
4
+ version: 0.0.5
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-08-05 00:00:00.000000000 Z
11
+ date: 2013-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler