make sure we dont load rubygems when syntax checking [e]ruby

This commit is contained in:
marty 2009-09-13 18:32:55 +12:00
parent 564496ed5a
commit f3fdaccc38
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ if !executable("ruby") || !executable("cat")
endif
function! SyntaxCheckers_eruby_GetLocList()
let makeprg='cat '. expand("%") . ' \| ruby -e "require \"erb\"; puts ERB.new(ARGF.read, nil, \"-\").src" \| ruby -c'
let makeprg='RUBYOPT= cat '. expand("%") . ' \| ruby -e "require \"erb\"; puts ERB.new(ARGF.read, nil, \"-\").src" \| ruby -c'
let errorformat='%-GSyntax OK,%E-:%l: syntax error\, %m,%Z%p^,%W-:%l: warning: %m,%Z%p^,%-C%.%#'
let loclist = SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })

View File

@ -20,7 +20,7 @@ if !executable("ruby")
endif
function! SyntaxCheckers_ruby_GetLocList()
let makeprg = 'ruby -w -c %'
let makeprg = 'RUBYOPT= ruby -w -c %'
let errorformat = '%-GSyntax OK,%E%f:%l: syntax error\, %m,%Z%p^,%W%f:%l: warning: %m,%Z%p^,%-C%.%#'
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })