Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Commands/Validate and Save.tmCommand
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

require ENV['TM_SUPPORT_PATH'] + '/lib/textmate'

exit if STDIN.readline =~ /\A#\W?no-?verify/i

compiler_ruby = `which rbx`.strip
if compiler_ruby.length == 0
compiler_ruby = ENV['TM_RUBY'] || `which ruby`.strip
Expand All @@ -27,6 +29,7 @@ if scopes.include? 'source.ruby.rspec.cucumber.steps'
end

if result =~ /:(\d+):/
puts `#{compiler_ruby} -v`
print result
TextMate.go_to :line => $1
end
Expand Down