rubiojr/yumrepo — pull request #3 by mstump (2011-11-09 20:07:55+00:00)
Title: Use binary mode when writing cache and temp files

Ruby 1.9.2 is really sensitive to string encoding. When dealing with strings and files if the value isn't within the range of the encoding (UTF8 by default) it throws an exception. This was occurring when downloading the gziped centos repo XML. By switching the temp or cache files to binary mode it avoids this issue.