forked from fnordfish/teckel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
35 lines (28 loc) · 724 Bytes
/
Rakefile
File metadata and controls
35 lines (28 loc) · 724 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
# frozen_string_literal: true
require "bundler/gem_tasks"
require "rspec/core/rake_task"
require "yard"
require "yard/doctest/rake"
RSpec::Core::RakeTask.new(:spec)
task :docs do
Rake::Task["docs:yard"].invoke
Rake::Task["docs:yard:doctest"].invoke
end
namespace :docs do
YARD::Rake::YardocTask.new do |t|
t.files = ['lib/**/*.rb']
t.options = []
t.stats_options = ['--list-undoc']
end
task :fswatch do
sh 'fswatch -0 lib | while read -d "" e; do rake docs:yard; done'
end
YARD::Doctest::RakeTask.new do |task|
task.doctest_opts = %w[-v]
task.pattern = Dir.glob('lib/**/*.rb')
end
end
task :default do
Rake::Task["spec"].invoke
Rake::Task["docs:yard:doctest"].invoke
end