[DRE-commits] [ruby-text] 01/03: Use rake to test.

Guillaume Bouteille duffman-guest at alioth.debian.org
Sat Aug 17 14:56:49 UTC 2013


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

duffman-guest pushed a commit to branch master
in repository ruby-text.

commit 532c2585e829e8f7a5a08693960ce51f246b4068
Author: Guillaume Bouteille <duffman at gb2n.org>
Date:   Fri Aug 16 21:48:19 2013 +0200

    Use rake to test.
---
 debian/control       |    2 +-
 debian/ruby-tests.rb |   15 +++++----------
 2 files changed, 6 insertions(+), 11 deletions(-)

diff --git a/debian/control b/debian/control
index 84a40ad..f87d3b4 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: ruby
 Priority: optional
 Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
 Uploaders: Olivier Sallou <olivier.sallou at irisa.fr>, Cédric Boutillier <cedric.boutillier at gmail.com>
-Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.2.10~)
+Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.2.10~), rake
 Standards-Version: 3.9.3
 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-text.git
 Vcs-Browser: http://anonscm.debian.org/gitweb?p=pkg-ruby-extras/ruby-text.git;a=summary
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
index f658ed2..f8c48f9 100644
--- a/debian/ruby-tests.rb
+++ b/debian/ruby-tests.rb
@@ -1,10 +1,5 @@
-$: << 'lib' << '.'
-
-require 'rbconfig'
-ruby = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'])
-
-system("#{ruby} -I. test/test_double_metaphone.rb") or raise
-system("#{ruby} -I. test/test_levenshtein.rb") or raise
-system("#{ruby} -I. test/test_metaphone.rb") or raise
-system("#{ruby} -I. test/test_porter_stemming.rb") or raise
-system("#{ruby} -I. test/test_soundex.rb") or raise
+require 'rake'
+app = Rake.application
+app.init
+app.load_rakefile
+app['test'].invoke

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



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