-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathRakefile
More file actions
30 lines (26 loc) · 749 Bytes
/
Rakefile
File metadata and controls
30 lines (26 loc) · 749 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
# frozen_string_literal: true
$LOAD_PATH.push(File.join(File.dirname(__FILE__), 'lib'))
require 'bundler/gem_tasks'
require 'bicho/version'
require 'rake/testtask'
extra_docs = ['README*', 'TODO*', 'CHANGELOG*']
task default: [:test]
Rake::TestTask.new do |t|
t.pattern = 'test/test_*.rb'
t.verbose = true if ENV['DEBUG']
end
begin
require 'yard'
YARD::Rake::YardocTask.new(:doc) do |t|
t.files = ['lib/**/*.rb', *extra_docs]
t.options = ['--no-private']
end
rescue LoadError
STDERR.puts 'Install yard if you want prettier docs'
require 'rdoc/task'
Rake::RDocTask.new(:doc) do |rdoc|
rdoc.rdoc_dir = 'doc'
rdoc.title = "bicho #{Bicho::VERSION}"
extra_docs.each { |ex| rdoc.rdoc_files.include ex }
end
end