#!/usr/bin/env rake require "bundler/gem_tasks" require 'rspec/core/rake_task' desc 'Default: run specs.' task :default => :spec desc "Run specs" RSpec::Core::RakeTask.new do |t| if ENV['COVERAGE'] and RUBY_VERSION =~ /^1.8/ t.rcov = true t.rcov_opts = %w{--exclude spec\/*,gems\/*,ruby\/* --aggregate coverage.data} end end