Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…mber.

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: http://svn.textmate.org/trunk/Bundles/Ruby.tmbundle@11485 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
commit ff492e4b6ab9e125840068fa0760c07fa64b8ffc 1 parent 5581372
@ciaran ciaran authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 Commands/Check Ruby Syntax.plist
View
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" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>beforeRunningCommand</key>
@@ -7,7 +7,7 @@
<key>command</key>
<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+):/
Please sign in to comment.
Something went wrong with that request. Please try again.