Package: rcov Version: 0.8.1.2-2 Severity: important Tags: patch
rcov includes a workaround for broken rexml.write, but it detects ruby 1.8.6 and misses 1.8.7 causing errors like: /usr/lib/ruby/1.8/rexml/formatters/pretty.rb:131:in `[]': no implicit conversion from nil to integer (TypeError) The upstream bug [1] hasn't had any response in six months. [1] http://rubyforge.org/tracker/index.php?func=detail&aid=21627&group_id=1750&atid=6802 -- Patch / Workaround: diff -ru rcov-0.8.1.2/lib/rcov/report.rb rcov-0.8.1.2.new/lib/rcov/report.rb --- rcov-0.8.1.2/lib/rcov/report.rb 2007-11-22 02:58:11.000000000 -0800 +++ rcov-0.8.1.2.new/lib/rcov/report.rb 2009-02-24 21:01:41.000000000 -0800 @@ -12,7 +12,7 @@ rescue LoadError end -if RUBY_VERSION == "1.8.6" && defined? REXML::Formatters::Transitive +if ( RUBY_VERSION == "1.8.6" || RUBY_VERSION == "1.8.7" ) && defined? REXML::Formatters::Transitive class REXML::Document remove_method :write rescue nil def write( output=$stdout, indent=-1, trans=false, ie_hack=false ) -- See also: http://enfranchisedmind.com/blog/2008/03/24/rexml-dynamic-typing-lose/ -- System Information: Debian Release: 5.0 APT prefers stable APT policy: (500, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages rcov depends on: ii libc6 2.7-18 GNU C Library: Shared libraries ii libruby1.8 1.8.7.72-3 Libraries necessary to run Ruby 1. ii ruby1.8 1.8.7.72-3 Interpreter of object-oriented scr rcov recommends no packages. rcov suggests no packages. -- no debconf information _______________________________________________ Pkg-ruby-extras-maintainers mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/pkg-ruby-extras-maintainers
