-
Notifications
You must be signed in to change notification settings - Fork 222
/
Rakefile
25 lines (21 loc) · 624 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
# frozen_string_literal: true
require 'rdoc/task'
require 'rake/testtask'
desc "Run all the tests"
task :default => [:test]
desc "Run specs"
Rake::TestTask.new do |t|
t.libs << "test"
t.test_files = FileList['test/spec_*.rb']
end
desc "Generate RDoc documentation"
RDoc::Task.new(:rdoc) do |rdoc|
rdoc.options << '--line-numbers' << '--inline-source' <<
'--main' << 'README' <<
'--title' << 'Rack Contrib Documentation' <<
'--charset' << 'utf-8'
rdoc.rdoc_dir = "doc"
rdoc.rdoc_files.include 'README.rdoc'
rdoc.rdoc_files.include('lib/rack/*.rb')
rdoc.rdoc_files.include('lib/rack/*/*.rb')
end