[DRE-commits] [ruby-gon] 07/10: re add remove_lib_from_loadpath_for_spec.patch

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Tue Nov 18 20:07:32 UTC 2014


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

praveen pushed a commit to branch master
in repository ruby-gon.

commit 3f9c950ccbf0c858570fbccd14735983ad1455c3
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Wed Nov 19 01:31:24 2014 +0530

    re add remove_lib_from_loadpath_for_spec.patch
---
 .../patches/remove_lib_from_loadpath_for_spec.patch   | 19 +++++++++++++++++++
 debian/patches/series                                 |  1 +
 2 files changed, 20 insertions(+)

diff --git a/debian/patches/remove_lib_from_loadpath_for_spec.patch b/debian/patches/remove_lib_from_loadpath_for_spec.patch
new file mode 100644
index 0000000..8b166a5
--- /dev/null
+++ b/debian/patches/remove_lib_from_loadpath_for_spec.patch
@@ -0,0 +1,19 @@
+Description: remove lib/ from $LOAD_PATH for specs
+ Since the files are patched to change some paths, we must use the installed library
+ in debian/ruby-gon
+Author: Cédric Boutillier <boutil at debian.org>
+Origin: vendor
+Forwarded: not-needed
+Last-Update: 2014-11-19
+
+Index: ruby-gon/spec/spec_helper.rb
+===================================================================
+--- ruby-gon.orig/spec/spec_helper.rb
++++ ruby-gon/spec/spec_helper.rb
+@@ -1,3 +1,6 @@
++# remove lib/ from loadpath, added by rspec
++$:.delete(File.expand_path("../../lib",__FILE__))
++
+ require 'gon'
+ 
+ # We don't require rails for specs, but jbuilder works only in rails.
diff --git a/debian/patches/series b/debian/patches/series
index 596c8d6..a8c3159 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
+remove_lib_from_loadpath_for_spec.patch
 change_watch_js_location.patch
 fix-json-scaping-on-tests-strings

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



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