From d3a3358402ca4deda235fca15847f5c45ae4f07b Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Wed, 6 Jul 2011 09:20:17 -0500 Subject: [PATCH] Fix instance methods check on 1.9 --- lib/linguist/blob_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/linguist/blob_helper.rb b/lib/linguist/blob_helper.rb index b1e095a5..77dffe2f 100644 --- a/lib/linguist/blob_helper.rb +++ b/lib/linguist/blob_helper.rb @@ -471,8 +471,8 @@ module Linguist end Language.overridden_extensions.each do |extension| - name = "guess_#{extension.sub(/^\./, '')}_language" - unless instance_methods.include?(name) + name = "guess_#{extension.sub(/^\./, '')}_language".to_sym + unless instance_methods.map(&:to_sym).include?(name) warn "Language##{name} was not defined" end end