[DRE-commits] [ruby-neovim] 01/03: new patch: neovim_ruby_host_path.patch

Jason Pleau jpleau-guest at moszumanska.debian.org
Sat Oct 14 00:03:55 UTC 2017


This is an automated email from the git hooks/post-receive script.

jpleau-guest pushed a commit to branch master
in repository ruby-neovim.

commit 19a36f7d1d072b34f181feeb673ff5b0e2efee30
Author: Jason Pleau <jason at jpleau.ca>
Date:   Sun Oct 8 14:35:35 2017 -0400

    new patch:  neovim_ruby_host_path.patch
---
 debian/changelog                           |  1 +
 debian/patches/neovim_ruby_host_path.patch | 30 ++++++++++++++++++++++++++++++
 debian/patches/series                      |  1 +
 3 files changed, 32 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 3b6313e..a58fd5c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,7 @@ ruby-neovim (0.5.1-1) UNRELEASED; urgency=medium
     - require_tempfile.patch (applied in upstream VCS)
     - disable_documentation_version_test.patch
     - disable_shada.patch
+    - neovim_ruby_host_path.patch
 
  -- Jason Pleau <jason at jpleau.ca>  Sat, 15 Jul 2017 10:40:43 -0400
 
diff --git a/debian/patches/neovim_ruby_host_path.patch b/debian/patches/neovim_ruby_host_path.patch
new file mode 100644
index 0000000..2724053
--- /dev/null
+++ b/debian/patches/neovim_ruby_host_path.patch
@@ -0,0 +1,30 @@
+From 006daee2bf79602db1173c7be5d7a79354daab00 Mon Sep 17 00:00:00 2001
+From: Jason Pleau <jason at jpleau.ca>
+Date: Wed, 26 Jul 2017 12:12:04 -0400
+Subject: [PATCH] set neovim-ruby-host path in runtime/init.vim
+
+For the integration tests to work, neovim must be able to find
+'neovim-ruby-host'. This is fine in most cases, but when one wants to
+try and run tests without actually installing the gem, neovim cannot
+find the executable.
+
+Setting g:ruby_host_prog fixes this.
+---
+ spec/integration/runtime/init.vim | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/spec/integration/runtime/init.vim b/spec/integration/runtime/init.vim
+index a0c03c1..93335f3 100644
+--- a/spec/integration/runtime/init.vim
++++ b/spec/integration/runtime/init.vim
+@@ -1,3 +1,7 @@
++let s:lib_path = getcwd() . "/../../lib/"
++let s:bin_path = getcwd() . "/../../bin/neovim-ruby-host"
++let g:ruby_host_prog = printf("ruby -I %s %s", s:lib_path, s:bin_path)
++
+ set rtp=./runtime,./runtime/vader.vim,$VIMRUNTIME
+ 
+ ruby require "rspec"
+-- 
+2.13.3
+
diff --git a/debian/patches/series b/debian/patches/series
index 10c0a03..e5bbecf 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
+neovim_ruby_host_path.patch
 disable_shada.patch
 disable_documentation_version_test.patch
 require_tempfile.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-neovim.git



More information about the Pkg-ruby-extras-commits mailing list