From 0f5363f6d28499afd4be93192c4cfc43fcf60139 Mon Sep 17 00:00:00 2001 From: MasterLambaster Date: Mon, 29 Jul 2013 23:38:16 +0300 Subject: [PATCH] Ruby header file detection should work with all ruby versions * Config module generates warning in ruby >= 1.9 that generates error * Ruby >= 1.9 have different header file config name --- autoload/syntastic/c.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/syntastic/c.vim b/autoload/syntastic/c.vim index aac6fc38..fb8e2198 100644 --- a/autoload/syntastic/c.vim +++ b/autoload/syntastic/c.vim @@ -199,7 +199,7 @@ function! syntastic#c#CheckRuby() if executable('ruby') if !exists('s:ruby_flags') let s:ruby_flags = system('ruby -r rbconfig -e ' - \ . '''puts Config::CONFIG["archdir"]''') + \ . '''puts RbConfig::CONFIG["rubyhdrdir"] || RbConfig::CONFIG["archdir"]''') let s:ruby_flags = substitute(s:ruby_flags, "\n", '', '') let s:ruby_flags = ' -I' . s:ruby_flags endif