rcov 0.9.3-java → 0.9.4-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,16 @@
1
1
  module Rcov
2
2
  class BaseFormatter # :nodoc:
3
3
  require 'pathname'
4
-
5
- if RUBY_PLATFORM =~ /java/
6
- ignore_files = [ /\btc_[^.]*.rb/, /_test\.rb\z/, /\btest\//, /\bvendor\//, /\A#{Regexp.escape(__FILE__)}\z/]
7
- else
8
- require 'mkmf'
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/]
10
- end
11
-
12
- DEFAULT_OPTS = { :ignore => ignore_files, :sort => :name, :sort_reverse => false,
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
@@ -3,8 +3,8 @@
3
3
  # See LICENSE for licensing information.
4
4
 
5
5
  module Rcov
6
- VERSION = "0.9.3"
7
- RELEASE_DATE = "2009-09-25"
6
+ VERSION = "0.9.4"
7
+ RELEASE_DATE = "2009-10-16"
8
8
  RCOVRT_ABI = [2,0,0]
9
9
  UPSTREAM_URL = "http://github.com/relevance/rcov"
10
10
  end
metadata CHANGED
@@ -111,7 +111,7 @@ test_files:
111
111
  - test/code_coverage_analyzer_test.rb
112
112
  - test/call_site_analyzer_test.rb
113
113
  version: !ruby/object:Gem::Version
114
- version: 0.9.3
114
+ version: 0.9.4
115
115
  require_paths:
116
116
  - lib
117
117
  dependencies: []