Changelog
0.5.4
This gem implements [PR
175](https://github.com/mimemagicrb/mimemagic/issues/175) upstream,
from 2023-08-09. It will be dissolved if/when the patch is ever merged.
Added
.binary?predicate will tell if the input (IO,String, file extension, path, type, whatever) is binary#binary?instance method likewise.default_typewill return either text/plain or application/octet-stream depending on whether the input is perceived to be binary#aliases(and.aliases) will return the list of aliases for a given type#alias?predicate will determine if a given type is an alias of a canonical type#canonical(and.canonical) will return a canonical type for a (potentially aliased) type#parentswill return the immediate parent types of the given type#lineagewill return the entire (flattened) inheritance hierarchy of the given type, including itself- fancy new
MimeMagic[…]constructor will instantiate from a type or file extension - constructor now handles type parameters;
paramsaccessor - explicit
#inspectmethod shows abridged diagnostic representation default:keyword parameter on.by_extension,.by_path,.by_magic,.all_by_magicwill guarantee a return value when truthy (either the result of.default_typefor the given input or a user-supplied value)
Fixed
- internal database now contains aliases and the canonical type identifier
- normalized all the documentation to YARD
0.4.3
???
0.4.2
???
0.4.1
Breaking Changes
Remove mimemagic/overlay as it contains outdated, little used, data.
0.3.7 (2021-03-25)
You will now need to ensure you have a copy of the fd.o shared MIME types information available before installing this gem. More details can be found in the readme.
Added
None
Fixed
None
0.4.3
Improve the development/test experience (@coldnebo, @kachick)
Ensure the gem works in environments with gem caching (@haines)
Add support for MacPorts installed dependencies (@brlanier)
Allow using a dummy XML file in cases where the gem is just a transient dependency. (@Scharrels)
0.4.2
Resolve issues parsing the version of freedesktop.org.xml shipped with Ubuntu Trusty.
Make Rake a runtime dependency.
Fix the test suite.
Relax the dependency on Nokogiri to something less specific in order to avoid conflicting with other dependencies in people's applications.
0.4.1
0.4.0
Yanked release.
0.3.10
Improve the development/test experience (@coldnebo, @kachick)
Ensure the gem works in environments with gem caching (@haines)
Add support for MacPorts installed dependencies (@brlanier)
Allow using a dummy XML file in cases where the gem is just a transient dependency. (@Scharrels)
0.3.9 (2021-03-25)
Resolve issues parsing the version of freedesktop.org.xml shipped with Ubuntu Trusty.
Reintroduce overlays, since it seems at least some people were using them.
Make Rake a runtime dependency.
Fix the test suite.
0.3.8 (2021-03-25)
Relax the dependency on Nokogiri to something less specific in order to avoid conflicting with other dependencies in people's applications.
0.3.7 (2021-03-25)
Add a dependency on having a preinstalled version of the fd.o shared MIME types info to resolve licensing concerns, and allow this gem to remain MIT licensed.
See the readme for details on ensuring you have a copy of the database available at install time.
0.3.6 (2021-03-23)
Yanked release, relicensing to GPL due to licensing concerns.
0.3.5 (2020-05-04)
Mimetype extensions are now ordered by freedesktop.org's priority
0.3.4 (2020-01-28)
Added frozen string literal comments
0.3.3 (2018-12-20)
Upgrade to shared-mime-info-1.10
0.3.2 (2016-08-02)
Breaking Changes
None
Added
- #37 A convenient way to get all possible mime types by magic
Fixed
0.3.1 (2016-01-04)
No release notes yet. Contributions welcome.
0.3.0 (2015-03-25)
No release notes yet. Contributions welcome.
0.2.1 (2013-07-29)
No release notes yet. Contributions welcome.
0.2.0 (2012-10-19)
No release notes yet. Contributions welcome.
0.1.9 (2012-09-20)
No release notes yet. Contributions welcome.
0.1.8 (2009-05-08)
No release notes yet. Contributions welcome.
0.1.7 (2009-05-08)
No release notes yet. Contributions welcome.
0.1.5 (2009-05-08)
No release notes yet. Contributions welcome.
0.1.4 (2009-05-08)
No release notes yet. Contributions welcome.
0.1.3 (2009-05-08)
No release notes yet. Contributions welcome.
0.1.2 (2009-05-08)
No release notes yet. Contributions welcome.
0.1.1 (2009-05-08)
No release notes yet. Contributions welcome.