From: Mauricio Fernandez Date: 2007-11-20T19:21:06+09:00 Subject: Re: [ANN] rcov-0.8.1: compatibility with Ruby 1.8.6-p11[01], intentional testing with RSpec, etc. On Mon, Nov 19, 2007 at 09:06:01PM +0100, Mauricio Fernandez wrote: > Source code, additional information, screenshots... available at > http://eigenclass.org/hiki/rcov > Release info: > http://eigenclass.org/hiki/rcov-0.8.1 > Sample fully cross-referenced report at > http://eigenclass.org/static/rcov-sample-report-full-crossref/ [...] > What's new in 0.8.1 > =================== [...] > Bugfixes > -------- > * workaround for bugs in Safari, IE (self-closing anchors break colorization) > * workaround for bugs in REXML shipped with 1.8.6-p11[01] > * rethrow exceptions generated by traced scripts > * compatibility with Ruby < 1.8.5 The REXML workaround was being used incorrectly with 1.8.6 < p110. Either apply the patch below, or upgrade to rcov 0.8.1.1. Changes since 0.8.1 =================== Bugfixes -------- * REXML workaround incorrectly applied to 1.8.6 < p110 * --spec-only should work with RSpec trunk and detect when it cannot work Thanks ====== Chad Humphries: * indicated that Spec::DSL::Example has changed in RSpec trunk Tue Nov 20 10:37:40 CET 2007 Mauricio Fernandez * lib/rcov/report.rb: the REXML workaround only applies to some 1.8.6 builds. diff -rN -u old-head/lib/rcov/report.rb new-head/lib/rcov/report.rb --- old-head/lib/rcov/report.rb 2007-11-20 11:19:01.000000000 +0100 +++ new-head/lib/rcov/report.rb 2007-11-20 11:19:01.000000000 +0100 @@ -6,7 +6,8 @@ # Try to fix bug in the REXML shipped with Ruby 1.8.6 # This affects Mac OSX 10.5.1 users and motivates endless bug reports. -if RUBY_VERSION == "1.8.6" && defined? REXML +if RUBY_VERSION == "1.8.6" && defined? REXML::Formatters::Transitive && + RUBY_RELEASE_DATE < "2007-11-04" class REXML::Document def write( output=$stdout, indent=-1, trans=false, ie_hack=false ) if xml_decl.encoding != "UTF-8" && !output.kind_of?(Output) -- Mauricio Fernandez - http://eigenclass.org