search_biomodel 2.1.1 → 2.1.2

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.1
1
+ 2.1.2
@@ -39,7 +39,7 @@ module SysMODB
39
39
 
40
40
  results.each_with_index do |a, i|
41
41
  sbml_results[i] = Hash.new
42
- sbml_results[i] = Nori.parse(@connection.getSimpleModel(a))[:simple_models][:simple_model]
42
+ sbml_results[i] = Nori.parse(@connection.getSimpleModel(a))[:simple_models][:simple_model] unless a.nil?
43
43
  end
44
44
  sbml_results
45
45
  end
@@ -52,7 +52,7 @@ module SysMODB
52
52
  soap.body = {:id => model_id, :attributes! => {:id => {"xsi:type" => "xsd:string"}}}
53
53
  end
54
54
 
55
- search_results = response.to_hash[:get_model_by_id_response][:get_model_by_id_return]
55
+ search_results = response.to_hash[:get_model_by_id_response][:get_model_by_id_return] unless response.nil?
56
56
  if search_results.nil?
57
57
  []
58
58
  else
@@ -68,7 +68,7 @@ module SysMODB
68
68
  soap.body = {:id => model_id, :attributes! => {:id => {"xsi:type" => "xsd:string"}}}
69
69
  end
70
70
 
71
- search_results = response.to_hash[:get_simple_model_by_id_response][:get_simple_model_by_id_return]
71
+ search_results = response.to_hash[:get_simple_model_by_id_response][:get_simple_model_by_id_return] unless response.nil?
72
72
 
73
73
  if search_results.nil?
74
74
  []
@@ -87,7 +87,7 @@ module SysMODB
87
87
  soap.body = {:ChEBBId => search_string, :attributes! => {:ChEBBId => {"xsi:type" => "xsd:string"}}}
88
88
  end
89
89
 
90
- search_results = response.to_hash[:get_models_id_by_ch_ebi_id_response][:get_models_id_by_ch_ebi_id_return][:get_models_id_by_ch_ebi_id_return]
90
+ search_results = response.to_hash[:get_models_id_by_ch_ebi_id_response][:get_models_id_by_ch_ebi_id_return][:get_models_id_by_ch_ebi_id_return] unless response.nil?
91
91
  if search_results.nil?
92
92
  []
93
93
  else
@@ -143,7 +143,7 @@ module SysMODB
143
143
  response = client.request(:biom, "get_all_models") do
144
144
  soap.body = {:modelName => "?", :attributes! => {:modelName => {"xsi:type" => "xsd:string"}}}
145
145
  end
146
- search_results = response.to_hash[:multi_ref][:item]
146
+ search_results = response.to_hash[:multi_ref][:item] unless response.nil?
147
147
  if search_results.nil?
148
148
  []
149
149
  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.1"
8
+ s.version = "2.1.2"
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: 9
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
8
  - 1
9
- - 1
10
- version: 2.1.1
9
+ - 2
10
+ version: 2.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Niall Beard