Remove rcov support in favor of simplecov

SimpleCov runs when RSpec is run; there is no Rake task for it.
This commit is contained in:
Larry Gilbert 2013-07-29 14:09:53 -07:00 committed by Larry Gilbert
parent 7697e37e84
commit 1ef588bd62
4 changed files with 8 additions and 7 deletions

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
.idea
.rvmrc
coverage
doc
rdoc
pkg

View File

@ -25,13 +25,6 @@ RSpec::Core::RakeTask.new(:doc) do |t|
t.pattern = 'spec/*_spec.rb'
end
desc "Run all examples with RCov"
RSpec::Core::RakeTask.new('rcov') do |t|
t.pattern = 'spec/*_spec.rb'
t.rcov = true
t.rcov_opts = ['--exclude', 'examples']
end
task :default => :spec
############################

View File

@ -17,6 +17,7 @@ Gem::Specification.new do |s|
s.add_runtime_dependency(%q<mime-types>, [">= 1.16"])
s.add_development_dependency(%q<webmock>, ["~> 1.4"])
s.add_development_dependency(%q<rspec>, ["~> 2.4"])
s.add_development_dependency(%q<simplecov>)
s.add_dependency(%q<netrc>, ["~> 0.7.7"])
s.add_dependency(%q<rdoc>, [">= 2.4.2"])
end

View File

@ -1,3 +1,9 @@
require 'simplecov'
SimpleCov.start do
add_filter 'vendor/'
add_filter 'spec/'
end
def is_ruby_19?
RUBY_VERSION > '1.9'
end