[DRE-commits] [gem2deb] 01/01: gem2deb-test-runner: restrict GEM_PATH to current Ruby version

Antonio Terceiro terceiro at moszumanska.debian.org
Tue Jul 21 02:14:19 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 16e77d8822a552169fd61bcbac8478708b15f534
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Mon Jul 20 23:13:20 2015 -0300

    gem2deb-test-runner: restrict GEM_PATH to current Ruby version
---
 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 59383ea..0ad92c5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+gem2deb (0.20) UNRELEASED; urgency=medium
+
+  * gem2deb-test-runner: when checking dependencies, don't add
+    rubygems-integration paths from different Ruby versions to GEM_PATH.
+
+ -- Antonio Terceiro <terceiro at debian.org>  Mon, 20 Jul 2015 23:12:27 -0300
+
 gem2deb (0.19) unstable; urgency=medium
 
   * gem2deb: download .gem files in a temporary directory
diff --git a/lib/gem2deb/test_runner.rb b/lib/gem2deb/test_runner.rb
index 250664b..454d3a1 100644
--- a/lib/gem2deb/test_runner.rb
+++ b/lib/gem2deb/test_runner.rb
@@ -57,7 +57,7 @@ module Gem2Deb
         { }
       else
         {
-          'GEM_PATH' => (Gem.path + Dir.glob('debian/*/usr/share/rubygems-integration/*')).join(':')
+          'GEM_PATH' => (Gem.path + Dir.glob("debian/*/usr/share/rubygems-integration/#{rubyver}")).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