- 23 Jul, 2016 3 commits
-
-
If you speed up detection of common MIME types, you speed up MIME type detection in general.
Janko Marohnić committed -
Janko Marohnić committed
-
Previously we had to separate branches which did the same thing, one was for IOs and other was for strings. However, if we wrap the string into a StringIO, we can use the same branch for both.
Janko Marohnić committed
-
- 28 Jun, 2016 1 commit
-
- 27 May, 2016 2 commits
-
-
Rob Cherry committed
-
Rob Cherry committed
-
- 15 Feb, 2016 1 commit
-
-
Fedot Praslov committed
-
- 04 Jan, 2016 1 commit
-
-
Daniel Mendler committed
-
- 14 Aug, 2015 1 commit
-
-
Gurusamy Sarathy committed
-
- 05 Aug, 2015 1 commit
-
-
Sometimes the first instance of the word/ or ppt/ is not in the first 2000 bytes - 5000 should cover it.
Jordan Thoms committed
-
- 25 Mar, 2015 2 commits
-
-
Daniel Mendler committed
-
Daniel Mendler committed
-
- 15 Mar, 2015 2 commits
-
-
Stephen Pike committed
-
The freedesktop magic doesn't work for the Office 2007+ files, it detects them all as application/zip. I have magic which detects them, but it requires looking at 2,000 byte ranges, too much for their project (which has to support things like file browsers). Since you already warn that `by_magic` is slow, it'd be nice to support it here at least. This would allow the paperclip project to use mimemagic and stop relying on the `file` binary: - https://github.com/thoughtbot/paperclip/issues/1530#issuecomment-43375497 Support is enabled through an overlay, required with require 'mimemagic/overlay' Documentation is in the README
Stephen Pike committed
-
- 10 Nov, 2014 1 commit
-
-
Daniel Mendler committed
-
- 29 Jul, 2013 6 commits
-
-
Daniel Mendler committed
-
Daniel Mendler committed
-
Daniel Mendler committed
-
Daniel Mendler committed
-
Daniel Mendler committed
-
Daniel Mendler committed
-
- 25 Jul, 2013 1 commit
-
-
Updated by_magic() to work with Ruby 2.0 - tries to call .b on string so they are compared as binary
wbond committed
-
- 18 Oct, 2012 1 commit
-
-
Daniel Mendler committed
-
- 20 Sep, 2012 2 commits
-
-
Ian Young committed
-
Daniel Mendler committed
-
- 19 Sep, 2012 2 commits
- 01 Jul, 2011 1 commit
-
-
minad committed
-
- 23 Jan, 2011 5 commits
- 03 Oct, 2010 3 commits
-
-
minad committed
-
minad committed
-
Jacques Crocker committed
-
- 28 Aug, 2010 1 commit
-
-
minad committed
-
- 27 Aug, 2010 1 commit
-
-
It's possible for vague magic to cause the wrong filetype to be detected. For instance, application/x-gmc-link is seriously vague (tons of files have "URL:" in the first 32 bytes!). This allows you to remove the conflicting filetypes that you're sure you'll never see.
Scott Bronson committed
-
- 21 Aug, 2010 2 commits