-
Notifications
You must be signed in to change notification settings - Fork 197
/
Rakefile
37 lines (31 loc) · 872 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
require 'bundler'
Bundler::GemHelper.install_tasks
require 'rake'
require 'rake/testtask'
require 'rdoc/task'
desc 'Default: run unit tests.'
task default: :test
desc 'Test the acts_as_follower gem.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end
desc 'Generate documentation for the acts_as_follower gem.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Acts As Follower'
rdoc.main = 'README.rdoc'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README.rdoc', 'lib/**/*.rb')
end
namespace :rcov do
desc "Generate a coverage report in coverage/"
task :gen do
sh "rcov --output coverage test/*_test.rb --exclude 'gems/*'"
end
desc "Remove generated coverage files."
task :clobber do
sh "rm -rdf coverage"
end
end