Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (30 sloc) 0.779 kb
require 'rake'
require 'rake/testtask'
require 'rake/gempackagetask'
require 'rake/rdoctask'
require 'rake/clean'
CLEAN << "pkg" << "docs" << "coverage"
task :default => :test
Rake::TestTask.new(:test) { |t| t.pattern = 'test/**/*_test.rb' }
Rake::GemPackageTask.new(eval(File.read("friendly_id.gemspec"))) { |pkg| }
Rake::RDocTask.new do |r|
r.rdoc_dir = "docs"
r.main = "README.rdoc"
r.rdoc_files.include "README.rdoc", "History.txt", "lib/**/*.rb"
end
begin
require "yard"
YARD::Rake::YardocTask.new do |t|
t.options = ["--output-dir=docs"]
end
rescue LoadError
end
begin
require 'rcov/rcovtask'
Rcov::RcovTask.new do |r|
r.test_files = FileList['test/*_test.rb']
r.verbose = true
r.rcov_opts << "--exclude gems/*"
end
rescue LoadError
end
Jump to Line
Something went wrong with that request. Please try again.