Find file
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (39 sloc) 1.13 KB
require 'rubygems'
require 'rake'
desc 'Default: run unit tests.'
task :default => :test
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "crummy"
gem.summary = %Q{Tasty breadcrumbs!}
gem.description = %Q{Crummy is a simple and tasty way to add breadcrumbs to your Rails applications.}
gem.email = "zach@lt3media.com"
gem.homepage = "http://github.com/zachinglis/crummy"
gem.authors = ["Zach Inglis"]
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end
require 'rake/testtask'
desc 'Test the crummy plugin.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end
begin
gem 'hanna'
require 'hanna/rdoctask'
rescue LoadError
require 'rake/rdoctask'
end
desc 'Generate documentation for the crummy plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Crummy: Tasty Breadcrumbs'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README.textile')
rdoc.rdoc_files.include('lib/**/*.rb')
end