Permalink
Browse files

ensuring rake will run even if hoe-debugging isn't installed

  • Loading branch information...
1 parent b9759c4 commit 7a43e2e9d0fc3ba3b03bad6117b2ff6c8b9ab3a2 @flavorjones flavorjones committed Jun 26, 2009
Showing with 5 additions and 3 deletions.
  1. +5 −3 Rakefile
View
@@ -180,9 +180,11 @@ unless windows || java || ENV['NOKOGIRI_FFI']
Rake::Task[task_name].prerequisites << GENERATED_TOKENIZER
end
- Rake::Task[:test].prerequisites << :compile
- ['valgrind', 'valgrind:mem', 'valgrind:mem0'].each do |task_name|
- Rake::Task["test:#{task_name}"].prerequisites << :compile
+ if Rake::Task.task_defined?(:valgrind)
+ Rake::Task[:test].prerequisites << :compile
+ ['valgrind', 'valgrind:mem', 'valgrind:mem0'].each do |task_name|
+ Rake::Task["test:#{task_name}"].prerequisites << :compile
+ end
end
else
[:test, :check_manifest].each do |task_name|

0 comments on commit 7a43e2e

Please sign in to comment.