Rakefile in vestal_versions-0.8.3 vs Rakefile in vestal_versions-1.0.0
- old
+ new
@@ -1,8 +1,9 @@
require 'rubygems'
require 'rake'
require 'rake/testtask'
+require 'rcov/rcovtask'
require 'rake/rdoctask'
begin
require 'jeweler'
Jeweler::Tasks.new do |g|
@@ -10,30 +11,40 @@
g.summary = %(Keep a DRY history of your ActiveRecord models' changes)
g.description = %(Keep a DRY history of your ActiveRecord models' changes)
g.email = 'steve@laserlemon.com'
g.homepage = 'http://github.com/laserlemon/vestal_versions'
g.authors = %w(laserlemon)
- g.add_development_dependency 'thoughtbot-shoulda'
+ g.add_development_dependency 'activerecord'
+ g.add_development_dependency 'activesupport'
+ g.add_development_dependency 'shoulda'
+ g.add_development_dependency 'mocha'
g.rubyforge_project = 'laser-lemon'
end
+ Jeweler::GemcutterTasks.new
Jeweler::RubyforgeTasks.new do |r|
r.doc_task = 'rdoc'
end
- Jeweler::GemcutterTasks.new
rescue LoadError
- puts 'Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com'
+ puts 'Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler'
end
Rake::TestTask.new do |t|
t.libs = %w(test)
t.pattern = 'test/**/*_test.rb'
end
+Rcov::RcovTask.new do |t|
+ t.libs = %w(test)
+ t.pattern = 'test/**/*_test.rb'
+end
+
+task :test => :check_dependencies
task :default => :test
Rake::RDocTask.new do |r|
version = File.exist?('VERSION') ? File.read('VERSION') : nil
r.rdoc_dir = 'rdoc'
r.title = ['vestal_versions', version].compact.join(' ')
+ r.options << '--line-numbers' << '--inline-source'
r.rdoc_files.include('README*')
r.rdoc_files.include('lib/**/*.rb')
end