Replace TCPsocket with TCPSocket.

* Ruby 1.9 removes the "alias" for TCPsocket so
   use TCPSocket instead. Notice case.
This commit is contained in:
emiel 2009-02-21 15:23:09 +00:00
parent b1fe518161
commit 4fafdd56d0

View file

@ -1149,7 +1149,7 @@ module Net
# #
def initialize server def initialize server
begin begin
@conn = TCPsocket.new( server[:host], server[:port] ) @conn = TCPSocket.new( server[:host], server[:port] )
rescue rescue
raise LdapError.new( "no connection to server" ) raise LdapError.new( "no connection to server" )
end end
@ -1181,7 +1181,7 @@ module Net
# It doesn't do any server-cert validation and requires nothing in the way # It doesn't do any server-cert validation and requires nothing in the way
# of key files and root-cert files, etc etc. # of key files and root-cert files, etc etc.
# OBSERVE: WE REPLACE the value of @conn, which is presumed to be a connected # OBSERVE: WE REPLACE the value of @conn, which is presumed to be a connected
# TCPsocket object. # TCPSocket object.
# #
# The start_tls method is supported by many servers over the standard LDAP port. # The start_tls method is supported by many servers over the standard LDAP port.
# It does not require an alternative port for encrypted communications, as with # It does not require an alternative port for encrypted communications, as with