Skip to content

Commit

Permalink
Use --disable-rubygems when not relying on Gem.path
Browse files Browse the repository at this point in the history
References: #38
References: #47
  • Loading branch information
tpope committed Apr 27, 2022
1 parent 6cd5302 commit f9217d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/bundler.vim
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ function! s:project_paths(...) dict abort

let abi_version = empty(gem_paths) ? '' : remove(gem_paths, 0)
else
let abi_version = system(prefix.'ruby -rrbconfig -e '.s:shellesc('print RbConfig::CONFIG["ruby_version"]'))
let abi_version = system(prefix.'ruby -rrbconfig --disable-rubygems -e '.s:shellesc('print RbConfig::CONFIG["ruby_version"]'))
endif

exe chdir fnameescape(cwd)
Expand Down

0 comments on commit f9217d7

Please sign in to comment.