summaryrefslogtreecommitdiff
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
parent28c8afb3e885da6f5c23a8f0608aff7d4fd6bf1c (diff)
Installation instructions for openbabel ruby bindings
-rw-r--r--Rakefile2
-rw-r--r--lib/opentox-ruby-api-wrapper.rb8
2 files changed, 8 insertions, 2 deletions
diff --git a/Rakefile b/Rakefile
index ef29218..cdd29c5 100644
--- a/Rakefile
+++ b/Rakefile
@@ -16,7 +16,7 @@ begin
gem.add_dependency "rack-contrib"
gem.add_dependency "thin"
gem.add_dependency "cucumber"
-
+ gem.add_dependency "ezmobius-redis-rb"
gem.files = FileList["[A-Z]*", "{bin,generators,lib,test}/**/*", 'lib/jeweler/templates/.gitignore']
gem.files.include %w(lib/tasks/opentox.rb, lib/tasks/redis.rb, lib/environment.rb, lib/algorithm.rb, lib/compound.rb, lib/dataset.rb, lib/feature.rb, lib/model.rb, lib/utils.rb, lib/templates/*)
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
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