From 88f08803ee5704be77c230560c9f362a639e0b27 Mon Sep 17 00:00:00 2001 From: Brandon Keepers Date: Fri, 28 Nov 2014 12:34:41 -0600 Subject: [PATCH] require shebang when building samples --- lib/linguist/samples.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/linguist/samples.rb b/lib/linguist/samples.rb index fa3655ce..3f4f7ec4 100644 --- a/lib/linguist/samples.rb +++ b/lib/linguist/samples.rb @@ -6,6 +6,7 @@ end require 'linguist/md5' require 'linguist/classifier' +require 'linguist/shebang' module Linguist # Model for accessing classifier training data. @@ -61,7 +62,7 @@ module Linguist yield({ :path => path, :language => category, - :interpreter => Linguist.interpreter_from_shebang(File.read(path)), + :interpreter => Shebang.interpreter(File.read(path)), :extname => File.extname(filename) }) end