Permalink
Switch branches/tags
Commits on Aug 9, 2016
  1. Merge pull request #42 from jaredbeck/introduce_changelog

    minad committed on GitHub Aug 9, 2016
    Docs: Introduce changelog
Commits on Aug 8, 2016
  1. Docs: Introduce changelog

    jaredbeck committed Aug 8, 2016
    [ci skip]
Commits on Aug 2, 2016
  1. v0.3.2

    minad committed Aug 2, 2016
  2. Merge pull request #41 from janko-m/io-like-objects

    janko-m committed on GitHub Aug 2, 2016
    Support IO-like objects efficiently
Commits on Jul 26, 2016
  1. Support IO-like objects efficiently

    janko-m committed Jul 23, 2016
    Previously if we passed in an IO object which doesn't respond to #seek,
    MimeMagic would read the whole IO into memory. And this is exactly the
    type of objects that the Shrine file upload library deals with.
    
    However, we can also "seek" by blank-reading that many bytes, and always
    rewinding to the beginning, which is what we've implemented in this
    change.
    
    This change also doesn't require IOs to respond to #binmode.
Commits on Jul 25, 2016
  1. Merge pull request #40 from janko-m/performance-improvements

    minad committed on GitHub Jul 25, 2016
    Improve performance
Commits on Jul 23, 2016
  1. Search magic bytes for common MIME types first

    janko-m committed Jul 23, 2016
    If you speed up detection of common MIME types, you speed up MIME type
    detection in general.
  2. Use StringIO to remove duplication

    janko-m committed Jul 23, 2016
    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.
Commits on Jun 28, 2016
  1. Merge pull request #38 from fedot/shared-mime-info-1.6

    minad committed on GitHub Jun 28, 2016
    Updated to shared-mime-info 1.6
  2. updated to shared-mime-info-1.6

    fedot committed Jun 28, 2016
Commits on May 27, 2016
  1. Merge pull request #37 from RobCherry/all_by_magic

    minad committed May 27, 2016
    Add support for returning all possible mime types by magic.
  2. Updating Travis CI build parameters to resolve 1.9.3 build issues and…

    RobCherry committed May 27, 2016
    … include newer ruby versions.
Commits on Feb 15, 2016
  1. Updated to shared-mime-info 1.5

    fedot committed Feb 15, 2016
Commits on Jan 4, 2016
  1. v0.3.1

    minad committed Jan 4, 2016
Commits on Aug 14, 2015
  1. Merge pull request #26 from gsar/master

    minad committed Aug 14, 2015
    avoid loose matching on msoffice formats in overlay.rb
Commits on Aug 7, 2015
  1. Merge pull request #25 from NotablePDF/fix_ms_detection

    minad committed Aug 7, 2015
    Extend the range we search for MS files
Commits on Aug 5, 2015
  1. Extend the range we search

    jordan-thoms committed Aug 5, 2015
    Sometimes the first instance of the word/ or ppt/ is not in the first 2000 bytes - 5000 should cover it.
Commits on Jul 27, 2015
  1. Merge pull request #23 from boutil/master

    minad committed Jul 27, 2015
    replace test images by images from public domain
  2. replace test images by images from public domain

    boutil committed Jul 27, 2015
    The original images were licensed under CC-BY-SA-2.5, considered
    non-free by the Debian project
    https://commons.wikimedia.org/wiki/File:Phalaenopsis_%28aka%29.jpg
    The new files
    http://www.public-domain-image.com/free-images/flora-plants/flowers/orchid-flower-pictures/white-and-red-orchid
    are licensed under the CC public domain
Commits on Mar 25, 2015
  1. v0.3.0

    minad committed Mar 25, 2015
  2. update shared-mime-info-1.4

    minad committed Mar 25, 2015
Commits on Mar 21, 2015
  1. drop 1.8.7

    minad committed Mar 21, 2015
  2. Merge pull request #20 from scpike/extra-magic-overlays

    minad committed Mar 21, 2015
    Handle .docx, .xlsx, and .pptx with extra magic
Commits on Mar 15, 2015
  1. 1.8.7 support

    scpike committed Mar 15, 2015
  2. Handle .docx, .xlsx, and .pptx with extra magic

    scpike committed Mar 13, 2015
    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:
    
      - thoughtbot/paperclip#1530 (comment)
    
    Support is enabled through an overlay, required with
    
        require 'mimemagic/overlay'
    
    Documentation is in the README
Commits on Nov 10, 2014
  1. update table

    minad committed Nov 10, 2014
Commits on Apr 20, 2014
  1. test against rbx

    minad committed Apr 20, 2014
Commits on Jan 4, 2014
  1. test ruby 2.1.0

    minad committed Jan 4, 2014
Commits on Oct 27, 2013
  1. add bages

    minad committed Oct 27, 2013
    [ci skip]
Commits on Sep 29, 2013
  1. allow failures

    minad committed Sep 29, 2013
Commits on Jul 29, 2013
  1. update gemspec

    minad committed Jul 29, 2013