Navigation Menu

Skip to content

Commit

Permalink
Check if bundle is ready before Gemfile.lock.tags
Browse files Browse the repository at this point in the history
  • Loading branch information
szw committed Feb 12, 2015
1 parent 2326af6 commit d04a150
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions plugin/tags.vim
Expand Up @@ -284,12 +284,17 @@ fun! s:generate_tags(bang, redraw)

call s:add_tags_location(gems_path)

if gems_time > -1
if (gems_time < gemfile_time) || (getfsize(gems_path) == 0)
" check if bundle is working fine
silent! exe '!bundle check'

if !v:shell_error
if gems_time > -1
if (gems_time < gemfile_time) || (getfsize(gems_path) == 0)
call s:execute_async_command(gems_command)
endif
else
call s:execute_async_command(gems_command)
endif
else
call s:execute_async_command(gems_command)
endif
endif

Expand Down

0 comments on commit d04a150

Please sign in to comment.