[DRE-commits] [SCM] ruby-gherkin.git branch, master, updated. debian/2.4.6-1-11-g7fd0c38

Cédric Boutillier cedric.boutillier at gmail.com
Wed Jun 20 17:09:48 UTC 2012


The following commit has been merged in the master branch:
commit 73959fbf4d8b42e1a45bc4fe11be0882f73fd10c
Author: Cédric Boutillier <cedric.boutillier at gmail.com>
Date:   Wed Jun 20 19:00:56 2012 +0200

    Use ruby-tests.rake to run the tests. Build-depends on rake

diff --git a/debian/control b/debian/control
index 167999e..6cec259 100644
--- a/debian/control
+++ b/debian/control
@@ -4,7 +4,7 @@ Priority: optional
 Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
 Uploaders: Antonio Terceiro <terceiro at debian.org>, Cédric Boutillier <cedric.boutillier at gmail.com>
 DM-Upload-Allowed: yes
-Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.2.6~), ruby-rspec, ruby-json
+Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.2.6~), ruby-rspec, ruby-json, rake
 Standards-Version: 3.9.3
 Vcs-Git: git://git.debian.org/pkg-ruby-extras/ruby-gherkin.git
 Vcs-Browser: http://git.debian.org/?p=pkg-ruby-extras/ruby-gherkin.git;a=summary
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..39fa5be
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,11 @@
+require 'rspec/core/rake_task'
+
+if RUBY_VERSION =~ /1.9/
+  Encoding.default_external = 'UTF-8'
+end
+
+RSpec::Core::RakeTask.new(:spec) do |spec|
+  spec.pattern      = './spec/**/*_spec.rb'
+end
+
+task :default => :spec
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
deleted file mode 100644
index 8531fa4..0000000
--- a/debian/ruby-tests.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-if RUBY_VERSION =~ /1.9/
-  Encoding.default_external = 'UTF-8'
-end
-$: << 'spec'
-Dir.glob('spec/**/*_spec.rb').each do |f|
-  require f
-end

-- 
ruby-gherkin.git



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