[DRE-commits] [ruby-simplecov-html] 02/12: avoid messing with $LOAD_PATH

Antonio Terceiro terceiro at moszumanska.debian.org
Thu Oct 22 20:27:22 UTC 2015


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

terceiro pushed a commit to branch master
in repository ruby-simplecov-html.

commit 7cfea123d09e7a2c202c2ab8f5d93a514bd4f641
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Thu Oct 22 17:22:01 2015 -0200

    avoid messing with $LOAD_PATH
    
    Fixes getting test coverage on projects that are also installed locally as Debian packages.
---
 debian/changelog                          | 3 +++
 debian/patches/dont-touch-load-path.patch | 8 ++++++++
 debian/patches/series                     | 1 +
 3 files changed, 12 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 2c24086..81fb2e1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,9 @@ ruby-simplecov-html (0.10.0-1) UNRELEASED; urgency=medium
   * Refresh patches
   * Update packaging with a new dh-make-ruby run
     - ignoring test suite since it's not useful
+  * debian/patches/dont-touch-load-path.patch: avoid messing with $LOAD_PATH.
+    Fixes getting test coverage on projects that are also installed locally as
+    Debian packages.
 
  -- Antonio Terceiro <terceiro at debian.org>  Tue, 15 Sep 2015 11:31:05 -0300
 
diff --git a/debian/patches/dont-touch-load-path.patch b/debian/patches/dont-touch-load-path.patch
new file mode 100644
index 0000000..87857a1
--- /dev/null
+++ b/debian/patches/dont-touch-load-path.patch
@@ -0,0 +1,8 @@
+--- a/lib/simplecov-html.rb
++++ b/lib/simplecov-html.rb
+@@ -106,5 +106,4 @@ module SimpleCov
+   end
+ end
+ 
+-$LOAD_PATH.unshift(File.join(File.dirname(__FILE__)))
+ require "simplecov-html/version"
diff --git a/debian/patches/series b/debian/patches/series
index b7d630e..f3bdab9 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 remove-rubygems-bundler.patch
 fix-paths.patch
+dont-touch-load-path.patch

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



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