Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (22 sloc) 600 Bytes
require "rake"
require "rake/testtask"
require "rake/gempackagetask"
require "rake/rdoctask"
require "rake/clean"
require 'lib/disqus/version'
CLEAN << "pkg" << "doc" << "coverage"
Rake::GemPackageTask.new(eval(File.read("disqus.gemspec"))) { |pkg| }
Rake::TestTask.new(:test) { |t| t.pattern = "test/*_test.rb" }
Rake::RDocTask.new do |r|
r.rdoc_dir = "doc"
r.rdoc_files.include "lib/**/*.rb"
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