Ruby rcov rexml error

15 Sep 2009

Ruby’s rcov had a workaround for a breakage in the rexml library, but the workaround broke.

This causes no implicit conversion from nil to integer on stderr. Quick solution:

rcov-0.8.1.2.0/lib/rcov/report.rb
-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

Versions:

% cat /etc/issue.net
Ubuntu 9.04
% ruby --version
ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]
% gem list --local rcov
rcov (0.8.1.2.0)
comments powered by Disqus

  « Previous: Next: »