-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathRakefile
More file actions
41 lines (35 loc) · 888 Bytes
/
Rakefile
File metadata and controls
41 lines (35 loc) · 888 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
36
37
38
39
40
41
require 'rake/clean'
task gem: :build
task :build do
system 'gem build ruby-ip.gemspec'
end
#### TESTING ####
require 'rake/testtask'
task default: :test
Rake::TestTask.new do |t|
t.libs << 'test'
t.test_files = FileList['test/*_test.rb']
t.verbose = true
end
#### COVERAGE ####
begin
require 'rcov/rcovtask'
Rcov::RcovTask.new do |t|
t.libs << 'test'
t.test_files = FileList['test/*_test.rb']
t.verbose = true
t.rcov_opts << '--exclude "gems/*"'
end
rescue LoadError
end
#### DOCUMENTATION ####
require 'rdoc/task'
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_dir = 'doc/rdoc'
rdoc.template = ENV['template'] if ENV['template']
rdoc.title = 'Ruby-IP Documentation'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.options << '--charset' << 'utf-8'
rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('lib/**/*.rb')
end