diff -Nru ruby-em-hiredis-0.2.1/debian/changelog ruby-em-hiredis-0.2.1/debian/changelog --- ruby-em-hiredis-0.2.1/debian/changelog 2014-04-10 02:33:13.000000000 +0200 +++ ruby-em-hiredis-0.2.1/debian/changelog 2014-11-23 17:40:44.000000000 +0100 @@ -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 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 -Nru ruby-em-hiredis-0.2.1/debian/patches/0003-Disable-network-tests ruby-em-hiredis-0.2.1/debian/patches/0003-Disable-network-tests --- ruby-em-hiredis-0.2.1/debian/patches/0003-Disable-network-tests 1970-01-01 01:00:00.000000000 +0100 +++ ruby-em-hiredis-0.2.1/debian/patches/0003-Disable-network-tests 2014-11-23 16:22:48.000000000 +0100 @@ -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 -Nru ruby-em-hiredis-0.2.1/debian/patches/series ruby-em-hiredis-0.2.1/debian/patches/series --- ruby-em-hiredis-0.2.1/debian/patches/series 2014-04-10 01:39:13.000000000 +0200 +++ ruby-em-hiredis-0.2.1/debian/patches/series 2014-11-23 16:10:44.000000000 +0100 @@ -1,2 +1,3 @@ 0001-Remove-git-calls-in-gemspec.patch 0002-Update-WRONGTYPE-error-message-test.patch +0003-Disable-network-tests diff -Nru ruby-em-hiredis-0.2.1/debian/ruby-tests.rake ruby-em-hiredis-0.2.1/debian/ruby-tests.rake --- ruby-em-hiredis-0.2.1/debian/ruby-tests.rake 2013-06-26 10:08:31.000000000 +0200 +++ ruby-em-hiredis-0.2.1/debian/ruby-tests.rake 2014-11-23 16:21:24.000000000 +0100 @@ -1,4 +1,5 @@ require 'rspec/core/rake_task' task :default => :spec RSpec::Core::RakeTask.new do |t| + t.rspec_opts = "--tag ~localhost" end