taskbag 1.0.1 → 1.0.2

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: 5288f2fb62c9793359b7daf2aa8db1085fbfa68f
4
- data.tar.gz: 7eb883ca3a5edc7b197e89e34e78597e1fe4fe9e
3
+ metadata.gz: 6104422a4067a937d2139e05fa644e676d7e0933
4
+ data.tar.gz: a354e49b9fa3deec00738d544e343d63fff1fb40
5
5
  SHA512:
6
- metadata.gz: e0d048df7e90769cb0236e2ec4e7a81a7788c200c12a3fce87a27aca7c779066357873f7b3663623a931b0af8682bac2bed66c8d4177e30f5b47d1278a3d3ea0
7
- data.tar.gz: bfac05de3e33f37cb965f27a4f59418a1bf1eaed3edda3996c0f5e96f9182c5a916a52d8b4271b0e6c60f0cb0470ae5424fb70439a48cdc6e5ef237b1a97876f
6
+ metadata.gz: 4f0e5e4b172a6eb3a863658227bc5b044307270e0b423f75c3cd7f17b96adde322048edd50adaea96d81fb5b52dfe2fb29d914056afb1c984b90108874ea2126
7
+ data.tar.gz: bef99d3b30f7fe53e48844b18a5d77110e8c4643a0d897e45a25c2b827b00f9428a750164b0f3424f04ae44cd56b0ba8ef26701cfee9cf926bd37c3852c9e510
data/lib/taskbag/bag.rb CHANGED
@@ -15,7 +15,9 @@ module TaskBag
15
15
  end
16
16
 
17
17
  def add(object)
18
- @tasks << object
18
+ @semaphore.synchronize {
19
+ @tasks << object
20
+ }
19
21
  end
20
22
 
21
23
  def close
@@ -1,3 +1,3 @@
1
1
  module TaskBag
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: taskbag
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carlos Palhares
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-22 00:00:00.000000000 Z
11
+ date: 2013-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler