marcel 0.3.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/marcel.rb +3 -2
- data/lib/marcel/magic.rb +147 -0
- data/lib/marcel/mime_type.rb +68 -67
- data/lib/marcel/mime_type/definitions.rb +7 -3
- data/lib/marcel/tables.rb +2509 -0
- data/lib/marcel/version.rb +1 -1
- metadata +41 -232
- data/.gitignore +0 -1
- data/.travis.yml +0 -7
- data/Gemfile +0 -4
- data/Gemfile.lock +0 -26
- data/README.md +0 -50
- data/Rakefile +0 -33
- data/marcel.gemspec +0 -28
- data/test/declared_type_test.rb +0 -17
- data/test/extension_test.rb +0 -25
- data/test/fixtures/image.gif +0 -0
- data/test/fixtures/magic/application/msword/msword.doc +0 -0
- data/test/fixtures/magic/application/pdf/illustrator-seen-as-pdf.ai +22 -6302
- data/test/fixtures/magic/application/pdf/pdf.pdf +0 -0
- data/test/fixtures/magic/application/rtf/rtf.rtf +0 -1
- data/test/fixtures/magic/application/vnd.adobe.flash.movie/flash.swf +0 -0
- data/test/fixtures/magic/application/vnd.openxmlformats-officedocument.presentationml.presentation/vnd.openxmlformats-officedocument.presentationml.presentation.pptx +0 -0
- data/test/fixtures/magic/application/vnd.openxmlformats-officedocument.spreadsheetml.sheet/vnd.openxmlformats-officedocument.spreadsheetml.sheet.xlsx +0 -0
- data/test/fixtures/magic/application/vnd.openxmlformats-officedocument.wordprocessingml.document/vnd.openxmlformats-officedocument.wordprocessingml.document.docx +0 -0
- data/test/fixtures/magic/application/x-font-ttf.ttf +0 -0
- data/test/fixtures/magic/application/xml/xml.xml +0 -1
- data/test/fixtures/magic/application/zip/sketch.sketch +0 -0
- data/test/fixtures/magic/application/zip/zip.zip +0 -0
- data/test/fixtures/magic/audio/flac/flac.flac +0 -0
- data/test/fixtures/magic/audio/mp4/m4a.m4a +0 -0
- data/test/fixtures/magic/audio/mp4/mp4.m4a +0 -0
- data/test/fixtures/magic/audio/mpeg/mpeg.mp3 +0 -0
- data/test/fixtures/magic/audio/x-wav/wav.wav +0 -0
- data/test/fixtures/magic/audio/x-wav/x-wav.wav +0 -0
- data/test/fixtures/magic/image/bmp/bmp.bmp +0 -0
- data/test/fixtures/magic/image/gif/gif.gif +0 -0
- data/test/fixtures/magic/image/jpeg/jpeg.jpg +0 -0
- data/test/fixtures/magic/image/png/png.png +0 -0
- data/test/fixtures/magic/image/svg+xml/svg.svg +0 -1
- data/test/fixtures/magic/image/tiff/tiff.tif +0 -0
- data/test/fixtures/magic/image/vnd.adobe.photoshop/photoshop-large-document-format.psb +0 -0
- data/test/fixtures/magic/image/vnd.adobe.photoshop/vnd.adobe.photoshop.psd +0 -0
- data/test/fixtures/magic/image/vnd.dwg/x-dwg.dwg +0 -0
- data/test/fixtures/magic/image/vnd.microsoft.icon/ico.ico +0 -0
- data/test/fixtures/magic/image/webp/webp.webp +0 -0
- data/test/fixtures/magic/image/x-eps/postscript/postscript.eps +0 -0
- data/test/fixtures/magic/image/x-eps/x-eps.eps +0 -0
- data/test/fixtures/magic/text/html/html.html +0 -3
- data/test/fixtures/magic/video/mp4/m4v.m4v +0 -0
- data/test/fixtures/magic/video/mp4/mp4.mp4 +0 -0
- data/test/fixtures/magic/video/quicktime/quicktime.mov +0 -0
- data/test/fixtures/magic/video/webm/webm.mkv +0 -0
- data/test/fixtures/name/application/illustrator/illustrator.ai +27 -6301
- data/test/fixtures/name/application/javascript/javascript.js +0 -3
- data/test/fixtures/name/application/json/json.json +0 -3
- data/test/fixtures/name/application/msword/msword.doc +0 -0
- data/test/fixtures/name/application/pdf/pdf.pdf +0 -0
- data/test/fixtures/name/application/rtf/rtf.rtf +0 -1
- data/test/fixtures/name/application/sql/sql.sql +0 -0
- data/test/fixtures/name/application/vnd.adobe.flash.movie/flash.swf +0 -0
- data/test/fixtures/name/application/vnd.android.package-archive/vnd.android.package-archive.apk +0 -0
- data/test/fixtures/name/application/vnd.apple.keynote/vnd.apple.keynote.key +0 -0
- data/test/fixtures/name/application/vnd.apple.numbers/vnd.apple.numbers.numbers +0 -0
- data/test/fixtures/name/application/vnd.apple.pages/vnd.apple.pages.pages +0 -0
- data/test/fixtures/name/application/vnd.ms-excel.sheet.binary.macroenabled.12/vnd.ms-excel.sheet.binary.macroenabled.12.xlsb +0 -0
- data/test/fixtures/name/application/vnd.ms-excel.sheet.macroenabled.12/vnd.ms-excel.sheet.macroenabled.12.xlsm +0 -0
- data/test/fixtures/name/application/vnd.ms-excel.template.macroenabled.12/vnd.ms-excel.template.macroenabled.12.xltm +0 -0
- data/test/fixtures/name/application/vnd.ms-excel/vnd.ms-excel.xls +0 -0
- data/test/fixtures/name/application/vnd.ms-powerpoint.presentation.macroenabled.12/vnd.ms-powerpoint.presentation.macroenabled.12.pptm +0 -0
- data/test/fixtures/name/application/vnd.ms-powerpoint.slideshow.macroenabled.12/vnd.ms-powerpoint.slideshow.macroenabled.12.ppsm +0 -0
- data/test/fixtures/name/application/vnd.ms-powerpoint.template.macroenabled.12/vnd.ms-powerpoint.template.macroenabled.12.potm +0 -0
- data/test/fixtures/name/application/vnd.ms-word.document.macroenabled.12/vnd.ms-word.document.macroenabled.12.docm +0 -0
- data/test/fixtures/name/application/vnd.ms-word.template.macroenabled.12/vnd.ms-word.template.macroenabled.12.dotm +0 -0
- data/test/fixtures/name/application/vnd.openxmlformats-officedocument.presentationml.presentation/vnd.openxmlformats-officedocument.presentationml.presentation.pptx +0 -0
- data/test/fixtures/name/application/vnd.openxmlformats-officedocument.presentationml.slideshow/vnd.openxmlformats-officedocument.presentationml.slideshow.ppsx +0 -0
- data/test/fixtures/name/application/vnd.openxmlformats-officedocument.presentationml.template/vnd.openxmlformats-officedocument.presentationml.template.potx +0 -0
- data/test/fixtures/name/application/vnd.openxmlformats-officedocument.spreadsheetml.sheet/downloaded-from-google-docs.xlsx +0 -0
- data/test/fixtures/name/application/vnd.openxmlformats-officedocument.spreadsheetml.sheet/vnd.openxmlformats-officedocument.spreadsheetml.sheet.xlsx +0 -0
- data/test/fixtures/name/application/vnd.openxmlformats-officedocument.wordprocessingml.document/vnd.openxmlformats-officedocument.wordprocessingml.document.docx +0 -0
- data/test/fixtures/name/application/vnd.openxmlformats-officedocument.wordprocessingml.template/vnd.openxmlformats-officedocument.wordprocessingml.template.dotx +0 -0
- data/test/fixtures/name/application/x-font-ttf.ttf +0 -0
- data/test/fixtures/name/application/zip/zip.zip +0 -0
- data/test/fixtures/name/audio/flac/flac.flac +0 -0
- data/test/fixtures/name/audio/mp4/mp4.m4a +0 -0
- data/test/fixtures/name/audio/mpeg/mpeg.mp3 +0 -0
- data/test/fixtures/name/audio/x-wav/x-wav.wav +0 -0
- data/test/fixtures/name/image/bmp/bmp.bmp +0 -0
- data/test/fixtures/name/image/gif/gif.gif +0 -0
- data/test/fixtures/name/image/heic.heic +0 -0
- data/test/fixtures/name/image/heif.heif +0 -0
- data/test/fixtures/name/image/jpeg/jpeg.jpg +0 -0
- data/test/fixtures/name/image/png/png.png +0 -0
- data/test/fixtures/name/image/svg+xml/svg.svg +0 -1
- data/test/fixtures/name/image/tiff/tiff.tif +0 -0
- data/test/fixtures/name/image/tiff/tiff.tiff +0 -0
- data/test/fixtures/name/image/vnd.adobe.photoshop/saved-as-large-document-format.psb +0 -0
- data/test/fixtures/name/image/vnd.adobe.photoshop/vnd.adobe.photoshop.psd +0 -0
- data/test/fixtures/name/image/x-eps/postscript/postscript.eps +0 -0
- data/test/fixtures/name/image/x-eps/x-eps.eps +0 -0
- data/test/fixtures/name/message/rfc822/rfc822.eml +0 -34
- data/test/fixtures/name/text/csv/csv.csv +0 -2
- data/test/fixtures/name/text/html/html.html +0 -3
- data/test/fixtures/name/text/plain/plain.asc +0 -1
- data/test/fixtures/name/text/plain/plain.txt +0 -1
- data/test/fixtures/name/text/x-log/x-log.log +0 -1
- data/test/fixtures/name/video/mp4/mp4.mp4 +0 -0
- data/test/fixtures/name/video/quicktime/quicktime.mov +0 -0
- data/test/magic_and_declared_type_test.rb +0 -10
- data/test/magic_and_name_test.rb +0 -13
- data/test/magic_test.rb +0 -13
- data/test/mime_type_test.rb +0 -47
- data/test/name_test.rb +0 -10
- data/test/test_helper.rb +0 -49
There are too many changes on this page to be displayed.
The amount of changes on this page would crash your brower.
You can still verify the content by downloading the gem file manually.