require 'rake' require 'rake/testtask' require 'rake/rdoctask' desc 'Default: run unit tests.' task :default => :test desc 'Test the validates_email_san plugin.' Rake::TestTask.new(:test) do |t| t.libs << 'lib' t.libs << 'test' t.pattern = 'test/**/*_test.rb' t.verbose = true end desc 'Generate documentation for the validates_email_san plugin.' Rake::RDocTask.new(:rdoc) do |rdoc| rdoc.rdoc_dir = 'rdoc' rdoc.title = 'ValidatesEmail-san' rdoc.options << '--line-numbers' << '--inline-source' rdoc.rdoc_files.include('README') rdoc.rdoc_files.include('lib/**/*.rb') end begin require 'jeweler' Jeweler::Tasks.new do |s| s.name = "validates_email-san" s.summary = s.description = "A simple Rails plugin which adds a validates_email class method to ActiveRecord::Base." s.homepage = "http://fingertips.github.com" s.email = "eloy@fngtps.com" s.authors = ["Eloy Duran", "Manfred Stienstra"] end rescue LoadError end