relevance-rcov 0.9.1.1 → 0.9.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rcov/formatters/base_formatter.rb +4 -3
- data/lib/rcov/version.rb +2 -2
- metadata +1 -1
@@ -1,11 +1,12 @@
|
|
1
1
|
module Rcov
|
2
2
|
class BaseFormatter # :nodoc:
|
3
3
|
require 'pathname'
|
4
|
-
ignore_files = [ /\btc_[^.]*.rb/, /_test\.rb\z/, /\btest\//, /\bvendor\//, /\A#{Regexp.escape(__FILE__)}\z/]
|
5
4
|
|
6
|
-
|
5
|
+
if RUBY_PLATFORM =~ /java/
|
6
|
+
ignore_files = [ /\btc_[^.]*.rb/, /_test\.rb\z/, /\btest\//, /\bvendor\//, /\A#{Regexp.escape(__FILE__)}\z/]
|
7
|
+
else
|
7
8
|
require 'mkmf'
|
8
|
-
ignore_files
|
9
|
+
ignore_files = [/\A#{Regexp.escape(Pathname.new(::Config::CONFIG['libdir']).cleanpath.to_s)}/, /\btc_[^.]*.rb/, /_test\.rb\z/, /\btest\//, /\bvendor\//, /\A#{Regexp.escape(__FILE__)}\z/]
|
9
10
|
end
|
10
11
|
|
11
12
|
DEFAULT_OPTS = { :ignore => ignore_files, :sort => :name, :sort_reverse => false,
|
data/lib/rcov/version.rb
CHANGED