Find file
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (36 sloc) 1.21 KB
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "trackable"
gem.summary = %Q{Add a readable event history to your models}
gem.description = %Q{Add a readable event history to your models}
gem.email = "jim@jimvanfleet.com"
gem.homepage = "http://github.com/bigfleet/trackable"
gem.authors = ["bigfleet"]
gem.add_development_dependency "ruby-sqlite", ">= 0"
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end
desc 'Default: run unit tests.'
task :default => :test
desc 'Test the acts_as_eventable plugin.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.libs << 'test'
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end
desc 'Generate documentation for the acts_as_eventable plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Trackable'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('lib/**/*.rb')
end