Skip to content

Commit

Permalink
rubocop & bump 1.7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
MatzFan committed Aug 9, 2024
1 parent 5ee3fe0 commit 020f2d6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion socksify.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down
6 changes: 3 additions & 3 deletions test/test_tcpsocket.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand All @@ -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

0 comments on commit 020f2d6

Please sign in to comment.