forked from maximeg/activecleaner
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
40 lines (29 loc) · 699 Bytes
/
Rakefile
File metadata and controls
40 lines (29 loc) · 699 Bytes
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
# frozen_string_literal: true
require "bundler/gem_tasks"
require "rspec/core/rake_task"
require "rubocop/rake_task"
RSpec::Core::RakeTask.new(:spec)
RuboCop::RakeTask.new
task default: :spec
task ci: %i[spec rubocop]
#
# Documentation
#
require "sdoc"
require "rdoc/task"
class MyRDocTask < RDoc::Task
def option_list
super.tap do |list|
list << "--github"
end
end
end
MyRDocTask.new(rdoc: "doc", clobber_rdoc: "doc:clobber", rerdoc: "doc:force") do |rdoc|
rdoc.generator = "sdoc"
rdoc.template = "rails"
rdoc.title = "ActiveCleaner API"
rdoc.main = "README.md"
rdoc.rdoc_dir = "doc"
rdoc.rdoc_files.add("lib/**/*.rb", "*.md")
rdoc.options << "--all"
end