taverna-t2flow 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/t2flow/parser.rb +4 -0
  2. metadata +9 -30
data/lib/t2flow/parser.rb CHANGED
@@ -83,6 +83,8 @@ module T2Flow
83
83
  when "name": source.name = elt.content
84
84
  when "annotations"
85
85
  elt.each do |ann|
86
+ next if ann.nil? || ann.empty?
87
+
86
88
  node = LibXML::XML::Parser.string("#{ann}").parse
87
89
  content_node = node.find_first("//annotationBean")
88
90
  content = content_node.child.next.content
@@ -110,6 +112,8 @@ module T2Flow
110
112
  when "name": sink.name = elt.content
111
113
  when "annotations"
112
114
  elt.each do |ann|
115
+ next if ann.nil? || ann.empty?
116
+
113
117
  node = LibXML::XML::Parser.string("#{ann}").parse
114
118
  content_node = node.find_first("//annotationBean")
115
119
  content = content_node.child.next.content
metadata CHANGED
@@ -1,13 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: taverna-t2flow
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 1
9
- - 2
10
- version: 0.1.2
4
+ version: 0.1.3
11
5
  platform: ruby
12
6
  authors:
13
7
  - Mannie Tagarira
@@ -20,20 +14,14 @@ default_executable:
20
14
  dependencies:
21
15
  - !ruby/object:Gem::Dependency
22
16
  name: libxml-ruby
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
26
20
  requirements:
27
21
  - - ">="
28
22
  - !ruby/object:Gem::Version
29
- hash: 21
30
- segments:
31
- - 1
32
- - 1
33
- - 3
34
23
  version: 1.1.3
35
- type: :runtime
36
- version_requirements: *id001
24
+ version:
37
25
  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.
38
26
  email: mannie@mygrid.org.uk
39
27
  executables: []
@@ -45,6 +33,7 @@ extra_rdoc_files:
45
33
  - LICENCE
46
34
  - ChangeLog.rdoc
47
35
  files:
36
+ - lib/t2flow
48
37
  - lib/t2flow/dot.rb
49
38
  - lib/t2flow/model.rb
50
39
  - lib/t2flow/parser.rb
@@ -53,8 +42,6 @@ files:
53
42
  - ChangeLog.rdoc
54
43
  has_rdoc: true
55
44
  homepage: http://www.mygrid.org.uk/
56
- licenses: []
57
-
58
45
  post_install_message:
59
46
  rdoc_options:
60
47
  - -N
@@ -64,29 +51,21 @@ rdoc_options:
64
51
  require_paths:
65
52
  - lib
66
53
  required_ruby_version: !ruby/object:Gem::Requirement
67
- none: false
68
54
  requirements:
69
55
  - - ">="
70
56
  - !ruby/object:Gem::Version
71
- hash: 21
72
- segments:
73
- - 1
74
- - 0
75
- - 1
76
57
  version: 1.0.1
58
+ version:
77
59
  required_rubygems_version: !ruby/object:Gem::Requirement
78
- none: false
79
60
  requirements:
80
61
  - - ">="
81
62
  - !ruby/object:Gem::Version
82
- hash: 3
83
- segments:
84
- - 0
85
63
  version: "0"
64
+ version:
86
65
  requirements: []
87
66
 
88
67
  rubyforge_project:
89
- rubygems_version: 1.3.7
68
+ rubygems_version: 1.3.1
90
69
  signing_key:
91
70
  specification_version: 1
92
71
  summary: Support for interacting with the Taverna 2 workflow system (T2Flow).