From 6a17e6a2c23397600638993e7b556931c125c55d Mon Sep 17 00:00:00 2001 From: Kaspar Schiess Date: Wed, 17 Mar 2010 16:39:46 +0100 Subject: [PATCH] ! Fixes connection open bug Without this require, even the simplest example will fail, since TCPSocket is not defined. Our tests were faking this by including openssl and socket. --- lib/net/ldap.rb | 2 ++ spec/integration/ssl_ber_spec.rb | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/net/ldap.rb b/lib/net/ldap.rb index 9cfb016..a31790f 100644 --- a/lib/net/ldap.rb +++ b/lib/net/ldap.rb @@ -1,6 +1,8 @@ require 'openssl' require 'ostruct' +require 'socket' + require 'net/ber' require 'net/ldap/pdu' require 'net/ldap/filter' diff --git a/spec/integration/ssl_ber_spec.rb b/spec/integration/ssl_ber_spec.rb index 6132ede..20f3eac 100644 --- a/spec/integration/ssl_ber_spec.rb +++ b/spec/integration/ssl_ber_spec.rb @@ -1,8 +1,5 @@ require 'spec_helper' -require 'socket' -require 'openssl' - require 'net/ldap' describe "BER serialisation (SSL)" do