summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authormguetlein <martin.guetlein@gmail.com>2011-04-08 15:39:55 +0200
committermguetlein <martin.guetlein@gmail.com>2011-05-03 11:46:30 +0200
commit78751b778a5dabfac142a017fc1e0d8d1c045acd (patch)
tree6257c90d38d1082637a65e3846944bd313464edd /Rakefile
parentd5fe870fa184ef44390a0311664b7813360a44f5 (diff)
switch from datamapper/mysql to redis (sqlite for qmrf)
Diffstat (limited to 'Rakefile')
-rwxr-xr-xRakefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/Rakefile b/Rakefile
index e8e2a92..de1e69d 100755
--- a/Rakefile
+++ b/Rakefile
@@ -1,8 +1,11 @@
require 'rubygems'
require 'rake'
-REPORT_GEMS = [ 'opentox-ruby', 'mime-types', 'ruby-plot', 'rinruby'] #'ar-extensions', 'activerecord', 'activesupport',
-VALIDATION_GEMS = [ 'opentox-ruby', 'ruby-plot'] #'ar-extensions', 'activerecord', 'activesupport',
+
+
+REPORT_GEMS = [ 'opentox-ruby', 'ruby-plot', 'rinruby', 'dm-core', 'dm-serializer', 'dm-timestamps',
+ 'dm-types', 'dm-migrations', 'dm-validations', 'dm-sqlite-adapter', 'benchmark']
+VALIDATION_GEMS = [ 'opentox-ruby', 'ruby-plot']
GEM_VERSIONS = { "ruby-plot" => "= 0.0.2" }
GEM_INSTALL_OPTIONS = {}
@@ -11,7 +14,6 @@ GEM_INSTALL_OPTIONS = {}
## this is needed because otherwihse ar-extensions adds activesupport 3.0.0 which confuses things
#GEM_INSTALL_OPTIONS = { "ar-extensions" => "--ignore-dependencies" }
-
desc "Install required gems"
task :install_gems do
(REPORT_GEMS + VALIDATION_GEMS).uniq.each do |g|
@@ -29,7 +31,8 @@ task :install_gems do
options = ""
options += "--version '"+GEM_VERSIONS[g]+"' " if GEM_VERSIONS.has_key?(g)
options += GEM_INSTALL_OPTIONS[g]+" " if GEM_INSTALL_OPTIONS.has_key?(g)
- cmd = "sudo env PATH=$PATH gem install "+options+" "+g
+ #cmd = "sudo env PATH=$PATH gem install "+options+" "+g
+ cmd = "gem install "+options+" "+g
puts "installing gem, this may take some time..."
puts cmd
IO.popen(cmd){ |f| puts f.gets }