diff --git a/History.rdoc b/History.rdoc
index c3a9041..b0df8b8 100644
--- a/History.rdoc
+++ b/History.rdoc
@@ -1,3 +1,7 @@
+=== Net::LDAP 0.2.2 / 2011-03-26
+* Bug Fixes:
+ * Fixed the call to Net::LDAP.modify_ops from Net::LDAP#modify.
+
=== Net::LDAP 0.2.1 / 2011-03-23
* Bug Fixes:
* Net::LDAP.modify_ops was broken and is now fixed.
diff --git a/lib/net/ber.rb b/lib/net/ber.rb
index 9f2854b..d65a354 100644
--- a/lib/net/ber.rb
+++ b/lib/net/ber.rb
@@ -106,7 +106,7 @@ module Net # :nodoc:
#
BMPString | C | 30: 62 (0x3e, 0b00111110) |
#
module BER
- VERSION = '0.2.1'
+ VERSION = '0.2.2'
##
# Used for BER-encoding the length and content bytes of a Fixnum integer
diff --git a/lib/net/ldap.rb b/lib/net/ldap.rb
index a923343..9761f46 100644
--- a/lib/net/ldap.rb
+++ b/lib/net/ldap.rb
@@ -241,7 +241,7 @@ require 'net/ldap/entry'
# and then keeps it open while it executes a user-supplied block.
# Net::LDAP#open closes the connection on completion of the block.
class Net::LDAP
- VERSION = "0.2.1"
+ VERSION = "0.2.2"
class LdapError < StandardError; end
@@ -1459,7 +1459,7 @@ class Net::LDAP::Connection #:nodoc:
}
def self.modify_ops(operations)
- modify_ops = []
+ ops = []
if operations
operations.each { |op, attrib, values|
# TODO, fix the following line, which gives a bogus error if the
@@ -1467,10 +1467,10 @@ class Net::LDAP::Connection #:nodoc:
op_ber = MODIFY_OPERATIONS[op.to_sym].to_ber_enumerated
values = [ values ].flatten.map { |v| v.to_ber if v }.to_ber_set
values = [ attrib.to_s.to_ber, values ].to_ber_sequence
- modify_ops << [ op_ber, values ].to_ber
+ ops << [ op_ber, values ].to_ber
}
end
- modify_ops
+ ops
end
#--
@@ -1482,9 +1482,9 @@ class Net::LDAP::Connection #:nodoc:
#++
def modify(args)
modify_dn = args[:dn] or raise "Unable to modify empty DN"
- modify_ops = modify_ops args[:operations]
+ ops = self.class.modify_ops args[:operations]
request = [ modify_dn.to_ber,
- modify_ops.to_ber_sequence ].to_ber_appsequence(6)
+ ops.to_ber_sequence ].to_ber_appsequence(6)
pkt = [ next_msgid.to_ber, request ].to_ber_sequence
@conn.write pkt
diff --git a/lib/net/snmp.rb b/lib/net/snmp.rb
index 87b946d..6835dd3 100644
--- a/lib/net/snmp.rb
+++ b/lib/net/snmp.rb
@@ -2,7 +2,7 @@
# :stopdoc:
module Net
class SNMP
- VERSION = '0.2.1'
+ VERSION = '0.2.2'
AsnSyntax = Net::BER.compile_syntax({
:application => {