creeper 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/creeper.rb +2 -2
- data/lib/creeper/version.rb +1 -1
- data/lib/creeper/worker.rb +3 -1
- metadata +1 -1
data/lib/creeper.rb
CHANGED
@@ -98,10 +98,10 @@ module Creeper
|
|
98
98
|
|
99
99
|
## daemon ##
|
100
100
|
|
101
|
-
def work(jobs = nil, size =
|
101
|
+
def work(jobs = nil, size = nil)
|
102
102
|
require 'creeper/worker'
|
103
103
|
|
104
|
-
Creeper.pool_size = size
|
104
|
+
Creeper.pool_size = size || Creeper.pool_size
|
105
105
|
|
106
106
|
Creeper::Worker.work(jobs, Creeper.pool_size)
|
107
107
|
end
|
data/lib/creeper/version.rb
CHANGED
data/lib/creeper/worker.rb
CHANGED