Skip to content

Commit

Permalink
fixup! Fix CI
Browse files Browse the repository at this point in the history
attempt to fix windows not loading wrapper script
  • Loading branch information
alexgenco committed May 26, 2024
1 parent d0601cd commit e668d82
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions script/host_wrapper.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

cd "$(dirname "$0")/.."

exec ruby -I ./lib ./exe/neovim-ruby-host "$@"
7 changes: 6 additions & 1 deletion spec/acceptance/runtime/init.vim
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
let s:lib_path = getcwd() . "/lib"
let s:exe_path = getcwd() . "/exe/neovim-ruby-host"
let g:acceptance_rtp = getcwd() . "/spec/acceptance/runtime"
let g:ruby_host_prog = getcwd() . "/script/host_wrapper.sh"

if has("win32") || has("win64")
let g:ruby_host_prog = getcwd() . "/script/host_wrapper.bat"
else
let g:ruby_host_prog = getcwd() . "/script/host_wrapper.sh"
endif

ruby require "rspec/expectations"
ruby include ::RSpec::Matchers.dup
Expand Down

0 comments on commit e668d82

Please sign in to comment.