[DRE-commits] [ruby-tilt] 05/07: had to add debian/patches/new-test-unit-compatibility.patch temporarily

Antonio Terceiro terceiro at moszumanska.debian.org
Sun Feb 23 15:40:35 UTC 2014


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

terceiro pushed a commit to branch master
in repository ruby-tilt.

commit 9a4693e823f0489badcfe6582c5f5cdba46dcdd6
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Sun Feb 23 12:33:08 2014 -0300

    had to add debian/patches/new-test-unit-compatibility.patch temporarily
---
 debian/changelog                                 |  1 +
 debian/patches/new-test-unit-compatibility.patch | 24 ++++++++++++++++++++++++
 debian/patches/series                            |  1 +
 3 files changed, 26 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 66b8d5d..8028b02 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ ruby-tilt (2.0.0+really1.4.1-1) UNRELEASED; urgency=medium
   * Revert to previous upstream release due to breakage of reverse
     dependencies (Closes: #738488).
   * switch build-dependency from ruby-minitest to ruby-test-unit
+    - had to add debian/patches/new-test-unit-compatibility.patch temporarily
 
  -- Antonio Terceiro <terceiro at debian.org>  Sun, 23 Feb 2014 12:07:21 -0300
 
diff --git a/debian/patches/new-test-unit-compatibility.patch b/debian/patches/new-test-unit-compatibility.patch
new file mode 100644
index 0000000..9fc15f8
--- /dev/null
+++ b/debian/patches/new-test-unit-compatibility.patch
@@ -0,0 +1,24 @@
+Description: compatibility with latest test-unit
+ This patch will not be needed after this upstream version since upstream have
+ moved to minitest.
+Author: Antonio Terceiro <terceiro at debian.org>
+Origin: vendor
+Forwarded: not-needed
+
+--- ruby-tilt-2.0.0+really1.4.1.orig/test/contest.rb
++++ ruby-tilt-2.0.0+really1.4.1/test/contest.rb
+@@ -46,6 +46,14 @@ class Test::Unit::TestCase
+     alias_method :describe, :context
+   end
+ 
++  def assert_not_match(v1, v2, *anything_else)
++    if v1.is_a?(String)
++      super(Regexp.new(Regexp.escape(v1)), v2, *anything_else)
++    else
++      super
++    end
++  end
++
+ private
+ 
+   def self.context_name(name)
diff --git a/debian/patches/series b/debian/patches/series
index 711e9ab..0446da4 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 force_encoding_erb_test
+new-test-unit-compatibility.patch

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



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