testserver/ldapserver.rb in net-ldap-0.0.5 vs testserver/ldapserver.rb in net-ldap-0.1.0

- old
+ new

@@ -10,29 +10,10 @@ # # To make this easier to write, we use the Ruby/EventMachine # reactor library. # - -require 'stringio' - #------------------------------------------------ - -class String - def read_ber! syntax=nil - s = StringIO.new self - pdu = s.read_ber(syntax) - if pdu - if s.eof? - slice!(0, length) - else - slice!(0, length - s.read.length) - end - end - pdu - end -end - module LdapServer LdapServerAsnSyntax = { :application => {