diff --git a/lib/linguist/blob_helper.rb b/lib/linguist/blob_helper.rb index bbbe2301..16838be5 100644 --- a/lib/linguist/blob_helper.rb +++ b/lib/linguist/blob_helper.rb @@ -2,6 +2,7 @@ require 'linguist/language' require 'linguist/mime' require 'linguist/pathname' +require 'escape_utils' require 'yaml' module Linguist diff --git a/lib/linguist/pathname.rb b/lib/linguist/pathname.rb index 8c35557b..fc7c5d28 100644 --- a/lib/linguist/pathname.rb +++ b/lib/linguist/pathname.rb @@ -108,6 +108,9 @@ module Linguist @binary ||= Mime.binary?(extname) end + # Public: Return self as String + # + # Returns a String def to_s @path.dup end