rcov 0.8.1.0 → 0.8.1.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES CHANGED
@@ -1,6 +1,13 @@
1
1
 
2
2
  User-visible changes.
3
3
 
4
+ Since 0.8.1 (2007-11-19)
5
+ ========================
6
+ Bugfixes
7
+ --------
8
+ * REXML workaround incorrectly applied to 1.8.6 < p110
9
+ * --spec-only should work with RSpec trunk and detect when it cannot work
10
+
4
11
  Since 0.8.0 (2007-02-28)
5
12
  ========================
6
13
  Features
data/THANKS CHANGED
@@ -88,3 +88,6 @@ Sam Granieri:
88
88
 
89
89
  Kosmas Schütz, Daniel Berger, François Beausoleil, Bil Kleb:
90
90
  * provided information about the ruby-1.8.6-p11[01] REXML problems
91
+
92
+ Chad Humphries:
93
+ * indicated that Spec::DSL::Example has changed in RSpec trunk
data/bin/rcov CHANGED
@@ -521,12 +521,23 @@ if options.test_unit_only
521
521
  end
522
522
  elsif options.spec_only
523
523
  require 'spec'
524
- class Spec::DSL::Example
524
+ override_run = lambda do
525
525
  oldrun = instance_method(:run)
526
526
  define_method(:run) do |*args|
527
527
  $rcov_code_coverage_analyzer.run_hooked { oldrun.bind(self).call(*args) }
528
528
  end
529
529
  end
530
+ if defined? Spec::DSL::Example
531
+ Spec::DSL::Example.instance_eval(&override_run)
532
+ elsif defined? Spec::Example::ExampleGroup
533
+ Spec::Example::ExampleGroup.instance_eval(&override_run)
534
+ else
535
+ $stderr.puts <<-EOF
536
+ Your RSpec version isn't supported. If it's a old one, consider upgrading;
537
+ otherwise, please report the problem.
538
+ EOF
539
+ exit(-1)
540
+ end
530
541
  else
531
542
  $rcov_code_coverage_analyzer.install_hook
532
543
  end
data/lib/rcov/report.rb CHANGED
@@ -6,7 +6,8 @@ module Rcov
6
6
 
7
7
  # Try to fix bug in the REXML shipped with Ruby 1.8.6
8
8
  # This affects Mac OSX 10.5.1 users and motivates endless bug reports.
9
- if RUBY_VERSION == "1.8.6" && defined? REXML
9
+ if RUBY_VERSION == "1.8.6" && defined? REXML::Formatters::Transitive &&
10
+ RUBY_RELEASE_DATE < "2007-11-04"
10
11
  class REXML::Document
11
12
  def write( output=$stdout, indent=-1, trans=false, ie_hack=false )
12
13
  if xml_decl.encoding != "UTF-8" && !output.kind_of?(Output)
data/lib/rcov/version.rb CHANGED
@@ -4,8 +4,8 @@
4
4
 
5
5
  module Rcov
6
6
 
7
- VERSION = "0.8.1"
8
- RELEASE_DATE = "2007-11-19"
7
+ VERSION = "0.8.1.1"
8
+ RELEASE_DATE = "2007-11-20"
9
9
  RCOVRT_ABI = [2,0,0]
10
10
  UPSTREAM_URL = "http://eigenclass.org/hiki/rcov"
11
11
 
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.1
3
3
  specification_version: 1
4
4
  name: rcov
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.8.1.0
7
- date: 2007-11-19 00:00:00 +01:00
6
+ version: 0.8.1.1.0
7
+ date: 2007-11-20 00:00:00 +01:00
8
8
  summary: Code coverage analysis tool for Ruby
9
9
  require_paths:
10
10
  - lib