-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
31 lines (27 loc) · 829 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
$:.push(File.join(File.dirname(__FILE__), 'lib'))
require 'bundler/gem_tasks'
require 'supportconfig/version'
require 'rake/testtask'
extra_docs = ['README*', 'TODO*', 'CHANGELOG*']
task :default => [:test]
Rake::TestTask.new do |t|
t.libs << File.expand_path('../test', __FILE__)
t.libs << File.expand_path('../', __FILE__)
t.test_files = FileList['test/test*.rb']
t.verbose = true
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 = "supportconfig #{Supportconfig::VERSION}"
extra_docs.each { |ex| rdoc.rdoc_files.include ex }
end
end