threadpool 0.1.0 → 0.1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/threadpool.rb +4 -0
  2. data/threadpool.gemspec +1 -1
  3. metadata +1 -1
data/lib/threadpool.rb CHANGED
@@ -55,6 +55,10 @@ class ThreadPool
55
55
  end
56
56
 
57
57
  def process (*args, &block)
58
+ unless block || @block
59
+ raise ArgumentError, 'you must pass a block'
60
+ end
61
+
58
62
  @mutex.synchronize {
59
63
  raise 'unable to add work while shutting down' if @shutdown
60
64
 
data/threadpool.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new {|s|
2
2
  s.name = 'threadpool'
3
- s.version = '0.1.0'
3
+ s.version = '0.1.0.1'
4
4
  s.author = 'meh.'
5
5
  s.email = 'meh@paranoici.org'
6
6
  s.homepage = 'http://github.com/meh/ruby-threadpool'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: threadpool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: