From 020f2d6343c3fc27973498a4bd99f97e29c94065 Mon Sep 17 00:00:00 2001 From: MatzFan Date: Fri, 9 Aug 2024 14:29:56 +0100 Subject: [PATCH] rubocop & bump 1.7.3 --- ChangeLog | 5 +++++ socksify.gemspec | 2 +- test/test_tcpsocket.rb | 6 +++--- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3890dd6..013f710 100644 --- a/ChangeLog +++ b/ChangeLog @@ -75,3 +75,8 @@ SOCKSify Ruby 1.7.2 * Fix Socksify::debug = false Previously, debug was enabled if any value was assigned to Socksify::debug (thanks to Dennis Blommesteijn) + +unreleased +SOCKSify Ruby 1.7.3 +=================== +* fix missing :timeout kwarg in TCPSocket class (thanks @lizzypy) diff --git a/socksify.gemspec b/socksify.gemspec index fe9f22c..51d3385 100644 --- a/socksify.gemspec +++ b/socksify.gemspec @@ -4,7 +4,7 @@ require 'rubygems' Gem::Specification.new do |s| s.name = 'socksify' - s.version = '1.7.2' + s.version = '1.7.3' s.summary = 'Redirect all TCPSockets through a SOCKS5 proxy' s.authors = ['Stephan Maka', 'Andrey Kouznetsov', 'Christopher Thorpe', 'Musy Bite', 'Yuichi Tateno', 'David Dollar'] s.licenses = ['Ruby', 'GPL-3.0'] diff --git a/test/test_tcpsocket.rb b/test/test_tcpsocket.rb index 66c5b15..d9d81c1 100644 --- a/test/test_tcpsocket.rb +++ b/test/test_tcpsocket.rb @@ -11,7 +11,7 @@ def test_tcp_socket_direct_connection_with_connection_timeout socket = TCPSocket.new('127.0.0.1', 9050, connect_timeout: 0.1) - assert !socket.closed? + refute_predicate socket, :closed? end def test_tcp_socket_socks_connection_with_connection_timeout @@ -20,7 +20,7 @@ def test_tcp_socket_socks_connection_with_connection_timeout # leave off the host because we don't need to worry about connecting to socks socket = TCPSocket.new(connect_timeout: 0.1) - assert !socket.closed? + refute_predicate socket, :closed? end end @@ -29,6 +29,6 @@ def test_tcp_socket_direct_connection_with_connection_timeout_no_kwargs socket = TCPSocket.new('127.0.0.1', 9050) - assert !socket.closed? + refute_predicate socket, :closed? end end