taverna-t2flow 0.4.0 → 0.4.1

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 CHANGED
@@ -1,5 +1,9 @@
1
1
  = Changes log for the T2Flow Ruby Gem
2
2
 
3
+ == Version 0.4.1
4
+
5
+ * Fixed how "merge" datalinks are extracted.
6
+
3
7
  == Version 0.4.0
4
8
 
5
9
  * Made parser more robust.
data/README.rdoc CHANGED
@@ -1,6 +1,6 @@
1
1
  = Taverna[http://taverna.sourceforge.net] 2 Interaction Gem
2
2
 
3
- Authors:: Robert Haines, Mannie Tagarira, David Withers
3
+ Authors:: Finn Bacall, Robert Haines, Mannie Tagarira, David Withers
4
4
  Contact:: mailto:support@mygrid.org.uk
5
5
  URL:: http://www.taverna.org.uk/
6
6
  Licence:: LGPL 3 (See LICENCE or http://www.gnu.org/licenses/lgpl.html)
data/Rakefile CHANGED
@@ -14,7 +14,7 @@ require 'jeweler'
14
14
 
15
15
  task :default => [:test]
16
16
 
17
- T2FLOW_GEM_VERSION = "0.4.0"
17
+ T2FLOW_GEM_VERSION = "0.4.1"
18
18
 
19
19
  Jeweler::Tasks.new do |s|
20
20
  s.name = "taverna-t2flow"
data/lib/t2flow/parser.rb CHANGED
@@ -175,13 +175,21 @@ module T2Flow
175
175
  datalink = Datalink.new
176
176
 
177
177
  if sink = link.find_first('./t2:sink')
178
- datalink.sink = (sink["type"] == "processor" ? "#{sink.find_first('./t2:processor').content}:" : "") +
179
- "#{sink.find_first('./t2:port').content}"
178
+ if sink["type"] == "processor" || sink["type"] == "merge"
179
+ datalink.sink = "#{sink.find_first('./t2:processor').content}:"
180
+ else
181
+ datalink.sink = ""
182
+ end
183
+ datalink.sink += "#{sink.find_first('./t2:port').content}"
180
184
  end
181
185
 
182
186
  if source = link.find_first('./t2:source')
183
- datalink.source = (source["type"] == "processor" ? "#{source.find_first('./t2:processor').content}:" : "") +
184
- "#{source.find_first('./t2:port').content}"
187
+ if source["type"] == "processor" || source["type"] == "merge"
188
+ datalink.source = "#{source.find_first('./t2:processor').content}:"
189
+ else
190
+ datalink.source = ""
191
+ end
192
+ datalink.source += "#{source.find_first('./t2:port').content}"
185
193
  end
186
194
 
187
195
  dataflow.datalinks << datalink
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "taverna-t2flow"
8
- s.version = "0.4.0"
8
+ s.version = "0.4.1"
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 = "2012-12-03"
12
+ s.date = "2013-01-07"
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: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 0
10
- version: 0.4.0
9
+ - 1
10
+ version: 0.4.1
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: 2012-12-03 00:00:00 Z
21
+ date: 2013-01-07 00:00:00 Z
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
24
24
  prerelease: false