opentox-dataset 5.0.0pre1

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.
@@ -0,0 +1,61 @@
1
+ #!/bin/sh
2
+
3
+ # Installs Opentox Webservice.
4
+ # Author: Christoph Helma, Andreas Maunz.
5
+
6
+ SELF=$(basename $0 -install)
7
+ [ "`id -u`" = "0" ] && echo "This script must be run as non-root." 1>&2 && exit 1
8
+
9
+ # Adjust ruby version here!
10
+ RUBY_NUM_VER="1.9.3-p194"
11
+
12
+ echo
13
+ echo "Welcome to service installation (<Return> to continue)."
14
+ read delete_me
15
+
16
+
17
+ # check wd is root of service
18
+ DIR=`pwd`
19
+ if echo $DIR | grep "$SELF/bin" >/dev/null 2>&1 ; then cd ..; fi
20
+
21
+ # # # Boot the script
22
+
23
+ # load base config, helper funs, environment
24
+ OT_CONFIG_DIR="$HOME/.opentox"
25
+ ! [ -f "$OT_CONFIG_DIR/config/install/config.sh" ] && echo "config.sh not found." 1>&2 && exit 1 || . $OT_CONFIG_DIR/config/install/config.sh
26
+ ! [ -f "$OT_PREFIX/install/utils.sh" ] && echo "utils.sh not found." 1>&2 && exit 1 || . $OT_PREFIX/install/utils.sh
27
+ [ -f $OT_CONFIG_DIR/opentox-ui.sh ] && . $OT_CONFIG_DIR/opentox-ui.sh # should have been done by user already
28
+ RUBY_DIR="$HOME/.rbenv/versions/$RUBY_NUM_VER"
29
+
30
+
31
+ # # # Install
32
+
33
+ check_utils "rbenv find"
34
+ check_log $SELF
35
+
36
+ if [ "$OT_BRANCH" = "development" ]; then
37
+ cmd="test -d $OT_PREFIX/opentox-server" && run_cmd "$cmd" "Opentox-server"
38
+ cmd="test -d $OT_PREFIX/opentox-client" && run_cmd "$cmd" "Opentox-client"
39
+ fi
40
+
41
+
42
+ # log directory for this service
43
+ [ -d $OT_CONFIG_DIR/config/$SELF ] || cmd="mkdir -p $OT_CONFIG_DIR/config/$SELF" && run_cmd "$cmd" "Config directory"
44
+
45
+ # ruby
46
+ install_ruby
47
+
48
+ # self
49
+ echo
50
+ install_with_bundler
51
+
52
+ # config
53
+ [ -f $OT_CONFIG_DIR/config/$SELF.rb ] || touch $OT_CONFIG_DIR/config/$SELF.rb
54
+ if ! cat "$OT_CONFIG_DIR/config/$SELF.rb" | grep "four_store">/dev/null 2>&1; then echo '$four_store = { :uri => "http://localhost:9088", :user => "", :password => "" }' >> $OT_CONFIG_DIR/config/$SELF.rb; fi
55
+ if ! cat "$OT_CONFIG_DIR/config/$SELF.rb" | grep "aa">/dev/null 2>&1; then echo '$aa = { :uri => nil }' >> $OT_CONFIG_DIR/config/$SELF.rb; fi
56
+ if ! cat "$OT_DEFAULT_CONF" | grep "$SELF">/dev/null 2>&1; then echo '$dataset = { :uri => "http://localhost:8083/dataset" }' >> $OT_DEFAULT_CONF; fi
57
+
58
+ notify
59
+
60
+ # return to wd
61
+ cd "$DIR"
data/config.ru ADDED
@@ -0,0 +1,5 @@
1
+ SERVICE = "dataset"
2
+ require 'bundler'
3
+ Bundler.require
4
+ require './application.rb'
5
+ run OpenTox::Application
data/dataset.gemspec ADDED
@@ -0,0 +1,25 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = "opentox-dataset"
6
+ s.version = File.read("./VERSION")
7
+ s.authors = ["Christoph Helma"]
8
+ s.email = ["helma@in-silico.ch"]
9
+ s.homepage = "http://github.com/opentox/dataset"
10
+ s.summary = %q{OpenTox Dataset Service}
11
+ s.description = %q{OpenTox Dataset Service}
12
+ s.license = 'GPL-3'
13
+
14
+ s.rubyforge_project = "dataset"
15
+
16
+ s.files = `git ls-files`.split("\n")
17
+ s.required_ruby_version = '>= 1.9.2'
18
+
19
+ # specify any dependencies here; for example:
20
+ s.add_runtime_dependency "opentox-server"
21
+ s.add_runtime_dependency 'roo'
22
+ #s.add_runtime_dependency 'axlsx'
23
+ #s.add_runtime_dependency 'simple_xlsx_writer'
24
+ s.post_install_message = "Please configure your service in ~/.opentox/config/dataset.rb"
25
+ end
metadata ADDED
@@ -0,0 +1,90 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: opentox-dataset
3
+ version: !ruby/object:Gem::Version
4
+ version: 5.0.0pre1
5
+ prerelease: 5
6
+ platform: ruby
7
+ authors:
8
+ - Christoph Helma
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-08-23 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: opentox-server
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: roo
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ description: OpenTox Dataset Service
47
+ email:
48
+ - helma@in-silico.ch
49
+ executables: []
50
+ extensions: []
51
+ extra_rdoc_files: []
52
+ files:
53
+ - .gitignore
54
+ - .yardopts
55
+ - ChangeLog
56
+ - Gemfile
57
+ - LICENSE
58
+ - README.md
59
+ - Rakefile
60
+ - VERSION
61
+ - application.rb
62
+ - bin/dataset-install
63
+ - config.ru
64
+ - dataset.gemspec
65
+ homepage: http://github.com/opentox/dataset
66
+ licenses:
67
+ - GPL-3
68
+ post_install_message: Please configure your service in ~/.opentox/config/dataset.rb
69
+ rdoc_options: []
70
+ require_paths:
71
+ - lib
72
+ required_ruby_version: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: 1.9.2
78
+ required_rubygems_version: !ruby/object:Gem::Requirement
79
+ none: false
80
+ requirements:
81
+ - - ! '>'
82
+ - !ruby/object:Gem::Version
83
+ version: 1.3.1
84
+ requirements: []
85
+ rubyforge_project: dataset
86
+ rubygems_version: 1.8.18
87
+ signing_key:
88
+ specification_version: 3
89
+ summary: OpenTox Dataset Service
90
+ test_files: []