Rakefile in laserlemon-vestal_versions-0.4.1 vs Rakefile in laserlemon-vestal_versions-0.4.2

- old
+ new

@@ -1,14 +1,34 @@ require 'rubygems' require 'rake' -require 'echoe' +require 'rake/testtask' +require 'rake/rdoctask' -Echoe.new('vestal_versions', '0.4.1') do |g| - g.description = %(Keep a DRY history of your ActiveRecord models' changes) - g.url = 'http://github.com/laserlemon/vestal_versions' - g.author = 'Steve Richert' - g.email = 'steve@laserlemon.com' - g.ignore_pattern = %w(tmp/* script/*) - g.development_dependencies = [] +begin + require 'jeweler' + Jeweler::Tasks.new do |g| + g.name = 'vestal_versions' + 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' + end +rescue LoadError + puts 'Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com' end -Dir["#{File.dirname(__FILE__)}/tasks/*.rake"].sort.each{|t| load t } \ No newline at end of file +Rake::TestTask.new do |t| + t.libs = %w(test) + t.pattern = 'test/**/*_test.rb' +end + +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.rdoc_files.include('README*') + r.rdoc_files.include('lib/**/*.rb') +end