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 CHANGED
@@ -85,10 +85,19 @@ end
85
85
 
86
86
  task :default => :test
87
87
 
88
- desc "Generate rdoc documentation for the rcov library"
89
- Rake::RDocTask.new("rdoc") { |rdoc|
90
- rdoc.rdoc_dir = 'doc'
91
- rdoc.title = "rcov"
92
- rdoc.options << "--line-numbers" << "--inline-source"
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
- 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
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rcov
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Relevance