minad/mimemagic — pull request #12 by muffinista (2013-07-12 18:00:38+00:00)
Title: Ruby 2.0 compatability

Currently MimeMagic.by_magic isn't working in Ruby 2.0, I believe for problems which are described here: http://stackoverflow.com/questions/15843684/binary-string-literals-in-ruby-2-0

This PR should address the problem, while maintaining compatibility with ruby 1.9. I chose not to use the ruby 1.8 fix but I can submit a request with that instead if preferred.