Skip to content

Commit

Permalink
provider: fix batchfile extension for ruby gem (neovim#7651)
Browse files Browse the repository at this point in the history
ruby uses batchfiles with 'cmd' extension.
gem creates batchfiles with 'bat' extension.
`gem install rails` does the following in Windows (not Cygwin):

1. Run `gem.cmd install rails` on cmd.exe
2. gem.cmd runs `ruby.exe -x gem install rails`
3. `rails` gem is installed.
   `rails.bat` is created in the same directory
   where ruby.exe and gem.cmd reside.
  • Loading branch information
janlazo authored and justinmk committed Nov 29, 2017
1 parent 27a4fc4 commit 2d732a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/autoload/provider/ruby.vim
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function! provider#ruby#Detect() abort
if exists("g:ruby_host_prog")
return g:ruby_host_prog
else
return has('win32') ? exepath('neovim-ruby-host.cmd') : exepath('neovim-ruby-host')
return has('win32') ? exepath('neovim-ruby-host.bat') : exepath('neovim-ruby-host')
end
endfunction

Expand Down

0 comments on commit 2d732a1

Please sign in to comment.