-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
40 lines (28 loc) Β· 915 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
# encoding: UTF-8
# frozen_string_literal: true
require 'bundler/gem_tasks'
require 'init_copy'
require 'rake/clean'
require 'rake/testtask'
require 'yard'
CLEAN.exclude('.git/','stock/')
CLOBBER.include('doc/')
task default: [:test]
desc 'Generate doc (YARDoc)'
task :doc,%i[] => %i[yard]
Rake::TestTask.new do |task|
task.libs = ['lib','test']
task.pattern = File.join('test','**','*_test.rb')
task.description += ": '#{task.pattern}'"
task.options = '--pride'
task.verbose = false
task.warning = true
end
YARD::Rake::YardocTask.new do |task|
task.files = [File.join('lib','**','*.{rb}')]
task.options += ['--files','CHANGELOG.md,LICENSE.txt']
task.options += ['--readme','README.md']
task.options << '--protected' # Show protected methods.
#task.options += ['--template-path',File.join('yard','templates')]
task.options += ['--title',"InitCopy v#{InitCopy::VERSION} Doc"]
end