-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
31 lines (26 loc) · 980 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
require 'rubygems'
gem 'rdoc' # Required on Mac OS X to get a “working” rdoc version
require 'rake/rdoctask'
require 'rake/testtask'
task :default => :test
desc "Test spruce"
Rake::TestTask.new(:test) do |t|
t.test_files = FileList['spec/*_spec.rb']
t.ruby_opts = ['-rubygems'] if defined? Gem
t.ruby_opts << '-I.'
end
desc 'Generate RDoc documentation for the spruce gem.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_files.include('README.rdoc').
include('lib/**/*.rb').
exclude('lib/leaf/finders/sequel.rb').
exclude('lib/leaf/view_helpers/sinatra.rb').
exclude('lib/leaf/core_ext.rb').
exclude('lib/leaf/version.rb')
rdoc.main = "README.rdoc" # page to start on
rdoc.title = "leaf documentation"
rdoc.rdoc_dir = 'doc' # rdoc output folder
rdoc.options << '--inline-source' << '--charset=UTF-8' << '--format=darkfish'
rdoc.options << '--main=README.rdoc'
rdoc.options << '--webcvs=http://github.com/c7/spruce/tree/master/'
end