diff options
author | Steve Kemp <steve@steve.org.uk> | 2015-03-09 13:03:12 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2015-03-09 13:03:12 +0000 |
commit | 2921a7c7b8ab27350108ae0e678947085ded7b94 (patch) | |
tree | 45f8d2a48cf2d0ff37f1a1e18c736bd68f090b99 /lib/custodian/protocoltest/ssl.rb | |
parent | 7473d89d4cb01a50921b9edcd262838b1adff437 (diff) |
Don't use "::" for method-calls.
Instead prefer ".".
Flagged by rubocop
Diffstat (limited to 'lib/custodian/protocoltest/ssl.rb')
-rw-r--r-- | lib/custodian/protocoltest/ssl.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/custodian/protocoltest/ssl.rb b/lib/custodian/protocoltest/ssl.rb index 18da9f1..4929f7b 100644 --- a/lib/custodian/protocoltest/ssl.rb +++ b/lib/custodian/protocoltest/ssl.rb @@ -154,7 +154,7 @@ class SSLCheck ctx = OpenSSL::SSL::SSLContext.new(:TLSv1_client) retried = false begin - Timeout::timeout(10) do + Timeout.timeout(10) do s = TCPSocket.open(uri.host, uri.port) s = OpenSSL::SSL::SSLSocket.new(s, ctx) s.sync_close = true @@ -212,7 +212,7 @@ class SSLCheck s = nil begin - Timeout::timeout(10) do + Timeout.timeout(10) do s = TCPSocket.open(uri.host, uri.port) s = OpenSSL::SSL::SSLSocket.new(s, OpenSSL::SSL::SSLContext.new(:SSLv3_client)) s.sync_close = true |