opentox-ruby-api-wrapper 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. data/README.rdoc +1 -1
  2. data/Rakefile +7 -1
  3. data/VERSION +1 -1
  4. data/bin/install.sh +105 -0
  5. metadata +117 -6
@@ -14,7 +14,7 @@ Install the gem:
14
14
 
15
15
  == Usage
16
16
 
17
- - set the environment variables OPENTOX_COMPOUNDS, OPENTOX_FEATURES, OPENTOX_DATASETS, OPENTOX_FMINER to the base URI of the OpenTox REST webservices
17
+ - adjust the settings in $HOME/.opentox/config
18
18
  - require 'opentox-ruby-api-wrapper' in your ruby application
19
19
  - consult the rdoc API documentation for details
20
20
 
data/Rakefile CHANGED
@@ -10,17 +10,23 @@ begin
10
10
  gem.email = "helma@in-silico.ch"
11
11
  gem.homepage = "http://github.com/helma/opentox-ruby-api-wrapper"
12
12
  gem.authors = ["Christoph Helma"]
13
- gem.add_dependency "technoweenie-rest-client"
13
+ gem.add_dependency "rest-client"
14
14
  gem.add_dependency "sinatra"
15
15
  gem.add_dependency "rack"
16
16
  gem.add_dependency "rack-contrib"
17
17
  gem.add_dependency "thin"
18
18
  gem.add_dependency "cucumber"
19
19
  gem.add_dependency "ezmobius-redis-rb"
20
+ gem.add_dependency "emk-sinatra-url-for"
21
+ gem.add_dependency "cehoffman-sinatra-respond_to"
22
+ gem.add_dependency "dm-core"
23
+ gem.add_dependency "datamapper"
24
+ gem.add_dependency "do_sqlite3"
20
25
  gem.files = FileList["[A-Z]*", "{bin,generators,lib,test}/**/*", 'lib/jeweler/templates/.gitignore']
21
26
  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/*)
22
27
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
23
28
  end
29
+ Jeweler::GemcutterTasks.new
24
30
  rescue LoadError
25
31
  puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
26
32
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.1.1
@@ -0,0 +1,105 @@
1
+ #!/bin/bash
2
+ #Installation is tested on Debian Lenny Ubuntu 9.04
3
+ #Update the system
4
+
5
+ ERRLOG='install_err.log'
6
+ INSTALLLOG='install_log.log'
7
+ DATE=$(date +%Y/%m/%d\ %H:%M:%S)
8
+
9
+ echo "================================================="
10
+ echo "Please enshure that the sudo package is installed"
11
+ echo "on your system. "
12
+ echo "On Ubuntu Linux sudo is installed by default."
13
+ echo "If you are unshure check with it 'sudo ls'"
14
+ echo "and installed it with 'apt-get install sudo'"
15
+ echo "and add your username with visudo."
16
+ echo "================================================="
17
+ echo -n "To continue installation press y: "
18
+ read answer
19
+ if [ "$answer" != "y" ]
20
+ then
21
+ echo "exiting the script..."
22
+ exit 1
23
+ fi
24
+
25
+ echo "opentox webservice install log - " $DATE > $INSTALLLOG
26
+ echo "Installing: build-essential"
27
+ sudo apt-get install build-essential >> $INSTALLLOG 2>>$ERRLOG
28
+ echo "Installing: ruby 1.8 with its dev files"
29
+ sudo apt-get install ruby ruby1.8-dev >> $INSTALLLOG 2>>$ERRLOG
30
+ echo "Installing: gems rdoc rubygems and rake"
31
+ sudo apt-get install gems rdoc rubygems rake >> $INSTALLLOG 2>>$ERRLOG
32
+
33
+ echo "Installing rubygems from source. This may take some time"
34
+ wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz >> $INSTALLLOG 2>>$ERRLOG
35
+ tar xzfv rubygems-1.3.5.tgz 2>>$ERRLOG
36
+ cd rubygems-1.3.5 >> $INSTALLLOG 2>>$ERRLOG
37
+ sudo ruby setup.rb 2>>$ERRLOG
38
+ cd ..
39
+
40
+ echo "Adding http://gems.github.com to ruby gem sources"
41
+ sudo gem sources -a http://gems.github.com >> $INSTALLLOG 2>>$ERRLOG
42
+
43
+ #for debian lenny:
44
+ echo "Installing packages: zlib1g-dev tcl curl perl ssh tcl tk8.5"
45
+ sudo apt-get install zlib1g-dev tcl curl perl ssh tcl tk8.5 >> $INSTALLLOG 2>>$ERRLOG
46
+ echo "Installing git from source"
47
+ wget http://www.kernel.org/pub/software/scm/git/git-1.6.5.2.tar.gz >> $INSTALLLOG 2>>$ERRLOG
48
+ tar xzfv git-1.6.5.2.tar.gz 2>>$ERRLOG
49
+ cd git-1.6.5.2 >> $INSTALLLOG 2>>$ERRLOG
50
+ ./configure 2>>$ERRLOG
51
+ make 2>>$ERRLOG
52
+ make install 2>>$ERRLOG
53
+
54
+ echo "Installing the opentox webservices"
55
+ mkdir webservices >> $INSTALLLOG 2>>$ERRLOG
56
+ cd webservices >> $INSTALLLOG 2>>$ERRLOG
57
+
58
+ git clone git://github.com/helma/opentox-compound.git >> $INSTALLLOG 2>>$ERRLOG
59
+ git clone git://github.com/helma/opentox-feature.git >> $INSTALLLOG 2>>$ERRLOG
60
+ git clone git://github.com/helma/opentox-dataset.git >> $INSTALLLOG 2>>$ERRLOG
61
+ git clone git://github.com/helma/opentox-algorithm.git >> $INSTALLLOG 2>>$ERRLOG
62
+ git clone git://github.com/helma/opentox-model.git >> $INSTALLLOG 2>>$ERRLOG
63
+ git clone git://github.com/helma/opentox-test.git >> $INSTALLLOG 2>>$ERRLOG
64
+
65
+ cd opentox-compound >> $INSTALLLOG 2>>$ERRLOG
66
+ git checkout -b development origin/development >> $INSTALLLOG 2>>$ERRLOG
67
+ cd ../opentox-feature >> $INSTALLLOG 2>>$ERRLOG
68
+ git checkout -b development origin/development >> $INSTALLLOG 2>>$ERRLOG
69
+ cd ../opentox-dataset >> $INSTALLLOG 2>>$ERRLOG
70
+ git checkout -b development origin/development >> $INSTALLLOG 2>>$ERRLOG
71
+ cd ../opentox-algorithm >> $INSTALLLOG 2>>$ERRLOG
72
+ git checkout -b development origin/development >> $INSTALLLOG 2>>$ERRLOG
73
+ cd ../opentox-model >> $INSTALLLOG 2>>$ERRLOG
74
+ git checkout -b development origin/development >> $INSTALLLOG 2>>$ERRLOG
75
+ cd .. >> $INSTALLLOG 2>>$ERRLOG
76
+ git clone git://github.com/helma/opentox-ruby-api-wrapper.git >> $INSTALLLOG 2>>$ERRLOG
77
+ cd opentox-ruby-api-wrapper >> $INSTALLLOG 2>>$ERRLOG
78
+ git checkout -b development origin/development >> $INSTALLLOG 2>>$ERRLOG
79
+ rake install >> $INSTALLLOG 2>>$ERRLOG
80
+
81
+
82
+ cd ../opentox-compound >> $INSTALLLOG 2>>$ERRLOG
83
+ echo "Installing libopenssl-ruby"
84
+ sudo apt-get install libopenssl-ruby >> $INSTALLLOG 2>>$ERRLOG
85
+ echo "Installing dtach"
86
+ rake dtach:install >> $INSTALLLOG 2>>$ERRLOG
87
+ echo "Installing openbabel"
88
+ rake openbabel:install >> $INSTALLLOG 2>>$ERRLOG
89
+
90
+ #debian lenny missed liblink:
91
+ ln -s /usr/local/lib/libopenbabel.so.3 /usr/lib/libopenbabel.so.3 >> $INSTALLLOG 2>>$ERRLOG
92
+
93
+ rake redis:download >> $INSTALLLOG 2>>$ERRLOG
94
+ rake redis:install >> $INSTALLLOG 2>>$ERRLOG
95
+ #edit /home/[username]/.opentox/config/test.yaml set :base_dir: /home/[username]/webservices
96
+ sudo apt-get install libgsl0-dev >> $INSTALLLOG 2>>$ERRLOG
97
+ sudo apt-get install swig >> $INSTALLLOG 2>>$ERRLOG
98
+ sudo apt-get install curl >> $INSTALLLOG 2>>$ERRLOG
99
+ cd ../opentox-algorithm >> $INSTALLLOG 2>>$ERRLOG
100
+ echo "Installing fminer"
101
+ rake fminer:install >> $INSTALLLOG 2>>$ERRLOG
102
+ sudo apt-get install libsqlite3-dev >> $INSTALLLOG 2>>$ERRLOG
103
+
104
+
105
+ mkdir ../opentox-model/db >> $INSTALLLOG 2>>$ERRLOG
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opentox-ruby-api-wrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christoph Helma
@@ -9,11 +9,121 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-06 00:00:00 +02:00
13
- default_executable:
12
+ date: 2009-11-17 00:00:00 +01:00
13
+ default_executable: install.sh
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: technoweenie-rest-client
16
+ name: rest-client
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: "0"
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: sinatra
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: "0"
34
+ version:
35
+ - !ruby/object:Gem::Dependency
36
+ name: rack
37
+ type: :runtime
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: "0"
44
+ version:
45
+ - !ruby/object:Gem::Dependency
46
+ name: rack-contrib
47
+ type: :runtime
48
+ version_requirement:
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: "0"
54
+ version:
55
+ - !ruby/object:Gem::Dependency
56
+ name: thin
57
+ type: :runtime
58
+ version_requirement:
59
+ version_requirements: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: "0"
64
+ version:
65
+ - !ruby/object:Gem::Dependency
66
+ name: cucumber
67
+ type: :runtime
68
+ version_requirement:
69
+ version_requirements: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: "0"
74
+ version:
75
+ - !ruby/object:Gem::Dependency
76
+ name: ezmobius-redis-rb
77
+ type: :runtime
78
+ version_requirement:
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: "0"
84
+ version:
85
+ - !ruby/object:Gem::Dependency
86
+ name: emk-sinatra-url-for
87
+ type: :runtime
88
+ version_requirement:
89
+ version_requirements: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ version: "0"
94
+ version:
95
+ - !ruby/object:Gem::Dependency
96
+ name: cehoffman-sinatra-respond_to
97
+ type: :runtime
98
+ version_requirement:
99
+ version_requirements: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: "0"
104
+ version:
105
+ - !ruby/object:Gem::Dependency
106
+ name: dm-core
107
+ type: :runtime
108
+ version_requirement:
109
+ version_requirements: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - - ">="
112
+ - !ruby/object:Gem::Version
113
+ version: "0"
114
+ version:
115
+ - !ruby/object:Gem::Dependency
116
+ name: datamapper
117
+ type: :runtime
118
+ version_requirement:
119
+ version_requirements: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - ">="
122
+ - !ruby/object:Gem::Version
123
+ version: "0"
124
+ version:
125
+ - !ruby/object:Gem::Dependency
126
+ name: do_sqlite3
17
127
  type: :runtime
18
128
  version_requirement:
19
129
  version_requirements: !ruby/object:Gem::Requirement
@@ -24,8 +134,8 @@ dependencies:
24
134
  version:
25
135
  description: Ruby wrapper for the OpenTox REST API (http://www.opentox.org)
26
136
  email: helma@in-silico.ch
27
- executables: []
28
-
137
+ executables:
138
+ - install.sh
29
139
  extensions: []
30
140
 
31
141
  extra_rdoc_files:
@@ -36,6 +146,7 @@ files:
36
146
  - README.rdoc
37
147
  - Rakefile
38
148
  - VERSION
149
+ - bin/install.sh
39
150
  - lib/algorithm.rb
40
151
  - lib/compound.rb
41
152
  - lib/dataset.rb