t2-server 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,9 @@
1
1
  = Changes log for the T2 Ruby Gem
2
2
 
3
+ == Version 0.9.3
4
+
5
+ * Correctly handle missing values in output ports.
6
+
3
7
  == Version 0.9.2
4
8
 
5
9
  * Cleanup of the README and some delete additions.
@@ -291,12 +291,12 @@ module T2Server
291
291
  private
292
292
 
293
293
  # Parse the XML port description into a raw data value structure.
294
- def parse_data(node)
294
+ def parse_data(node, current_depth = 0)
295
295
  case xml_node_name(node)
296
296
  when 'list'
297
297
  data = []
298
298
  xml_children(node) do |child|
299
- data << parse_data(child)
299
+ data << parse_data(child, current_depth + 1)
300
300
  end
301
301
  return data
302
302
  when 'value'
@@ -306,6 +306,12 @@ module T2Server
306
306
  when 'error'
307
307
  @error = true
308
308
  return PortValue.new(self, xml_node_attribute(node, 'href'), true)
309
+ when 'absent'
310
+ if current_depth == @depth
311
+ return PortValue.new(self, "", false, "application/x-empty")
312
+ else
313
+ return []
314
+ end
309
315
  end
310
316
  end
311
317
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "t2-server"
8
- s.version = "0.9.2"
8
+ s.version = "0.9.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Robert Haines"]
12
- s.date = "2012-04-30"
12
+ s.date = "2013-05-20"
13
13
  s.description = "This gem provides access to the Taverna 2 Server REST interface from Ruby."
14
14
  s.email = ["rhaines@manchester.ac.uk"]
15
15
  s.executables = ["t2-delete-runs", "t2-run-workflow", "t2-server-info", "t2-get-output", "t2-server-admin"]
@@ -59,6 +59,7 @@ Gem::Specification.new do |s|
59
59
  "test/workflows/in.txt",
60
60
  "test/workflows/list_and_value.t2flow",
61
61
  "test/workflows/list_with_errors.t2flow",
62
+ "test/workflows/no-ports.t2flow",
62
63
  "test/workflows/pass_through.t2flow",
63
64
  "test/workflows/secure/basic-http.t2flow",
64
65
  "test/workflows/secure/basic-https.t2flow",
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 9
4
- :patch: 2
4
+ :patch: 3
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: t2-server
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
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-10-08 00:00:00.000000000 Z
12
+ date: 2013-05-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake