From 331d50f69af8f8b8df7f600d3d82533811344bb0 Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Tue, 10 Nov 2009 15:16:49 +0100 Subject: Installation instructions for openbabel ruby bindings --- Rakefile | 2 +- lib/opentox-ruby-api-wrapper.rb | 8 +++++++- 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 -- cgit v1.2.3