[DRE-commits] [ruby-ftw] 02/02: Update to upstream version 0.0.44 and enable unit tests

Tim Potter tpot-guest at moszumanska.debian.org
Tue Jul 21 01:39:23 UTC 2015


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

tpot-guest pushed a commit to branch master
in repository ruby-ftw.

commit daba59dceb09f5c3cd2777efff67aad9a7a2180c
Author: Tim Potter <tpot at hp.com>
Date:   Tue Jul 21 11:38:36 2015 +1000

    Update to upstream version 0.0.44 and enable unit tests
---
 debian/changelog                            |  4 ++--
 debian/control                              |  2 +-
 debian/patches/0001-disable-doc-tests.patch | 20 ++++++++++++++++++++
 debian/patches/series                       |  1 +
 debian/ruby-test-files.yaml                 |  2 --
 debian/ruby-tests.rb                        | 15 ++-------------
 test/all.rb                                 |  1 -
 7 files changed, 26 insertions(+), 19 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index c13c095..7b025c2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,5 @@
-ruby-ftw (0.0.39-1) unstable; urgency=medium
+ruby-ftw (0.0.44-1) unstable; urgency=medium
 
   * Initial release (Closes: #757074)
 
- -- Tim Potter <tpot at hp.com>  Tue, 14 Oct 2014 15:55:14 +1100
+ -- Tim Potter <tpot at hp.com>  Tue, 21 Jul 2015 11:06:14 +1100
diff --git a/debian/control b/debian/control
index f4c038d..e663bde 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: Tim Potter <tpot at hp.com>
-Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.7.5~), ruby-simplecov, yard, ruby-minitest
+Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.7.5~), ruby-simplecov, yard, ruby-minitest, ruby-cabin
 Standards-Version: 3.9.6
 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-ftw.git
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/ruby-ftw.git;a=summary
diff --git a/debian/patches/0001-disable-doc-tests.patch b/debian/patches/0001-disable-doc-tests.patch
new file mode 100644
index 0000000..496d5f4
--- /dev/null
+++ b/debian/patches/0001-disable-doc-tests.patch
@@ -0,0 +1,20 @@
+Description: Disable documentation tests
+ Don't run the documentation tests for this module as there are
+ a handfull of methods and constants that don't have docstrings,
+ but this does not affect the operation of the module in any way.
+Author: Tim Potter <tpot at hp.com>
+Last-Update: 2015-07-21
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: ruby-ftw/test/all.rb
+===================================================================
+--- ruby-ftw.orig/test/all.rb
++++ ruby-ftw/test/all.rb
+@@ -15,7 +15,6 @@ def use(path)
+ end
+ 
+ dirname = File.dirname(__FILE__)
+-use File.join(dirname, "docs.rb")
+ 
+ # Load tests from ./*/**/*.rb (usually ./libraryname/....)
+ glob = File.join(dirname, "*", "**", "*.rb")
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..f960157
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-disable-doc-tests.patch
diff --git a/debian/ruby-test-files.yaml b/debian/ruby-test-files.yaml
deleted file mode 100644
index eb1ba70..0000000
--- a/debian/ruby-test-files.yaml
+++ /dev/null
@@ -1,2 +0,0 @@
----
-- test/all.rb
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
index eac5ce6..32eeb9c 100644
--- a/debian/ruby-tests.rb
+++ b/debian/ruby-tests.rb
@@ -1,13 +1,2 @@
-# FIXME
-# there's a spec/ or a test/ directory in the upstream source, but
-# no test suite was defined in the Gem specification. It would be
-# a good idea to define it here so the package gets tested at build time.
-# Examples:
-# $: << 'lib' << '.'
-# Dir['{spec,test}/**/*.rb'].each { |f| require f }
-#
-# require 'test/ts_foo.rb'
-#
-# require 'rbconfig'
-# ruby = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'])
-# exec("#{ruby} -I. test/runtests.rb")
+$: << 'lib' << '.'
+require 'test/all.rb'
diff --git a/test/all.rb b/test/all.rb
index 9a7e702..ed3a005 100644
--- a/test/all.rb
+++ b/test/all.rb
@@ -15,7 +15,6 @@ def use(path)
 end
 
 dirname = File.dirname(__FILE__)
-use File.join(dirname, "docs.rb")
 
 # Load tests from ./*/**/*.rb (usually ./libraryname/....)
 glob = File.join(dirname, "*", "**", "*.rb")

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



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