taverna-t2flow 0.4.3 → 0.4.4
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/CHANGES.rdoc +4 -0
- data/Rakefile +1 -1
- data/lib/t2flow/dot.rb +32 -36
- data/lib/t2flow/parser.rb +4 -4
- data/taverna-t2flow.gemspec +2 -2
- metadata +4 -4
data/CHANGES.rdoc
CHANGED
data/Rakefile
CHANGED
data/lib/t2flow/dot.rb
CHANGED
@@ -136,24 +136,22 @@ module T2Flow
|
|
136
136
|
end
|
137
137
|
|
138
138
|
def write_source_cluster(stream, sources, prefix) # :nodoc:
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
stream.puts ' }'
|
156
|
-
end
|
139
|
+
stream.puts " subgraph cluster_#{prefix}sources {"
|
140
|
+
stream.puts ' style="dotted"'
|
141
|
+
stream.puts ' label="Workflow Inputs"'
|
142
|
+
stream.puts ' fontname="Helvetica"'
|
143
|
+
stream.puts ' fontsize="10"'
|
144
|
+
stream.puts ' fontcolor="black"'
|
145
|
+
stream.puts ' rank="same"'
|
146
|
+
stream.puts " \"#{prefix}WORKFLOWINTERNALSOURCECONTROL\" ["
|
147
|
+
stream.puts ' shape="triangle",'
|
148
|
+
stream.puts ' width="0.2",'
|
149
|
+
stream.puts ' height="0.2",'
|
150
|
+
stream.puts ' fillcolor="brown1"'
|
151
|
+
stream.puts ' label=""'
|
152
|
+
stream.puts ' ]'
|
153
|
+
sources.each {|source| write_source(stream, source, prefix)}
|
154
|
+
stream.puts ' }'
|
157
155
|
end
|
158
156
|
|
159
157
|
def write_source(stream, source, prefix) # :nodoc:
|
@@ -167,24 +165,22 @@ module T2Flow
|
|
167
165
|
end
|
168
166
|
|
169
167
|
def write_sink_cluster(stream, sinks, prefix) # :nodoc:
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
stream.puts ' }'
|
187
|
-
end
|
168
|
+
stream.puts " subgraph cluster_#{prefix}sinks {"
|
169
|
+
stream.puts ' style="dotted"'
|
170
|
+
stream.puts ' label="Workflow Outputs"'
|
171
|
+
stream.puts ' fontname="Helvetica"'
|
172
|
+
stream.puts ' fontsize="10"'
|
173
|
+
stream.puts ' fontcolor="black"'
|
174
|
+
stream.puts ' rank="same"'
|
175
|
+
stream.puts " \"#{prefix}WORKFLOWINTERNALSINKCONTROL\" ["
|
176
|
+
stream.puts ' shape="invtriangle",'
|
177
|
+
stream.puts ' width="0.2",'
|
178
|
+
stream.puts ' height="0.2",'
|
179
|
+
stream.puts ' fillcolor="chartreuse3"'
|
180
|
+
stream.puts ' label=""'
|
181
|
+
stream.puts ' ]'
|
182
|
+
sinks.each {|sink| write_sink(stream, sink, prefix)}
|
183
|
+
stream.puts ' }'
|
188
184
|
end
|
189
185
|
|
190
186
|
def write_sink(stream, sink, prefix) # :nodoc:
|
data/lib/t2flow/parser.rb
CHANGED
@@ -175,8 +175,8 @@ module T2Flow
|
|
175
175
|
datalink = Datalink.new
|
176
176
|
|
177
177
|
if sink = link.find_first('./t2:sink')
|
178
|
-
if
|
179
|
-
datalink.sink = "#{
|
178
|
+
if processor = sink.find_first('./t2:processor')
|
179
|
+
datalink.sink = "#{processor.content}:"
|
180
180
|
else
|
181
181
|
datalink.sink = ""
|
182
182
|
end
|
@@ -184,8 +184,8 @@ module T2Flow
|
|
184
184
|
end
|
185
185
|
|
186
186
|
if source = link.find_first('./t2:source')
|
187
|
-
if
|
188
|
-
datalink.source = "#{
|
187
|
+
if processor = source.find_first('./t2:processor')
|
188
|
+
datalink.source = "#{processor.content}:"
|
189
189
|
else
|
190
190
|
datalink.source = ""
|
191
191
|
end
|
data/taverna-t2flow.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "taverna-t2flow"
|
8
|
-
s.version = "0.4.
|
8
|
+
s.version = "0.4.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Finn Bacall", "Robert Haines", "David Withers", "Mannie Tagarira"]
|
12
|
-
s.date = "2013-
|
12
|
+
s.date = "2013-02-06"
|
13
13
|
s.description = "This a gem developed by myGrid for the purpose of interacting with Taverna 2 workflows. An example use would be the image genaration for the model representing Taverna 2 workflows as used in myExperiment."
|
14
14
|
s.email = ["finn.bacall@cs.man.ac.uk", "rhaines@manchester.ac.uk"]
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: taverna-t2flow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 7
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 4
|
10
|
+
version: 0.4.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Finn Bacall
|
@@ -18,7 +18,7 @@ autorequire:
|
|
18
18
|
bindir: bin
|
19
19
|
cert_chain: []
|
20
20
|
|
21
|
-
date: 2013-
|
21
|
+
date: 2013-02-06 00:00:00 Z
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
24
24
|
prerelease: false
|