search_biomodel 2.1.2 → 2.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.2
1
+ 2.1.3
@@ -38,8 +38,10 @@ module SysMODB
38
38
  sbml_results = Array.new
39
39
 
40
40
  results.each_with_index do |a, i|
41
- sbml_results[i] = Hash.new
42
- sbml_results[i] = Nori.parse(@connection.getSimpleModel(a))[:simple_models][:simple_model] unless a.nil?
41
+ if !a.nil?
42
+ sbml_results[i] = Hash.new
43
+ sbml_results[i] = Nori.parse(@connection.getSimpleModel(a))[:simple_models][:simple_model]
44
+ end
43
45
  end
44
46
  sbml_results
45
47
  end
@@ -68,8 +70,9 @@ module SysMODB
68
70
  soap.body = {:id => model_id, :attributes! => {:id => {"xsi:type" => "xsd:string"}}}
69
71
  end
70
72
 
71
- search_results = response.to_hash[:get_simple_model_by_id_response][:get_simple_model_by_id_return] unless response.nil?
72
-
73
+ if !response.nil?
74
+ search_results = response.to_hash[:get_simple_model_by_id_response][:get_simple_model_by_id_return]
75
+ end
73
76
  if search_results.nil?
74
77
  []
75
78
  else
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{search_biomodel}
8
- s.version = "2.1.2"
8
+ s.version = "2.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Niall Beard"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: search_biomodel
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
8
  - 1
9
- - 2
10
- version: 2.1.2
9
+ - 3
10
+ version: 2.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Niall Beard