Skip to content

Commit

Permalink
Fix parent Rakefile to use GEM_PATHS constant
Browse files Browse the repository at this point in the history
  • Loading branch information
nesquena committed Nov 25, 2009
1 parent e37c21c commit 5dd0e27
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ end

desc "Clean pkg and other stuff"
task :clean do
padrino_gems.each do |dir|
GEM_PATHS.each do |dir|
Dir.chdir(dir) do
FileUtils.rm_rf "doc"
FileUtils.rm_rf "tmp"
Expand All @@ -47,14 +47,14 @@ end

desc "Clean pkg and other stuff"
task :uninstall do
padrino_gems.each do |gem|
GEM_PATHS.each do |gem|
sh "gem uninstall #{gem} -a"
end
end

desc "Release all padrino gems"
task :publish do
padrino_gems.each do |dir|
GEM_PATHS.each do |dir|
Dir.chdir(dir) { rake_command("gemcutter:release") }
end
end
Expand All @@ -71,7 +71,7 @@ end
desc "Run tests for all padrino stack gems"
task :test do
# Omit the padrino metagem since no tests there
padrino_gems[0..-2].each do |gem_info|
GEM_PATHS[0..-2].each do |gem_info|
Dir.chdir(File.join(ROOT, gem_info)) { rake_command "test" }
end
end
Expand All @@ -83,4 +83,4 @@ Rake::TestTask.new(:test_alt) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'padrino-*/test/**/test_*.rb'
test.verbose = true
end
end

0 comments on commit 5dd0e27

Please sign in to comment.