From 49cbad5b6e227751a9344eb061f6b33c4a16ee62 Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Fri, 12 Sep 2014 16:47:39 +0600 Subject: [PATCH] fix ArgumentError: wrong number of arguments (2 for 1) --- lib/ext/git/grit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ext/git/grit.rb b/lib/ext/git/grit.rb index e484ebeb5..5e67c2d26 100644 --- a/lib/ext/git/grit.rb +++ b/lib/ext/git/grit.rb @@ -49,7 +49,7 @@ module Grit if mime_type == 'text/rpm-spec' @raw_mime_type = 'text/x-rpm-spec' else - @raw_mime_type = Linguist::Language.detect(name, data).try(:lexer).try(:mimetypes).try(:first) + @raw_mime_type = Linguist::Language.detect(self).try(:lexer).try(:mimetypes).try(:first) @raw_mime_type ||= DEFAULT_MIME_TYPE @raw_mime_type.gsub!('application', 'text') @raw_mime_type