tubes 0.1.15 → 0.1.16
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/tubes.rb +4 -4
- metadata +3 -3
data/lib/tubes.rb
CHANGED
@@ -75,7 +75,7 @@ class Tube
|
|
75
75
|
def invoke(klass, *args)
|
76
76
|
@invocations += 1
|
77
77
|
|
78
|
-
dir = File.join(@dir, "#{description(klass)}")
|
78
|
+
dir = File.join(@dir, "#{description(klass)}") unless @dir.nil?
|
79
79
|
segment = klass.new dir, :order => @order, :parent => self
|
80
80
|
|
81
81
|
output_file = segment_cache segment
|
@@ -108,10 +108,10 @@ class Tube
|
|
108
108
|
|
109
109
|
|
110
110
|
def description(klass)
|
111
|
-
if @order.
|
112
|
-
"#{@order}-#{@invocations}-#{underscore(klass.name.split('::')[-1])}"
|
113
|
-
else
|
111
|
+
if @order.nil?
|
114
112
|
"#{@invocations}-#{underscore(klass.name.split('::')[-1])}"
|
113
|
+
else
|
114
|
+
"#{@order}-#{@invocations}-#{underscore(klass.name.split('::')[-1])}"
|
115
115
|
end
|
116
116
|
end
|
117
117
|
|
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.1.
|
4
|
+
version: 0.1.16
|
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: 2012-
|
12
|
+
date: 2012-12-04 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.
|
@@ -39,7 +39,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
39
39
|
version: '0'
|
40
40
|
requirements: []
|
41
41
|
rubyforge_project:
|
42
|
-
rubygems_version: 1.8.
|
42
|
+
rubygems_version: 1.8.24
|
43
43
|
signing_key:
|
44
44
|
specification_version: 3
|
45
45
|
summary: Tubes
|