forked from tcocca/acts_as_follower
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
42 lines (34 loc) · 959 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
38
39
40
41
42
# frozen_string_literal: true
require 'bundler'
Bundler::GemHelper.install_tasks
require 'rake'
require 'rake/testtask'
require 'rdoc/task'
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
# rubocop tasks
require 'rubocop/rake_task'
RuboCop::RakeTask.new(:rubocop)
task default: %i[test rubocop]