diff options
author | Christoph Helma <helma@in-silico.de> | 2009-11-10 15:16:49 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.de> | 2009-11-10 15:16:49 +0100 |
commit | 331d50f69af8f8b8df7f600d3d82533811344bb0 (patch) | |
tree | dd2c6cceb95ca27d4f409ee125bc125c0bff249e | |
parent | 28c8afb3e885da6f5c23a8f0608aff7d4fd6bf1c (diff) |
Installation instructions for openbabel ruby bindings
-rw-r--r-- | Rakefile | 2 | ||||
-rw-r--r-- | lib/opentox-ruby-api-wrapper.rb | 8 |
2 files changed, 8 insertions, 2 deletions
@@ -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 |