diff --git a/debian/changelog b/debian/changelog index 04475de..9f578dd 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,9 +1,11 @@ -ruby-omniauth-facebook (1.6.0-2) UNRELEASED; urgency=medium +ruby-omniauth-facebook (1.6.0-3) UNRELEASED; urgency=medium * Team upload. * Simplify debian/ruby-tests.rb to require the unique test file test/test.rb + * Add stub_request_scheme.patch to stub Request#scheme method and avoid test + failures (Closes: #747740) - -- Cédric Boutillier Mon, 19 May 2014 23:54:02 +0200 + -- Cédric Boutillier Mon, 21 Jul 2014 20:20:25 +0200 ruby-omniauth-facebook (1.6.0-1) unstable; urgency=low diff --git a/debian/patches/series b/debian/patches/series index 1e07cfb..07dcb57 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ removing_bundler.diff +stub_request_scheme.patch diff --git a/debian/patches/stub_request_scheme.patch b/debian/patches/stub_request_scheme.patch new file mode 100644 index 0000000..796c9ff --- /dev/null +++ b/debian/patches/stub_request_scheme.patch @@ -0,0 +1,20 @@ +Description: stub the Request#scheme method to return "http" in test/helper.rb + This avoids to get test errors with the following message + unexpected invocation: #.scheme() +Origin: vendor +Author: Cédric Boutillier +Bug: https://github.com/mkdynamic/omniauth-facebook/issues/153 +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=747740 +Forwarded: https://github.com/mkdynamic/omniauth-facebook/issues/153#issuecomment-49643317 +Last-Update: 2014-07-21 + +--- a/test/helper.rb ++++ b/test/helper.rb +@@ -36,6 +36,7 @@ + @request.stubs(:cookies).returns({}) + @request.stubs(:env).returns({}) + @request.stubs(:ssl?).returns(false) ++ @request.stubs(:scheme).returns("http") + + @client_id = '123' + @client_secret = '53cr3tz'