Remove .script! hack

This commit is contained in:
Brandon Keepers
2014-11-28 16:49:40 -06:00
parent 745ce14d47
commit 8a42f76f03
36 changed files with 24 additions and 47 deletions

View File

@@ -50,16 +50,13 @@ module Linguist
end
else
path = File.join(dirname, filename)
if File.extname(filename) == ""
raise "#{path} is missing an extension, maybe it belongs in filenames/ subdir"
end
extname = File.extname(filename)
yield({
:path => path,
:language => category,
:interpreter => Shebang.interpreter(File.read(path)),
:extname => File.extname(filename)
:extname => extname.empty? ? nil : extname
})
end
end