]> gitweb.michael.orlitzky.com - mailshears.git/blob - Rakefile
Update fixtures in the test suite setup() comments.
[mailshears.git] / Rakefile
1 require 'rake/testtask'
2
3 desc 'Clean up generated files'
4 task :clean do
5 sh 'rm -rf *.gem doc/html .yardoc'
6 end
7
8
9 desc 'Generate HTML documentation'
10 task :doc do
11 sh 'yardoc --protected --private --output-dir doc/html'
12 end
13
14
15 desc "Build the gem"
16 task :build => :clean do
17 sh 'gem build *.gemspec'
18 end
19
20
21 desc 'Install the gem locally (user install)'
22 task :install => :build do
23 sh 'gem install --user-install *.gem'
24 end
25
26 Rake::TestTask.new do |t|
27 t.pattern = 'test/test*.rb'
28 t.libs << 'test'
29 end
30
31 desc 'Run tests'
32 task :default => :test