lib/net/ldap/dataset.rb in net-ldap-0.16.2 vs lib/net/ldap/dataset.rb in net-ldap-0.16.3
- old
+ new
@@ -101,11 +101,11 @@
##
# Creates a Dataset object from an Entry object. Used mostly to assist
# with the conversion of
def from_entry(entry)
dataset = Net::LDAP::Dataset.new
- hash = { }
+ hash = {}
entry.each_attribute do |attribute, value|
next if attribute == :dn
hash[attribute] = value
end
dataset[entry.dn] = hash
@@ -163,6 +163,6 @@
ds
end
end
end
-require 'net/ldap/entry' unless defined? Net::LDAP::Entry
+require_relative 'entry' unless defined? Net::LDAP::Entry