Rakefile in datamapper4rail-0.1.0 vs Rakefile in datamapper4rail-0.2.0

- old
+ new

@@ -1,9 +1,14 @@ # -*- ruby -*- require 'rubygems' require 'hoe' + +require 'spec' +require 'spec/rake/spectask' +require 'pathname' + require './lib/datamapper4rails/version.rb' Hoe.new('datamapper4rail', Datamapper4rails::VERSION) do |p| p.rubyforge_name = 'datamapper4rail' p.developer('mkristian', 'm.kristian@web.de') @@ -15,18 +20,18 @@ task :install => [:clean, :package] do gem = Dir['pkg/*.gem'].first sh "gem install --local #{gem} --no-ri --no-rdoc" end -# desc 'Run specifications' -# Spec::Rake::SpecTask.new(:spec) do |t| -# if File.exists?('spec/spec.opts') -# t.spec_opts << '--options' << 'spec/spec.opts' -# end -# t.spec_files = Pathname.glob('./spec/**/*_spec.rb') -# end +desc 'Run specifications' +Spec::Rake::SpecTask.new(:spec) do |t| + if File.exists?('spec/spec.opts') + t.spec_opts << '--options' << 'spec/spec.opts' + end + t.spec_files = Pathname.glob('./spec/**/*_spec.rb') +end -# require 'yard' +require 'yard' -# YARD::Rake::YardocTask.new +YARD::Rake::YardocTask.new # vim: syntax=Ruby