2potatocakes/rubyzip — comment on commit c68770f3a3e3ea891f20fdc0faf36cae513efdb2
File:  line 0
By 2potatocakes:

When reading in your test files ruby is automatically converting \r to \r\n to support the windows environment better which is a pain in the butt sometimes.

This happens every time you read or write to a file. It can be avoided by reading and writing using the binary flag "b" which will leave the file is it's unchanged form.