mirror of
https://github.com/rest-client/rest-client.git
synced 2022-11-09 13:49:40 -05:00
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:
parent
7697e37e84
commit
1ef588bd62
4 changed files with 8 additions and 7 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,5 +1,6 @@
|
|||
.idea
|
||||
.rvmrc
|
||||
coverage
|
||||
doc
|
||||
rdoc
|
||||
pkg
|
||||
|
|
7
Rakefile
7
Rakefile
|
@ -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
|
||||
|
||||
############################
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue