4 ms·
So, this gem uses the mime database provided by freedesktop.org when the gem could have got the database from http://www.iana.org/assignments/media-types/media-
by protomyth 6y ago
So, this gem uses the mime database provided by freedesktop.org when the gem could have got the database from http://www.iana.org/assignments/media-types/media-types.xhtml http://www.iana.org/assignments/media-types/media-types.xhtm... which wouldn't be GPL? What manipulation is done by freedesktop.org?
- devrand 6y agoThe gem is basically a database of mime type, file extension, and magic bytes. The last two are not included in the linked iana database.
- protomyth 6y agoWhere did freedesktop.org get the magic bytes? I assume (probably stupidly) that some of that has to be in a file command on some BSD.
- garblegarble 6y agoHere's what the magic bytes look like in FreeBSD, as an example I've linked to the definition of PNG. You can see it's a fair bit more complicated but it does have mime and extension data. https://github.com/freebsd/freebsd-src/blob/master/contrib/file/magic/Magdir/images#L421 https://github.com/freebsd/freebsd-src/blob/master/contrib/f...