rcov 0.9.3 → 0.9.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +15 -6
- data/lib/rcov/formatters/base_formatter.rb +10 -9
- data/lib/rcov/version.rb +2 -2
- metadata +1 -1
data/Rakefile
CHANGED
@@ -85,10 +85,19 @@ end
|
|
85
85
|
|
86
86
|
task :default => :test
|
87
87
|
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
88
|
+
begin
|
89
|
+
%w{sdoc sdoc-helpers rdiscount}.each { |name| gem name }
|
90
|
+
require 'sdoc_helpers'
|
91
|
+
rescue LoadError => ex
|
92
|
+
puts "sdoc support not enabled:"
|
93
|
+
puts ex.inspect
|
94
|
+
end
|
95
|
+
|
96
|
+
require 'rake/rdoctask'
|
97
|
+
Rake::RDocTask.new do |rdoc|
|
98
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ''
|
99
|
+
rdoc.rdoc_dir = 'rdoc'
|
100
|
+
rdoc.title = "rcov #{version}"
|
101
|
+
rdoc.rdoc_files.include('README*')
|
93
102
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
94
|
-
|
103
|
+
end
|
@@ -1,15 +1,16 @@
|
|
1
1
|
module Rcov
|
2
2
|
class BaseFormatter # :nodoc:
|
3
3
|
require 'pathname'
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
4
|
+
require 'rbconfig'
|
5
|
+
RCOV_IGNORE_REGEXPS = [ /\A#{Regexp.escape(Pathname.new(::RbConfig::CONFIG['libdir']).cleanpath.to_s)}/,
|
6
|
+
/\btc_[^.]*.rb/,
|
7
|
+
/_test\.rb\z/,
|
8
|
+
/\btest\//,
|
9
|
+
/\bvendor\//,
|
10
|
+
/\A#{Regexp.escape(__FILE__)}\z/
|
11
|
+
]
|
12
|
+
|
13
|
+
DEFAULT_OPTS = { :ignore => RCOV_IGNORE_REGEXPS, :sort => :name, :sort_reverse => false,
|
13
14
|
:output_threshold => 101, :dont_ignore => [], :callsite_analyzer => nil, \
|
14
15
|
:comments_run_by_default => false }
|
15
16
|
|
data/lib/rcov/version.rb
CHANGED