-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
executable file
·45 lines (34 loc) · 1.16 KB
/
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
43
44
45
# frozen_string_literal: true
require "bundler"
def print_exception(exception, explicit)
puts "[#{explicit ? "EXPLICIT" : "INEXPLICIT"}] #{exception.class}: #{exception.message}"
puts exception.backtrace.join("\n")
end
begin
require "bundler/gem_tasks"
rescue LoadError => e
print_exception(e, true)
end
require "bundler/gem_helper"
require "rake/clean"
require "rake/testtask"
require "rubocop/rake_task"
Bundler::GemHelper.install_tasks name: "gem_mirror"
RuboCop::RakeTask.new do |task|
task.requires << "rubocop-performance"
end
Rake.add_rakelib "tasks"
task default: %i[rubocop yard]
# Include the "pkg" and "doc" directories and their contents.
# Include all files ending in ".o" in the current directory
# its subdirectories (recursively).
# CLOBBER.include(pkg, doc, "**/*.o")
# Include InstalledFiles and .config: files created by setup.rb.
# Include temporary files created during test run.
# CLEAN.include(InstalledFiles, .config, "test/**/*.tmp")
require "yard"
YARD::Rake::YardocTask.new do |t|
t.files = ["lib/**/*.rb"] # optional
t.options = ["--verbose"] # optional
t.stats_options = ["--list-undoc"] # optional
end