Skip to content
Browse files

The Ruby syntax validation command could display the wrong version nu…


The version printed was the version used to run the command (via the shebang), but if TM_RUBY is set then the version used to perform the validation could be different.

git-svn-id: dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
1 parent 5581372 commit ff492e4b6ab9e125840068fa0760c07fa64b8ffc @ciaran ciaran committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 Commands/Check Ruby Syntax.plist
4 Commands/Check Ruby Syntax.plist
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "">
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
@@ -7,7 +7,7 @@
<string>#!/usr/bin/env ruby
require ENV['TM_SUPPORT_PATH'] + '/lib/textmate'
-puts "using ruby-" + RUBY_VERSION.to_s
+puts `"${TM_RUBY:=ruby}" -e'puts "Using ruby-" + RUBY_VERSION.to_s'`
result = `"${TM_RUBY:=ruby}" -wc 2&gt;&amp;1`
puts result
TextMate.go_to :line =&gt; $1 if result =~ /-:(\d+):/

0 comments on commit ff492e4

Please sign in to comment.
Something went wrong with that request. Please try again.