ruby-net-ldap
ruby-net-ldap copied to clipboard
Raises errors when giving encryption as non-Hash object
In #250 , Net::LDAP
of the latest version 0.13.0 accepts encryption options on its initializer. It causes an error when creating a connection as reported.
This PR provides a validation which check whether a given encryption
option is a Hash or not.
:+1: it would be nice to validate all given parameters from constructor.