taverna-t2flow 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES.rdoc CHANGED
@@ -1,5 +1,9 @@
1
1
  = Changes log for the T2Flow Ruby Gem
2
2
 
3
+ == Version 0.4.4
4
+
5
+ * Fixed issue with flow control in nested workflows with no input ports.
6
+
3
7
  == Version 0.4.3
4
8
 
5
9
  * Fixed issue with nested workflow names and control links not being connected.
data/Rakefile CHANGED
@@ -14,7 +14,7 @@ require 'jeweler'
14
14
 
15
15
  task :default => [:test]
16
16
 
17
- T2FLOW_GEM_VERSION = "0.4.3"
17
+ T2FLOW_GEM_VERSION = "0.4.4"
18
18
 
19
19
  Jeweler::Tasks.new do |s|
20
20
  s.name = "taverna-t2flow"
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
- if sources.length > 0
140
- stream.puts " subgraph cluster_#{prefix}sources {"
141
- stream.puts ' style="dotted"'
142
- stream.puts ' label="Workflow Inputs"'
143
- stream.puts ' fontname="Helvetica"'
144
- stream.puts ' fontsize="10"'
145
- stream.puts ' fontcolor="black"'
146
- stream.puts ' rank="same"'
147
- stream.puts " \"#{prefix}WORKFLOWINTERNALSOURCECONTROL\" ["
148
- stream.puts ' shape="triangle",'
149
- stream.puts ' width="0.2",'
150
- stream.puts ' height="0.2",'
151
- stream.puts ' fillcolor="brown1"'
152
- stream.puts ' label=""'
153
- stream.puts ' ]'
154
- sources.each {|source| write_source(stream, source, prefix)}
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
- if sinks.length > 0
171
- stream.puts " subgraph cluster_#{prefix}sinks {"
172
- stream.puts ' style="dotted"'
173
- stream.puts ' label="Workflow Outputs"'
174
- stream.puts ' fontname="Helvetica"'
175
- stream.puts ' fontsize="10"'
176
- stream.puts ' fontcolor="black"'
177
- stream.puts ' rank="same"'
178
- stream.puts " \"#{prefix}WORKFLOWINTERNALSINKCONTROL\" ["
179
- stream.puts ' shape="invtriangle",'
180
- stream.puts ' width="0.2",'
181
- stream.puts ' height="0.2",'
182
- stream.puts ' fillcolor="chartreuse3"'
183
- stream.puts ' label=""'
184
- stream.puts ' ]'
185
- sinks.each {|sink| write_sink(stream, sink, prefix)}
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 sink["type"] == "processor" || sink["type"] == "merge"
179
- datalink.sink = "#{sink.find_first('./t2:processor').content}:"
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 source["type"] == "processor" || source["type"] == "merge"
188
- datalink.source = "#{source.find_first('./t2:processor').content}:"
187
+ if processor = source.find_first('./t2:processor')
188
+ datalink.source = "#{processor.content}:"
189
189
  else
190
190
  datalink.source = ""
191
191
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "taverna-t2flow"
8
- s.version = "0.4.3"
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-01-29"
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: 9
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 3
10
- version: 0.4.3
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-01-29 00:00:00 Z
21
+ date: 2013-02-06 00:00:00 Z
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
24
24
  prerelease: false