-
Notifications
You must be signed in to change notification settings - Fork 2
/
Rakefile
33 lines (30 loc) · 843 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
# fix error: cant convert nil into String
# Rakefile:1 in include?
unless ENV['GEM_HOME'] && (__FILE__.include? ENV['GEM_HOME'])
require 'bundler'
Bundler::GemHelper.install_tasks
end
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
end
begin
require 'yard'
YARD::Rake::YardocTask.new(:doc) do |t|
t.files = ['lib/**/*.rb']
exclude = 'lib/db'
static_files = 'LICENSE,CREDITS.md'
t.options += [
'--title', 'FIDIUS EvasionDB',
'--private', # include private methods
'--protected', # include protected methods
'--exclude', exclude,
'--files', static_files,
'--readme', 'README.md'
]
end
rescue LoadError
puts 'YARD not installed (gem install yard), http://yardoc.org'
end