diff options
author | mguetlein <martin.guetlein@gmail.com> | 2011-04-08 15:39:55 +0200 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2011-05-03 11:46:30 +0200 |
commit | 78751b778a5dabfac142a017fc1e0d8d1c045acd (patch) | |
tree | 6257c90d38d1082637a65e3846944bd313464edd /Rakefile | |
parent | d5fe870fa184ef44390a0311664b7813360a44f5 (diff) |
switch from datamapper/mysql to redis (sqlite for qmrf)
Diffstat (limited to 'Rakefile')
-rwxr-xr-x | Rakefile | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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 } |