[DRE-commits] [ruby-em-hiredis] 06/06: Add patch updating WRONGTYPE error messages

Per Andersson avtobiff-guest at moszumanska.debian.org
Thu Apr 10 00:31:23 UTC 2014


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

avtobiff-guest pushed a commit to branch master
in repository ruby-em-hiredis.

commit b424458b166ccab9471c676a430071574b84f241
Author: Per Andersson <avtobiff at gmail.com>
Date:   Thu Apr 10 02:29:05 2014 +0200

    Add patch updating WRONGTYPE error messages
---
 .../0002-Update-WRONGTYPE-error-message-test.patch | 26 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 27 insertions(+)

diff --git a/debian/patches/0002-Update-WRONGTYPE-error-message-test.patch b/debian/patches/0002-Update-WRONGTYPE-error-message-test.patch
new file mode 100644
index 0000000..4ffe1d3
--- /dev/null
+++ b/debian/patches/0002-Update-WRONGTYPE-error-message-test.patch
@@ -0,0 +1,26 @@
+From: Per Andersson <avtobiff at gmail.com>
+Date: Thu, 10 Apr 2014 01:05:57 +0200
+Subject: Update WRONGTYPE error message test
+---
+--- a/spec/base_client_spec.rb
++++ b/spec/base_client_spec.rb
+@@ -105,7 +105,7 @@
+         df.errback { |e|
+           e.class.should == EM::Hiredis::RedisError
+           e.should be_kind_of(EM::Hiredis::Error)
+-          msg = "ERR Operation against a key holding the wrong kind of value"
++          msg = "WRONGTYPE Operation against a key holding the wrong kind of value"
+           e.message.should == msg
+           # This is the wrapped error from redis:
+           e.redis_error.class.should == RuntimeError
+--- a/examples/getting_started.rb
++++ b/examples/getting_started.rb
+@@ -7,7 +7,7 @@
+   redis.sadd('aset', 'member').callback {
+     response_deferrable = redis.hget('aset', 'member')
+     response_deferrable.errback { |e|
+-      p e # => #<RuntimeError: ERR Operation against a key holding the wrong kind of value>
++      p e # => #<RuntimeError: WRONGTYPE Operation against a key holding the wrong kind of value>
+       p e.redis_error
+     }
+   }
diff --git a/debian/patches/series b/debian/patches/series
index c072a0a..0063abe 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 0001-Remove-git-calls-in-gemspec.patch
+0002-Update-WRONGTYPE-error-message-test.patch

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



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