Package: ruby-httpclient / 2.7.1-1.1

Metadata

Package Version Patches format
ruby-httpclient 2.7.1-1.1 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
0001 Fix port allocation in tests.patch | (download)

test/helper.rb | 2 1 + 1 - 0 !
test/test_auth.rb | 4 2 + 2 - 0 !
test/test_http-access2.rb | 2 1 + 1 - 0 !
test/test_httpclient.rb | 2 1 + 1 - 0 !
test/test_jsonclient.rb | 2 1 + 1 - 0 !
test/test_ssl.rb | 4 2 + 2 - 0 !
6 files changed, 8 insertions(+), 8 deletions(-)

 fix port allocation in tests

 For some reason, when running the test suite under sbuild, several tests crash
 with an error of `Errno::EADDRINUSE: Address already in use - listen(2)`. The
 tests just work when building outside of sbuild.

 Somehow, passing :Port => 0 seems to be making WEBrick allocate the same port
 over and over. I couldn't reproduce this interactively.

 This patch fixes the issue by assigning explict port numbers to servers and
 proxy servers created in the test suite, and is most probably Debian-specific.

0002 Disable tests for NTLM.patch | (download)

test/test_auth.rb | 74 37 + 37 - 0 !
1 file changed, 37 insertions(+), 37 deletions(-)

 disable tests for ntlm


0003 Try to wait until socket is free.patch | (download)

test/helper.rb | 3 3 + 0 - 0 !
test/test_auth.rb | 38 24 + 14 - 0 !
test/test_http-access2.rb | 3 3 + 0 - 0 !
test/test_httpclient.rb | 3 3 + 0 - 0 !
test/test_jsonclient.rb | 3 3 + 0 - 0 !
test/test_ssl.rb | 6 6 + 0 - 0 !
6 files changed, 42 insertions(+), 14 deletions(-)

 try to wait until socket is free


0004 Add upstream changelog.patch | (download)

CHANGELOG.md | 1067 1067 + 0 - 0 !
1 file changed, 1067 insertions(+)

 add upstream changelog


0005 tweak test dep change.patch | (download)

test/test_ssl.rb | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 tweak tests to support latest version of dependency
 One of the test makes sure that SSLv3 is not supported by expecting an 
 SSLError to be raised. But in latest versions of openssl, an ArgumentError 
 is raised in such situations. Patched the test to use that instead.