From 3c1ddd5f6430260593ca40b01555049d73a6cbfc Mon Sep 17 00:00:00 2001 From: DeLynn Berry Date: Sat, 5 Apr 2008 11:33:07 -0600 Subject: [PATCH] Adding a Rakefile to the project. --- Rakefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Rakefile diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..56ffb86 --- /dev/null +++ b/Rakefile @@ -0,0 +1,22 @@ +require 'rake' +require 'rake/testtask' +require 'rake/rdoctask' + +desc 'Default: run unit tests.' +task :default => :test + +desc 'Test the userstamp plugin.' +Rake::TestTask.new(:test) do |t| + t.libs << 'lib' + t.pattern = 'test/**/*_test.rb' + t.verbose = true +end + +desc 'Generate documentation for the userstamp plugin.' +Rake::RDocTask.new(:rdoc) do |rdoc| + rdoc.rdoc_dir = 'rdoc' + rdoc.title = 'Userstamp' + rdoc.options << '--line-numbers' << '--inline-source' + rdoc.rdoc_files.include('README', 'CHANGELOG', 'LICENSE') + rdoc.rdoc_files.include('lib/**/*.rb') +end \ No newline at end of file