Merge remote-tracking branch 'origin/master' into config

This commit is contained in:
Corey Johnson
2012-12-27 10:38:24 -08:00
34 changed files with 476 additions and 150 deletions

View File

@@ -123,3 +123,24 @@ module.exports =
md5ForPath: (path) ->
$native.md5ForPath(path)
isCompressedExtension: (ext) ->
_.contains([
'.gz'
'.jar'
'.tar'
'.zip'
], ext)
isImageExtension: (ext) ->
_.contains([
'.gif'
'.jpeg'
'.jpg'
'.png'
], ext)
isPdfExtension: (ext) ->
_.contains([
'.pdf'
], ext)