diff options
author | mguetlein <martin.guetlein@gmail.com> | 2011-05-03 15:10:36 +0200 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2011-05-03 15:10:36 +0200 |
commit | e0fe8f2d9195f91db9314e55c1b8c8d9a4efa8af (patch) | |
tree | 82c9c9a4153145dd083b45f2844a2525c71d17d5 | |
parent | e42b48e91dea6684c8c1c7c9d0a5c3315e619f8c (diff) |
remove install-gems task (moved to opentox-ruby), adding public folder
-rwxr-xr-x | Rakefile | 39 | ||||
-rw-r--r-- | public/robots.txt | 2 |
2 files changed, 2 insertions, 39 deletions
@@ -1,45 +1,6 @@ require 'rubygems' require 'rake' - - -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 = {} - -#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 - cmd = "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' diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..1f53798 --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: / |