[DRE-commits] [ruby-em-hiredis] 01/01: Acknowledge 0.2.1-2.1, thanks Margarita Manterola
Cédric Boutillier
boutil at moszumanska.debian.org
Thu Nov 27 17:58:49 UTC 2014
This is an automated email from the git hooks/post-receive script.
boutil pushed a commit to branch master
in repository ruby-em-hiredis.
commit 47600d22ad932481ea39f7f327656e427ae6c9df
Author: Cédric Boutillier <boutil at debian.org>
Date: Thu Nov 27 18:58:28 2014 +0100
Acknowledge 0.2.1-2.1, thanks Margarita Manterola
---
debian/changelog | 8 +++++
debian/patches/0003-Disable-network-tests | 54 +++++++++++++++++++++++++++++++
debian/patches/series | 1 +
debian/ruby-tests.rake | 1 +
4 files changed, 64 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index b9681eb..c7ffbbd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+ruby-em-hiredis (0.2.1-2.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Disable localhost tests to allow this package to build even when there's
+ no lo interface configured (Closes: #759917)
+
+ -- Margarita Manterola <marga at debian.org> Sun, 23 Nov 2014 16:21:27 +0100
+
ruby-em-hiredis (0.2.1-2) unstable; urgency=low
* Bump gem2deb build dependency to >= 0.7.5~
diff --git a/debian/patches/0003-Disable-network-tests b/debian/patches/0003-Disable-network-tests
new file mode 100644
index 0000000..1561b59
--- /dev/null
+++ b/debian/patches/0003-Disable-network-tests
@@ -0,0 +1,54 @@
+Index: ruby-em-hiredis-0.2.1/spec/base_client_spec.rb
+===================================================================
+--- ruby-em-hiredis-0.2.1.orig/spec/base_client_spec.rb 2014-11-23 16:12:34.672382770 +0100
++++ ruby-em-hiredis-0.2.1/spec/base_client_spec.rb 2014-11-23 16:21:08.049180753 +0100
+@@ -14,7 +14,8 @@
+ }
+ end
+
+- it "should emit an event on reconnect failure, with the retry count" do
++ it "should emit an event on reconnect failure, with the retry count",
++ :localhost => true do
+ # Assumes there is no redis server on 9999
+ connect(1, "redis://localhost:9999/") do |redis|
+ expected = 1
+@@ -35,7 +36,8 @@
+ end
+ end
+
+- it "should fail the client deferrable after 4 unsuccessful attempts" do
++ it "should fail the client deferrable after 4 unsuccessful attempts",
++ :localhost => true do
+ connect(1, "redis://localhost:9999/") do |redis|
+ events = []
+ redis.on(:reconnect_failed) { |count|
+@@ -50,7 +52,8 @@
+ end
+ end
+
+- it "should fail commands immediately when in failed state" do
++ it "should fail commands immediately when in failed state",
++ :localhost => true do
+ connect(1, "redis://localhost:9999/") do |redis|
+ redis.fail
+ redis.get('foo').errback { |error|
+@@ -61,7 +64,8 @@
+ end
+ end
+
+- it "should fail queued commands when entering failed state" do
++ it "should fail queued commands when entering failed state",
++ :localhost => true do
+ connect(1, "redis://localhost:9999/") do |redis|
+ redis.get('foo').errback { |error|
+ error.class.should == EM::Hiredis::Error
+@@ -72,7 +76,8 @@
+ end
+ end
+
+- it "should allow reconfiguring the client at runtime" do
++ it "should allow reconfiguring the client at runtime",
++ :localhost => true do
+ connect(1, "redis://localhost:9999/") do |redis|
+ redis.on(:reconnect_failed) {
+ redis.configure("redis://localhost:6379/9")
diff --git a/debian/patches/series b/debian/patches/series
index 0063abe..8983f9f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
0001-Remove-git-calls-in-gemspec.patch
0002-Update-WRONGTYPE-error-message-test.patch
+0003-Disable-network-tests
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
index ae0a251..c3f18a2 100644
--- a/debian/ruby-tests.rake
+++ b/debian/ruby-tests.rake
@@ -1,4 +1,5 @@
require 'rspec/core/rake_task'
task :default => :spec
RSpec::Core::RakeTask.new do |t|
+ t.rspec_opts = "--tag ~localhost"
end
--
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