require 'rake/gempackagetask' require 'rubygems/specification' require 'date' require 'bundler' task :default => [:spec] require 'spec/rake/spectask' desc "Run specs" Spec::Rake::SpecTask.new do |t| t.spec_files = FileList['spec/**/*_spec.rb'] t.spec_opts = %w(-fs --color) t.spec_opts << '--loadby' << 'random' t.rcov_opts << '--exclude' << 'spec,.bundle' t.rcov = ENV.has_key?('NO_RCOV') ? ENV['NO_RCOV'] != 'true' : true t.rcov_opts << '--text-summary' t.rcov_opts << '--sort' << 'coverage' << '--sort-reverse' end