forked from ActsAsParanoid/acts_as_paranoid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
38 lines (30 loc) · 879 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
# frozen_string_literal: true
require "bundler/gem_tasks"
require "rake/manifest/task"
require "rake/testtask"
require "rdoc/task"
require "rubocop/rake_task"
Rake::TestTask.new(:test) do |t|
t.libs << "test"
t.pattern = "test/test_*.rb"
t.verbose = true
end
RuboCop::RakeTask.new
desc "Generate documentation for the acts_as_paranoid plugin."
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = "rdoc"
rdoc.title = "ActsAsParanoid"
rdoc.options << "--line-numbers" << "--inline-source"
rdoc.rdoc_files.include("README")
rdoc.rdoc_files.include("lib/**/*.rb")
end
desc "Clean automatically generated files"
task :clean do
FileUtils.rm_rf "pkg"
end
Rake::Manifest::Task.new do |t|
t.patterns = ["{lib}/**/*", "LICENSE", "*.md"]
end
task build: ["manifest:check"]
desc "Default: run tests and check manifest"
task default: ["test", "manifest:check"]