[DRE-commits] [ruby-columnize] 06/07: added patch to fix require for autopkg tests

Jonas Genannt jonas at brachium-system.net
Fri Oct 10 14:40:28 UTC 2014


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

hggh-guest pushed a commit to branch master
in repository ruby-columnize.

commit 09ba328a849b3a38691b1fb23d609f8efa0c87ad
Author: Jonas Genannt <jonas.genannt at brachium-system.net>
Date:   Fri Oct 10 16:36:15 2014 +0200

    added patch to fix require for autopkg tests
---
 debian/patches/fix_autopkg_tests.patch | 70 ++++++++++++++++++++++++++++++++++
 debian/patches/series                  |  1 +
 2 files changed, 71 insertions(+)

diff --git a/debian/patches/fix_autopkg_tests.patch b/debian/patches/fix_autopkg_tests.patch
new file mode 100644
index 0000000..37e3090
--- /dev/null
+++ b/debian/patches/fix_autopkg_tests.patch
@@ -0,0 +1,70 @@
+Description: fix autopkg tests by require
+Author: Jonas Genannt <jonas.genannt at capi2name.de>
+Forwarded: not-needed
+
+--- a/test/test-columnize-array.rb
++++ b/test/test-columnize-array.rb
+@@ -6,7 +6,7 @@ class TestColumnizeArray < Test::Unit::T
+   # Ruby 1.8 form of require_relative
+   TOP_SRC_DIR = File.join(File.expand_path(File.dirname(__FILE__)), '..', 'lib')
+   ENV['COLUMNS'] = '80'
+-  require File.join(TOP_SRC_DIR, 'columnize.rb')
++  require 'columnize'
+ 
+   # test columnize
+   def test_arrange_array
+--- a/test/test-columnize.rb
++++ b/test/test-columnize.rb
+@@ -5,7 +5,7 @@ require 'test/unit'
+ class TestColumnize < Test::Unit::TestCase
+   # Ruby 1.8 form of require_relative
+   TOP_SRC_DIR = File.join(File.expand_path(File.dirname(__FILE__)), '..', 'lib')
+-  require File.join(TOP_SRC_DIR, 'columnize.rb')
++  require 'columnize'
+ 
+   # test columnize
+   def test_basic
+--- a/test/test-columnizer.rb
++++ b/test/test-columnizer.rb
+@@ -4,7 +4,7 @@ require 'test/unit'
+ # Test of Columnizer class
+ class TestColumnizer < Test::Unit::TestCase
+   TOP_SRC_DIR = File.join(File.expand_path(File.dirname(__FILE__)), '..', 'lib')
+-  require File.join(TOP_SRC_DIR, 'columnize.rb')
++  require 'columnize'
+ 
+   Columnize::Columnizer.class_eval 'attr_reader :stringify, :short_circuit, :term_adjuster'
+   Columnize::Columnizer.class_eval 'attr_reader *ATTRS'
+--- a/test/test-hashparm.rb
++++ b/test/test-hashparm.rb
+@@ -4,7 +4,7 @@ require 'test/unit'
+ # Test of Columnize module
+ class TestHashFormat < Test::Unit::TestCase
+   TOP_SRC_DIR = File.join(File.expand_path(File.dirname(__FILE__)), '..', 'lib')
+-  require File.join(TOP_SRC_DIR, 'columnize.rb')
++  require 'columnize'
+ 
+   def test_parse_columnize_options
+     assert Columnize.parse_columnize_options([{}]).kind_of?(Hash)
+--- a/test/test-issue3.rb
++++ b/test/test-issue3.rb
+@@ -4,7 +4,7 @@ require 'test/unit'
+ # Test of Columnize module for github issue #3
+ class TestIssue3 < Test::Unit::TestCase
+   @@TOP_SRC_DIR = File.join(File.expand_path(File.dirname(__FILE__)), '..', 'lib')
+-  require File.join(@@TOP_SRC_DIR, 'columnize.rb')
++  require 'columnize'
+ 
+   # test columnize
+   def test_long_column
+--- a/test/test-min_rows_and_colwidths.rb
++++ b/test/test-min_rows_and_colwidths.rb
+@@ -5,7 +5,7 @@ require 'test/unit'
+ class TestComputeRowsAndColwidths < Test::Unit::TestCase
+   # Ruby 1.8 form of require_relative
+   TOP_SRC_DIR = File.join(File.expand_path(File.dirname(__FILE__)), '..', 'lib')
+-  require File.join(TOP_SRC_DIR, 'columnize.rb')
++  require 'columnize'
+ 
+   VOPTS = Columnize::DEFAULT_OPTS.merge(:displaywidth => 80)
+   HOPTS = VOPTS.merge(:arrange_vertical => false)
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..dc76f78
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix_autopkg_tests.patch

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



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