summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.de>2009-11-10 15:16:49 +0100
committerChristoph Helma <helma@in-silico.de>2009-11-10 15:16:49 +0100
commit331d50f69af8f8b8df7f600d3d82533811344bb0 (patch)
treedd2c6cceb95ca27d4f409ee125bc125c0bff249e /lib
parent28c8afb3e885da6f5c23a8f0608aff7d4fd6bf1c (diff)
Installation instructions for openbabel ruby bindings
Diffstat (limited to 'lib')
-rw-r--r--lib/opentox-ruby-api-wrapper.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/opentox-ruby-api-wrapper.rb b/lib/opentox-ruby-api-wrapper.rb
index 3e66528..c01fd7d 100644
--- a/lib/opentox-ruby-api-wrapper.rb
+++ b/lib/opentox-ruby-api-wrapper.rb
@@ -1,7 +1,13 @@
-['rubygems', 'sinatra', 'sinatra/url_for', 'redis','builder', 'rest_client', 'yaml', 'cgi', 'openbabel', 'spork', 'environment'].each do |lib|
+['rubygems', 'sinatra', 'sinatra/url_for', 'redis','builder', 'rest_client', 'yaml', 'cgi', 'spork', 'environment'].each do |lib|
require lib
end
+begin
+ require 'openbabel'
+rescue
+ puts "Please install Openbabel with 'rake openbabel:install' in the compound component"
+end
+
['opentox', 'compound','feature','dataset','algorithm','model','task','utils'].each do |lib|
require lib
end