[DRE-commits] [gem2deb] 01/02: test runner: call `rubyX.Y -S rake` instead of `rakeX.Y`

Antonio Terceiro terceiro at moszumanska.debian.org
Fri Jan 8 17:27:31 UTC 2016


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

terceiro pushed a commit to branch master
in repository gem2deb.

commit 64b5ec7dfb2d0e592a7aabbaef22b58894d0e8a5
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Tue Dec 15 21:34:03 2015 -0200

    test runner: call `rubyX.Y -S rake` instead of `rakeX.Y`
    
    Ruby 2.3 does not ship a rake2.3 anymore.
---
 debian/changelog           | 2 ++
 lib/gem2deb/test_runner.rb | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 4399cb6..29fb17d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ gem2deb (0.24) UNRELEASED; urgency=medium
 
   * gem installer: avoid installing the debian/ directory when upstream
     metadata specifies the packages files as '**/*'
+  * test runner: call `rubyX.Y -S rake` instead of `rakeX.Y`. Ruby 2.3 does
+    not ship a rake2.3 anymore.
 
  -- Antonio Terceiro <terceiro at debian.org>  Fri, 20 Nov 2015 19:28:16 -0200
 
diff --git a/lib/gem2deb/test_runner.rb b/lib/gem2deb/test_runner.rb
index 9af2498..b576528 100644
--- a/lib/gem2deb/test_runner.rb
+++ b/lib/gem2deb/test_runner.rb
@@ -103,7 +103,7 @@ module Gem2Deb
     end
 
     def run_rake(*args)
-      run(rubyver.sub('ruby', 'rake'), *args)
+      run(rubyver, '-S', 'rake', *args)
     end
 
     def run(program, *args)

-- 
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