[DRE-commits] [ruby-github-markdown] 09/09: no LOADPATH trick in tests

Cédric Boutillier boutil at moszumanska.debian.org
Mon Apr 27 10:02:17 UTC 2015


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

boutil pushed a commit to branch master
in repository ruby-github-markdown.

commit c81de27949cfed96c8e604fcbad36098dad6f703
Author: Cédric Boutillier <boutil at debian.org>
Date:   Mon Apr 27 11:57:21 2015 +0200

    no LOADPATH trick in tests
---
 debian/patches/no_loadpath_trick_in_tests.patch | 15 +++++++++++++++
 debian/patches/series                           |  1 +
 2 files changed, 16 insertions(+)

diff --git a/debian/patches/no_loadpath_trick_in_tests.patch b/debian/patches/no_loadpath_trick_in_tests.patch
new file mode 100644
index 0000000..ef22d9f
--- /dev/null
+++ b/debian/patches/no_loadpath_trick_in_tests.patch
@@ -0,0 +1,15 @@
+Description: don't play with the LOAD_PATH variable
+ let the interpreter find the github/markdown library by itself
+ using system paths.
+Author: Cédric Boutillier
+Last-Update: 2015-04-27
+Forwarded: not-needed
+--- a/test/gfm_test.rb
++++ b/test/gfm_test.rb
+@@ -1,6 +1,4 @@
+ # coding: UTF-8
+-rootdir = File.dirname(File.dirname(__FILE__))
+-$LOAD_PATH.unshift "#{rootdir}/lib"
+ 
+ if defined? Encoding
+   Encoding.default_internal = 'UTF-8'
diff --git a/debian/patches/series b/debian/patches/series
index 3f67889..94e8701 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 no_loadpath_trick_in_bin.patch
+no_loadpath_trick_in_tests.patch

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



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