From a0be27c10b11025fd5ca7e2c8cd7ba7cd5af831d Mon Sep 17 00:00:00 2001 From: Ryan Heneise Date: Fri, 1 Oct 2010 10:32:34 -0400 Subject: [PATCH] Fixed file:// link to reference absolute path in test results. (Borrowed from this commit: http://github.com/invisiblellama/ruby-tmbundle/commit/d122b50318ea7e297e1f27eac63aee0c358d533c) --- Support/RubyMate/run_script.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Support/RubyMate/run_script.rb b/Support/RubyMate/run_script.rb index 3b2d118..0bf706d 100755 --- a/Support/RubyMate/run_script.rb +++ b/Support/RubyMate/run_script.rb @@ -35,6 +35,9 @@ if line =~ /^(\s+)(\S.*?):(\d+)(?::in\s*`(.*?)')?/ indent, file, line, method = $1, $2, $3, $4 url, display_name = '', 'untitled document'; + unless file =~ /^\// + file = File.join(ENV['TM_PROJECT_DIRECTORY'], file) + end unless file == "-" indent += " " if file.sub!(/^\[/, "") url = '&url=file://' + e_url(file)