GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Fork of lifo/doc-rails
Description: Repository for improving Rails documentation
Homepage: http://www.rubyonrails.org
Clone URL: git://github.com/zmalltalker/doc-rails.git
Xavier Noria (author)
Sun Apr 06 09:06:25 -0700 2008
commit  2faa4019a523bc57f48c37c6c9daab09df37dbb1
tree    c037f68daffdeb5d6ce9b8f7f000f01805a635bb
parent  3dc5028c6519950c99db0973bfd14e89c2dc9fcb
doc-rails / Rakefile
100644 22 lines (16 sloc) 0.559 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
require 'rake'
 
env = %(PKG_BUILD="#{ENV['PKG_BUILD']}") if ENV['PKG_BUILD']
 
PROJECTS = %w(activesupport actionpack actionmailer activeresource activerecord railties)
 
Dir["#{File.dirname(__FILE__)}/*/lib/*/version.rb"].each do |version_path|
  require version_path
end
 
desc 'Run all tests by default'
task :default => :test
 
%w(test rdoc package pgem release).each do |task_name|
  desc "Run #{task_name} task for all projects"
  task task_name do
    PROJECTS.each do |project|
      system %(cd #{project} && #{env} #{$0} #{task_name})
    end
  end
end