ruby: old versions don't know gem list -e

This commit is contained in:
Marco Hinz 2017-01-08 00:44:48 +01:00
parent d2f16d534f
commit ca7a5c0ce7
No known key found for this signature in database
GPG Key ID: 1C980A1B657B4A4F

View File

@ -422,7 +422,7 @@ function! s:check_ruby() abort
endif
call health#report_info('Host: '. host)
let latest_gem_cmd = 'gem list -rae neovim'
let latest_gem_cmd = 'gem list -ra ^neovim$'
let latest_gem = s:system(split(latest_gem_cmd))
if s:shell_error || empty(latest_gem)
call health#report_error('Failed to run: '. latest_gem_cmd,