summaryrefslogtreecommitdiff
path: root/lib/custodian/protocoltest/mx.rb
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-03-09 13:19:47 +0000
committerSteve Kemp <steve@steve.org.uk>2015-03-09 13:19:47 +0000
commite716a49dabe2c086a97e2d8b3cffe5cf369ad026 (patch)
treee7e98125f89941db4c9d0f48f2df9c410467a3d8 /lib/custodian/protocoltest/mx.rb
parentaf2ee063abea8235a8cbd1448533e4f4fbc0d0af (diff)
Removed spaces inside parenthesis.
Diffstat (limited to 'lib/custodian/protocoltest/mx.rb')
-rw-r--r--lib/custodian/protocoltest/mx.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/custodian/protocoltest/mx.rb b/lib/custodian/protocoltest/mx.rb
index 61e838c..a9cac62 100644
--- a/lib/custodian/protocoltest/mx.rb
+++ b/lib/custodian/protocoltest/mx.rb
@@ -20,7 +20,7 @@ module Custodian
#
# Constructor
#
- def initialize( line )
+ def initialize(line)
# Save the line away
@line = line
@@ -69,11 +69,11 @@ module Custodian
# Lookup the MX record
#
begin
- timeout( period ) do
+ timeout(period) do
Resolv::DNS.open do |dns|
ress = dns.getresources(@host, Resolv::DNS::Resource::IN::MX)
- ress.map { |r| mx.push( IPSocket.getaddress(r.exchange.to_s) ) }
+ ress.map { |r| mx.push(IPSocket.getaddress(r.exchange.to_s)) }
end
end
rescue Timeout::Error => e
@@ -110,7 +110,7 @@ module Custodian
begin
timeout(period) do
begin
- socket = TCPSocket.new( backend, 25 )
+ socket = TCPSocket.new(backend, 25)
read = socket.sysread(1024)
# trim to a sane length & strip newlines.