Rakefile in garb-0.7.5 vs Rakefile in garb-0.7.6

- old
+ new

@@ -1,10 +1,10 @@ -require 'rubygems' require 'rake/gempackagetask' require 'rake/testtask' -require 'lib/garb/version' +$:.unshift File.expand_path('../lib', __FILE__) +require 'garb' task :default => :test spec = Gem::Specification.new do |s| s.name = 'garb' @@ -39,14 +39,15 @@ puts "Created gemspec: #{file}" end begin require 'rcov/rcovtask' - + desc "Generate RCov coverage report" Rcov::RcovTask.new(:rcov) do |t| + t.libs << "test" t.test_files = FileList['test/**/*_test.rb'] - t.rcov_opts << "-x lib/garb.rb -x lib/garb/version.rb" + t.rcov_opts << "-x \"test/*,gems/*,/Library/Ruby/*,config/*\" -x lib/garb.rb -x lib/garb/version.rb --rails" end rescue LoadError nil end