Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

37 lines (32 sloc) 0.926 kb
require 'rubygems'
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
desc 'Default: run all tests.'
task :default => :test
desc "Test polymorphic_identity."
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.test_files = Dir['test/**/*_test.rb']
t.verbose = true
end
begin
require 'rcov/rcovtask'
namespace :test do
desc "Test polymorphic_identity with Rcov."
Rcov::RcovTask.new(:rcov) do |t|
t.libs << 'lib'
t.test_files = Dir['test/**/*_test.rb']
t.rcov_opts << '--exclude="^(?!lib/)"'
t.verbose = true
end
end
rescue LoadError
end
desc "Generate documentation for polymorphic_identity."
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'polymorphic_identity'
rdoc.options << '--line-numbers' << '--inline-source' << '--main=README.rdoc'
rdoc.rdoc_files.include('README.rdoc', 'CHANGELOG.rdoc', 'LICENSE', 'lib/**/*.rb')
end
Jump to Line
Something went wrong with that request. Please try again.