Handle unknown filetypes and report them to user

This fixes a regression that was introduced because some file-types were supported (svg and eot) that got removed in the move over to mime magic. Adds tests to verify those file-types still work. This also adds some logging that will report unknown filetypes to the user so they know that a file we couldn't figure out was upload as binary.

Followup on #104 

Please review @maartenvg 
it's rather odd that MimeMagic doesn't support JSON. That's pretty common.
I'll need to look into the seed data it uses to verify that it's actually
not there.


On Wed, Jul 16, 2014 at 5:27 PM, calKK <notifications@github.com> wrote:

> In lib/shopify_theme/cli.rb:
>
> > @@ -10,6 +10,8 @@
> >  require 'mimemagic'
> >
> >  MimeMagic.add('application/x-liquid', extensions: %w(liquid), parents: 'text/plain')
> > +MimeMagic.add('application/vnd.ms-fontobject', extensions: %w(eot))
> > +MimeMagic.add('image/svg+xml', extensions: %w(svg svgz))
>
> add MimeMagic.add('application/json', extensions: %w(json)) to that for
> JSON
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/Shopify/shopify_theme/pull/109/files#r15028802>.
>



-- 
Chris Saunders // Developer @ Shopify