tubes 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/tubes.rb +4 -4
  2. metadata +1 -1
@@ -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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tubes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: