]> git.openstreetmap.org Git - rails.git/blob - vendor/plugins/validates_email_format_of/rakefile.rb
Switch to using the rails-i18n-updater gem instead of the rails-i18n plugin
[rails.git] / vendor / plugins / validates_email_format_of / rakefile.rb
1 require 'rake'
2 require 'rake/testtask'
3 require 'rake/rdoctask'
4
5 desc 'Default: run unit tests.'
6 task :default => [:clean_log, :test]
7
8 desc 'Remove the old log file'
9 task :clean_log do
10   "rm -f #{File.dirname(__FILE__)}/test/debug.log" if File.exists?(File.dirname(__FILE__) + '/test/debug.log')
11 end
12
13 desc 'Test the validates_email_format_of plugin.'
14 Rake::TestTask.new(:test) do |t|
15   t.libs << 'lib'
16   t.pattern = 'test/**/*_test.rb'
17   t.verbose = true
18 end
19
20 desc 'Generate documentation for the validates_email_format_of plugin.'
21 Rake::RDocTask.new(:rdoc) do |rdoc|
22   rdoc.rdoc_dir = 'rdoc'
23   rdoc.title    = 'validates_email_format_of plugin'
24   rdoc.options << '--line-numbers --inline-source'
25   rdoc.rdoc_files.include('README')
26   rdoc.rdoc_files.include('TODO')
27   rdoc.rdoc_files.include('lib/**/*.rb')
28 end