diff options
author | mr <mr@mrautenberg.de> | 2011-05-23 13:39:56 +0200 |
---|---|---|
committer | mr <mr@mrautenberg.de> | 2011-05-23 13:39:56 +0200 |
commit | 916f715ee52049a0968bc04df5aa6ca0a9a6881d (patch) | |
tree | 99bbf52ad3b7495114ffe50194b8f9c606f5f248 /Rakefile | |
parent | 96d500e9691eedbfdd57ec35a2572b59641377f3 (diff) | |
parent | eb5f8b5da9b247d62abc8a7b9eb2e44fe46a1c79 (diff) |
Merge branch 'release/2.0.0'v2.0.0
Diffstat (limited to 'Rakefile')
-rwxr-xr-x | Rakefile | 36 |
1 files changed, 0 insertions, 36 deletions
@@ -1,42 +1,6 @@ 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', - -GEM_VERSIONS = { "ruby-plot" => "= 0.0.2" } -GEM_INSTALL_OPTIONS = {} - -#GEM_VERSIONS = { "activerecord" => "= 2.3.8", "activesupport" => "= 2.3.8", "ar-extensions" => "= 0.9.2", "ruby-plot" => "= 0.0.2" } -## 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| - begin - if GEM_VERSIONS.has_key?(g) - print "> gem "+g+", '"+GEM_VERSIONS[g]+"' .. " - gem g, GEM_VERSIONS[g] - else - print "> gem "+g+" .. " - gem g - end - puts "ok" - rescue LoadError => ex - puts "NOT FOUND" - 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 - puts "installing gem, this may take some time..." - puts cmd - IO.popen(cmd){ |f| puts f.gets } - end - end -end - desc "Perform unit tests" task :test do require 'test/unit_test.rb' |