Better filetype detection

This takes a smarter approach to determining the file type so we don't barf all over the place when dealing with data that should be sent to shopify as binary data.

This fixes #85 

Please review @maartenvg 

/cc @jduff @tylerball 
Whups

- Chris / Developer @ Shopify

> On Jun 30, 2014, at 10:55, Maarten van Grootel <notifications@github.com> wrote:
> 
> In lib/shopify_theme/cli.rb:
> 
> > @@ -247,6 +247,11 @@ def valid?(key)
> >        false
> >      end
> >  
> > +    def binary_file?(path)
> > +      setupMimeMagic
> Why camelcase? setup_mime_magic?
> 
> —
> Reply to this email directly or view it on GitHub.