diff --git a/.gitignore b/.gitignore index 7cf7857..1bf9bd9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ .idea .rvmrc +coverage doc rdoc pkg diff --git a/Rakefile b/Rakefile index f068230..3a4af49 100644 --- a/Rakefile +++ b/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 ############################ diff --git a/rest-client.gemspec b/rest-client.gemspec index 9e26d10..c4f4121 100644 --- a/rest-client.gemspec +++ b/rest-client.gemspec @@ -17,6 +17,7 @@ Gem::Specification.new do |s| s.add_runtime_dependency(%q, [">= 1.16"]) s.add_development_dependency(%q, ["~> 1.4"]) s.add_development_dependency(%q, ["~> 2.4"]) + s.add_development_dependency(%q) s.add_dependency(%q, ["~> 0.7.7"]) s.add_dependency(%q, [">= 2.4.2"]) end diff --git a/spec/base.rb b/spec/base.rb index 1494a0b..5083102 100644 --- a/spec/base.rb +++ b/spec/base.rb @@ -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