archrelease: copy trunk to community-any
[ArchLinux/community.git] / ruby-toml / repos / community-any / disable_simplecov.patch
blob7d0ad7112877ee62603c2cdd5b19feed722d7c49
1 diff --git a/Rakefile b/Rakefile
2 index 24425f3..165c995 100644
3 --- a/Rakefile
4 +++ b/Rakefile
5 @@ -40,31 +40,6 @@ task :test do
6 Dir['./test/**/test_*.rb'].each {|f| require f }
7 end
9 -desc "Generate RCov test coverage and open in your browser"
10 -task :coverage do
11 - if RUBY_VERSION =~ /^1\./
12 - require 'rubygems'
13 - require 'bundler'
14 - Bundler.setup(:test)
15 - require 'simplecov'
16 - require 'simplecov-gem-adapter'
18 - sh "rm -fr coverage"
19 - SimpleCov.command_name 'Unit Tests'
20 - SimpleCov.start 'gem'
21 - Rake::Task[:test].invoke
22 - SimpleCov.at_exit do
23 - SimpleCov.result.format!
24 - sh "open coverage/index.html"
25 - end
26 - else
27 - require 'rcov'
28 - sh "rm -fr coverage"
29 - sh "rcov test/test_*.rb"
30 - sh "open coverage/index.html"
31 - end
32 -end
34 require 'rdoc/task'
35 Rake::RDocTask.new do |rdoc|
36 rdoc.rdoc_dir = 'rdoc'