Commit Graph

11 Commits

Author SHA1 Message Date
Sam Saffron 63802d1e45
FEATURE: perform case insensitive lookups
This corrects rails/rails#41796

Previously lookup by extension was case sensitive leading to a slight
disparity between mime-types implementation and mini-mime

New implementation is slightly more efficient for correctly cased lookups.
2021-04-05 11:18:30 +10:00
Osama Sayegh ecaaffd63f
DEV: Switch from Travis to Actions (#29) 2020-11-25 18:16:11 +03:00
Gannon McGibbon 5086550004 Allow custom db paths 2019-02-20 13:43:40 +11:00
pavel a5763ccbf3 expose lookup by extension 2018-08-13 12:03:39 +02:00
Sam 63ca7f8235 FIX: prefer mime types extension when looking up by content type
fixes #8
2017-08-11 15:23:43 -04:00
Jason Frey 2194c2c76f Cleanup the logic for detecting the correct type from MIME::Types 2017-03-28 14:56:55 -04:00
Sam 3cd66be22d FIX: prefer non-obsolete types to obsolete ones 2017-03-28 10:00:46 -04:00
Jeremy Daer 6c2400b90c
Broad Ruby support, matching the Mail lib 2016-12-13 23:06:22 -07:00
Sam c8e30cac45 API cleanup and documentation 2016-12-14 15:06:38 +11:00
Sam d90bcf989e implemented content_type based lookup
implemented caching to limit memory usage
organise code better for reuse
2016-12-14 09:21:11 +11:00
Sam 3b845b29d0 Initial commit 2016-12-13 18:39:26 +11:00