[DRE-commits] [ruby-dbi] 01/02: Add "fix raise method lookup" patch

David Suárez deiv-guest at moszumanska.debian.org
Fri May 2 09:22:45 UTC 2014


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

deiv-guest pushed a commit to branch master
in repository ruby-dbi.

commit 538e3da05e89dbf71a86b25fc106f71bc91e9b55
Author: David Suárez <david.sephirot at gmail.com>
Date:   Thu May 1 22:40:26 2014 +0200

    Add "fix raise method lookup" patch
---
 debian/patches/fix-raise-lookup-error.patch | 17 +++++++++++++++++
 debian/patches/series                       |  3 ++-
 2 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/debian/patches/fix-raise-lookup-error.patch b/debian/patches/fix-raise-lookup-error.patch
new file mode 100644
index 0000000..2886133
--- /dev/null
+++ b/debian/patches/fix-raise-lookup-error.patch
@@ -0,0 +1,17 @@
+Description: Fix raise method lookup
+
+Bug-Debian: http://bugs.debian.org/746081
+Author: David Suárez <david.sephirot at gmail.com>
+Last-Update: 2014-05-01
+
+--- ruby-dbi-0.4.5.orig/lib/dbi/columninfo.rb
++++ ruby-dbi-0.4.5/lib/dbi/columninfo.rb
+@@ -37,7 +37,7 @@ module DBI
+                 if x.kind_of? String
+                     sym = x.to_sym
+                     if @hash.has_key? sym
+-                        raise ::TypeError, 
++                        Kernel.raise ::TypeError, 
+                             "#{self.class.name} may construct from a hash keyed with strings or symbols, but not both" 
+                     end
+                     @hash[sym] = @hash[x]
diff --git a/debian/patches/series b/debian/patches/series
index 9227275..e1d726f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,4 +3,5 @@
 0003-remove-executables.patch
 0004-update-to-deprecated-3.0.0.patch
 0005-ruby-1.9-compatibility.patch
-add-ruby2-support.patch
\ No newline at end of file
+add-ruby2-support.patch
+fix-raise-lookup-error.patch

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



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