minad/mimemagic — pull request #13 by muffinista (2013-07-12 21:19:10+00:00)
Title: Ruby 2.0 compatibility

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 and ruby 1.8.