Add iWork mime types

This commit is contained in:
Joshua Peek
2011-06-16 08:56:13 -05:00
parent 5fe9701e50
commit 2bcae1e2d1
2 changed files with 9 additions and 0 deletions

View File

@@ -39,6 +39,9 @@ application/vnd.oasis.opendocument.text @odt
application/vnd.openofficeorg.extension @oxt
application/vnd.openxmlformats-officedocument.presentationml.presentation @pptx
application/x-chrome-extension @crx
application/x-iwork-keynote-sffkey @key
application/x-iwork-numbers-sffnumbers @numbers
application/x-iwork-pages-sffpages @pages
application/x-ms-xbap @xbap :8bit
application/x-shockwave-flash @swf
application/x-silverlight-app @xap

View File

@@ -16,6 +16,9 @@ class TestMime < Test::Unit::TestCase
# only pick one of them. Please keep this list alphabetized.
assert_equal 'application/chrome-extension', Mime.mime_for('.crx')
assert_equal 'application/debian-package', Mime.mime_for('.deb')
assert_equal 'application/iwork-keynote-sffkey', Mime.mime_for('.key')
assert_equal 'application/iwork-numbers-sffnumbers', Mime.mime_for('.numbers')
assert_equal 'application/iwork-pages-sffpages', Mime.mime_for('.pages')
assert_equal 'application/java-archive', Mime.mime_for('.ear')
assert_equal 'application/java-archive', Mime.mime_for('.jar')
assert_equal 'application/java-archive', Mime.mime_for('.war')
@@ -92,11 +95,13 @@ class TestMime < Test::Unit::TestCase
assert Mime.binary?('.gz')
assert Mime.binary?('.icns')
assert Mime.binary?('.ipa')
assert Mime.binary?('.key')
assert Mime.binary?('.lib')
assert Mime.binary?('.mcz')
assert Mime.binary?('.mov')
assert Mime.binary?('.mp3')
assert Mime.binary?('.nib')
assert Mime.binary?('.numbers')
assert Mime.binary?('.o')
assert Mime.binary?('.odp')
assert Mime.binary?('.ods')
@@ -104,6 +109,7 @@ class TestMime < Test::Unit::TestCase
assert Mime.binary?('.ogg')
assert Mime.binary?('.ogv')
assert Mime.binary?('.otf')
assert Mime.binary?('.pages')
assert Mime.binary?('.pfx')
assert Mime.binary?('.pigx')
assert Mime.binary?('.plgx')