Files
neovim/runtime
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
..
2017-04-29 01:51:56 +02:00
2017-11-07 01:16:42 +01:00
2017-11-07 23:07:03 +01:00
2017-05-01 12:30:54 +02:00
2017-11-07 01:16:42 +01:00
2017-11-07 20:03:24 +01:00
2014-12-19 15:28:49 -05:00
2018-01-15 23:58:52 +01:00
2016-04-16 23:06:24 -07:00
2017-11-06 05:26:16 +01:00
2017-01-31 02:02:09 +01:00
2017-01-31 02:02:09 +01:00
2014-07-29 02:12:31 +00:00
2018-04-02 23:59:49 +02:00
2017-11-07 23:07:03 +01:00