Compare the contents of Ruby IO objects line by line and output meaningful mismatch messages