[DRE-commits] [SCM] rake.git branch, master, updated. debian/0.9.2-1-20-ge7bdb9f

Antonio Terceiro terceiro at debian.org
Sat Nov 19 21:55:52 UTC 2011


The following commit has been merged in the master branch:
commit c9964c04d4b0699b4ccab292efcd6c1a16b6a306
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Sat Nov 19 17:53:20 2011 -0200

    Run tests as upstream README tells us to
    
    But skip 1.8 for now

diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
index 4bcf1c3..0c1b41c 100644
--- a/debian/ruby-tests.rb
+++ b/debian/ruby-tests.rb
@@ -1,3 +1,7 @@
-Dir.glob('test/test_*.rb').each do |f|
-  require f
+if RUBY_VERSION < '1.9'
+  puts "Not running tests for Ruby < 1.9"
+  exit
 end
+require 'rbconfig'
+ruby = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'])
+exec("#{ruby} ./bin/rake")

-- 
rake.git



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