workers 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.gitignore CHANGED
@@ -17,3 +17,5 @@ test/version_tmp
17
17
  tmp
18
18
  .rvmrc
19
19
  *.swp
20
+ .ruby-version
21
+ .ruby-gemset
@@ -36,6 +36,8 @@ module Workers
36
36
  @state = :running
37
37
  @run_thread = Thread.current
38
38
 
39
+ return [] if @tasks.empty?
40
+
39
41
  @internal_lock.synchronize do
40
42
  @tasks.each do |task|
41
43
  @pool.perform { task.run }
@@ -1,3 +1,3 @@
1
1
  module Workers
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-25 00:00:00.000000000 Z
12
+ date: 2013-06-01 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Workers is a Ruby gem for performing work in background threads.
15
15
  email: