tubes 0.2.1 → 0.2.2
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 +2 -0
- metadata +2 -2
data/lib/tubes.rb
CHANGED
@@ -13,11 +13,13 @@ class Tube
|
|
13
13
|
attr :stats
|
14
14
|
attr :thread_lock
|
15
15
|
attr :threads
|
16
|
+
attr :topdir
|
16
17
|
|
17
18
|
def initialize(*args)
|
18
19
|
options = args.last.is_a?(Hash) ? args.pop : {}
|
19
20
|
dir = args.first
|
20
21
|
|
22
|
+
@topdir = @parent ? @parent.topdir : dir
|
21
23
|
@dir = dir
|
22
24
|
@type = options.delete(:type) || :serial
|
23
25
|
@parent = options.delete(:parent) # This is nil only for the top level tube.
|
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.
|
4
|
+
version: 0.2.2
|
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-
|
12
|
+
date: 2013-02-20 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: A simple way to build a pipeline of tasks. These tasks can be configured
|
15
15
|
to run in serial, parallel or any combination thereof.
|