Refacroring for MimeTypes
Add support for ruby #2