Skip to content
Browse files

Adding a Rakefile to the project.

  • Loading branch information...
1 parent 7373f0c commit 3c1ddd5f6430260593ca40b01555049d73a6cbfc @delynn delynn committed Apr 5, 2008
Showing with 22 additions and 0 deletions.
  1. +22 −0 Rakefile
View
22 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

0 comments on commit 3c1ddd5

Please sign in to comment.
Something went wrong with that request. Please try again.