Permalink
Browse files

Replace TCPsocket with TCPSocket.

 * Ruby 1.9 removes the "alias" for TCPsocket so
   use TCPSocket instead. Notice case.
  • Loading branch information...
1 parent b1fe518 commit 4fafdd56d05a0401d92c8e7daf56750ca72e0873 emiel committed Feb 21, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/net/ldap.rb
View
@@ -1149,7 +1149,7 @@ class Connection # :nodoc:
#
def initialize server
begin
- @conn = TCPsocket.new( server[:host], server[:port] )
+ @conn = TCPSocket.new( server[:host], server[:port] )
rescue
raise LdapError.new( "no connection to server" )
end
@@ -1181,7 +1181,7 @@ def initialize server
# It doesn't do any server-cert validation and requires nothing in the way
# of key files and root-cert files, etc etc.
# 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.
# It does not require an alternative port for encrypted communications, as with

0 comments on commit 4fafdd5

Please sign in to comment.