[DRE-commits] [gem2deb] 01/01: gem2deb-test-runner: include `Gem.path` in GEM_PATH

Antonio Terceiro terceiro at moszumanska.debian.org
Sat Jun 13 01:36:56 UTC 2015


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

terceiro pushed a commit to branch master
in repository gem2deb.

commit 6604f41a27ab8b6861e66b1d320b2bc61971466c
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Fri Jun 12 22:36:48 2015 -0300

    gem2deb-test-runner: include `Gem.path` in GEM_PATH
    
    So that dependency checking works against the system-installed gemspecs.
---
 debian/changelog           | 7 +++++++
 lib/gem2deb/test_runner.rb | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 05ad588..3ee14ee 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+gem2deb (0.19) UNRELEASED; urgency=medium
+
+  * gem2deb-test-runner: include `Gem.path` in GEM_PATH so that dependency
+    checking works against the system-installed gemspecs.
+
+ -- Antonio Terceiro <terceiro at debian.org>  Fri, 12 Jun 2015 22:35:37 -0300
+
 gem2deb (0.18) unstable; urgency=medium
 
   * make dh-make-ruby resilient against a corrupt "gem name to package name"
diff --git a/lib/gem2deb/test_runner.rb b/lib/gem2deb/test_runner.rb
index c6ab89d..c237d3f 100644
--- a/lib/gem2deb/test_runner.rb
+++ b/lib/gem2deb/test_runner.rb
@@ -56,7 +56,7 @@ module Gem2Deb
       if self.autopkgtest
         ''
       else
-        Dir.glob('debian/*/usr/share/rubygems-integration/*').join(':')
+        (Gem.path + Dir.glob('debian/*/usr/share/rubygems-integration/*')).join(':')
       end
     end
 

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



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