Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 24 lines (21 sloc) 0.687 kb
f5b96ac0 »
2009-05-19 initial commit
1 require 'rake'
2 require 'rake/rdoctask'
3 require 'spec/rake/spectask'
4
5 desc 'Default: run unit tests.'
6 task :default => :spec
7
8 desc "Run all specs"
9 Spec::Rake::SpecTask.new(:spec) do |t|
10 t.spec_opts = ['--options', 'spec/spec.opts']
11 t.spec_files = FileList['spec/**/*_spec.rb']
12 t.rcov = true
13 t.rcov_dir = 'coverage'
14 t.rcov_opts = ['--exclude', '\/var\/lib\/gems,\/Library\/Ruby']
15 end
16
17 desc 'Generate documentation for the shoebox plugin.'
18 Rake::RDocTask.new(:rdoc) do |rdoc|
19 rdoc.rdoc_dir = 'rdoc'
20 rdoc.title = 'Shoebox'
21 rdoc.options << '--line-numbers' << '--inline-source'
22 rdoc.rdoc_files.include('README.rdoc')
23 rdoc.rdoc_files.include('lib/**/*.rb')
24 end
Something went wrong with that request. Please try again.