[DRE-commits] [ruby-neovim] 02/03: New patches:

Jason Pleau jpleau-guest at moszumanska.debian.org
Thu Jul 20 23:50:49 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 bce70541a6f8a6839c335e6775e9e18140bb5532
Author: Jason Pleau <jason at jpleau.ca>
Date:   Thu Jul 20 19:45:25 2017 -0400

    New patches:
    
     * disable_documentation_version_test.patch
     * disable_shada.patch
---
 debian/changelog                                   |  2 +
 .../disable_documentation_version_test.patch       | 51 ++++++++++++++++++++++
 debian/patches/disable_shada.patch                 | 16 +++++++
 debian/patches/series                              |  2 +
 4 files changed, 71 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 06de19a..3b6313e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,8 @@ ruby-neovim (0.5.1-1) UNRELEASED; urgency=medium
     - fix_current_window_test.patch
   * New patches:
     - require_tempfile.patch (applied in upstream VCS)
+    - disable_documentation_version_test.patch
+    - disable_shada.patch
 
  -- Jason Pleau <jason at jpleau.ca>  Sat, 15 Jul 2017 10:40:43 -0400
 
diff --git a/debian/patches/disable_documentation_version_test.patch b/debian/patches/disable_documentation_version_test.patch
new file mode 100644
index 0000000..ce0f905
--- /dev/null
+++ b/debian/patches/disable_documentation_version_test.patch
@@ -0,0 +1,51 @@
+Description: Disable the documentation version test
+ This tests fetches the latest neovim version from github, thus requiring
+ network access. This test is also unreliable during a Debian's stable 
+ release cycle (new neovim version would break it)
+Author: Jason Pleau <jason at jpleau.ca>
+
+--- a/spec/integration_spec.rb
++++ b/spec/integration_spec.rb
+@@ -72,24 +72,24 @@
+     end
+   end
+ 
+-  specify "neovim-ruby has up-to-date generated method docs" do
+-    begin
+-      url = "https://api.github.com/repos/neovim/neovim/releases/latest"
+-      response = open(url) { |json| JSON.load(json) }
+-
+-      client_file = File.read(
+-        File.expand_path("../../lib/neovim/client.rb", __FILE__)
+-      )
+-      docs_version = client_file[
+-        /The methods documented here were generated using (.+)$/,
+-        1
+-      ]
+-
+-      expect(docs_version).to eq(response["name"])
+-    rescue SocketError, OpenURI::HTTPError => e
+-      skip "Skipping: #{e}"
+-    end
+-  end
++#  specify "neovim-ruby has up-to-date generated method docs" do
++#    begin
++#      url = "https://api.github.com/repos/neovim/neovim/releases/latest"
++#      response = open(url) { |json| JSON.load(json) }
++#
++#      client_file = File.read(
++#        File.expand_path("../../lib/neovim/client.rb", __FILE__)
++#      )
++#      docs_version = client_file[
++#        /The methods documented here were generated using (.+)$/,
++#        1
++#      ]
++#
++#      expect(docs_version).to eq(response["name"])
++#    rescue SocketError, OpenURI::HTTPError => e
++#      skip "Skipping: #{e}"
++#    end
++#  end
+ 
+   def run_nvim(env, *opts)
+     system(env, Neovim.executable.path, "--headless", "-n", "-i", "NONE", "-u", init, *opts)
diff --git a/debian/patches/disable_shada.patch b/debian/patches/disable_shada.patch
new file mode 100644
index 0000000..44a0466
--- /dev/null
+++ b/debian/patches/disable_shada.patch
@@ -0,0 +1,16 @@
+Description: Disable ShaDa when running tests
+ neovim's ShaDa wants to write in the user's homedir, however building in
+ sbuild there is no "user homedir". Disabling shada fixes this.
+Author: Jason Pleau <jason at jpleau.ca>
+
+--- a/spec/integration_spec.rb
++++ b/spec/integration_spec.rb
+@@ -92,7 +92,7 @@
+   end
+ 
+   def run_nvim(env, *opts)
+-    system(env, Neovim.executable.path, "--headless", "-n", "-u", init, *opts)
++    system(env, Neovim.executable.path, "--headless", "-n", "-i", "NONE", "-u", init, *opts)
+   end
+ 
+   def run_rspec(*args)
diff --git a/debian/patches/series b/debian/patches/series
index ed1b02d..10c0a03 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,4 @@
+disable_shada.patch
+disable_documentation_version_test.patch
 require_tempfile.patch
 remove_coveralls_pry_bundler.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