mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	Add iWork mime types
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
| @@ -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') | ||||
|   | ||||
		Reference in New Issue
	
	Block a user