tubes 0.2.2 → 0.2.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/lib/tubes.rb +4 -4
- metadata +1 -1
data/lib/tubes.rb
CHANGED
@@ -19,17 +19,17 @@ class Tube
|
|
19
19
|
options = args.last.is_a?(Hash) ? args.pop : {}
|
20
20
|
dir = args.first
|
21
21
|
|
22
|
-
@topdir = @parent ? @parent.topdir : dir
|
23
22
|
@dir = dir
|
24
23
|
@type = options.delete(:type) || :serial
|
24
|
+
|
25
25
|
@parent = options.delete(:parent) # This is nil only for the top level tube.
|
26
|
+
@topdir = @parent ? @parent.topdir : dir
|
27
|
+
@thread_lock = @parent ? @parent.thread_lock : Monitor.new
|
28
|
+
@stats = @parent ? @parent.stats : {}
|
26
29
|
|
27
30
|
@serial_count = 0
|
28
31
|
@parallel_count = 0
|
29
32
|
|
30
|
-
@thread_lock = @parent ? @parent.thread_lock : Monitor.new
|
31
|
-
@stats = @parent ? @parent.stats : {}
|
32
|
-
|
33
33
|
@name = underscore self.class.name.split('::')[-1]
|
34
34
|
@order = options.delete(:order)
|
35
35
|
|