neovim/runtime/autoload/provider
Marco Hinz d581398779 ruby: detect rbenv shims for other versions (#8733)
When rbenv is used for managing Ruby installations, just checking for an
executable called "neovim-ruby-host" is not enough. It has to be run as well.

If it does not return 0, then neovim-ruby-host is merely a shim for another Ruby
installation.

  $ rbenv versions
    2.5.0
  * 2.5.1 (set by /Users/mhi/.rbenv/version)

  $ rbenv whence neovim-ruby-host
  2.5.0

  $ which neovim-ruby-host
  /Users/mhi/.rbenv/shims/neovim-ruby-host

  $ neovim-ruby-host
  rbenv: neovim-ruby-host: command not found

  The `neovim-ruby-host' command exists in these Ruby versions:
    2.5.0

  $ echo $?
  127

Additionally, the detection logic was moved from provider#ruby#Detect() to
s:detect(), because the former is run in the sandbox which forbids calling
system().
2018-08-09 00:47:35 +02:00
..
clipboard.vim macOS: Use pbpaste to detect a working clipboard (#7983) 2018-02-08 00:27:54 +01:00
node.vim provider/node: npm --loglevel silent (#8682) 2018-07-04 12:13:36 +02:00
python3.vim provider/nodejs: check version in Detect() 2017-12-17 16:09:18 +01:00
python.vim provider/nodejs: check version in Detect() 2017-12-17 16:09:18 +01:00
pythonx.vim Add provider#Poll() to handle starting and polling the provider 2018-02-16 14:08:12 -05:00
ruby.vim ruby: detect rbenv shims for other versions (#8733) 2018-08-09 00:47:35 +02:00
script_host.rb Make script_host.rb rubocop-clean 2017-05-03 22:24:51 +02:00