Package: ruby-simplecov / 0.7.1-2

Metadata

Package Version Patches format
ruby-simplecov 0.7.1-2 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
remove rubygems bundler.patch | (download)

test/faked_project/test/test_helper.rb | 2 1 + 1 - 0 !
test/helper.rb | 5 4 + 1 - 0 !
2 files changed, 5 insertions(+), 2 deletions(-)

 remove bundler
 We'll collect dependencies in debian/control
ignore simplecov html | (download)

lib/simplecov/defaults.rb | 13 11 + 2 - 0 !
1 file changed, 11 insertions(+), 2 deletions(-)

 ignore simplecov-html load failured
 Break dependency cycle
open source files in binary mode | (download)

lib/simplecov/source_file.rb | 3 1 + 2 - 0 !
1 file changed, 1 insertion(+), 2 deletions(-)

 [patch] open source files in binary mode

Opening non-UTF-8 files as UTF-8 succeeds in some cases and will throw
<ArgumentError: invalid byte sequence in UTF-8> when comparing against a
regexp. Forcing Ruby to use binary mode will keep strings as ASCII-8BIT
and seems to work on all current versions of Ruby.

Moreover, there is no way to know for sure which encoding is used
without heuristics or parsing the potential encoding shebang thus binary
mode is probably safer.

[zeha@debian.org: Backport to simplecov 0.7]