Title: [1149] trunk/jruby-ldap/lib/ldap: Fix a bug spotted by Gigix
- Revision
- 1149
- Author
- olabini
- Date
- 2009-04-03 05:36:27 -0400 (Fri, 03 Apr 2009)
Log Message
Fix a bug spotted by Gigix
Modified Paths
Diff
Modified: trunk/jruby-ldap/lib/ldap/conn.rb (1148 => 1149)
--- trunk/jruby-ldap/lib/ldap/conn.rb 2009-03-28 04:26:42 UTC (rev 1148)
+++ trunk/jruby-ldap/lib/ldap/conn.rb 2009-04-03 09:36:27 UTC (rev 1149)
@@ -12,7 +12,7 @@
raise "NOT IMPLEMENTED"
end
- def modrdn(*args)
+ def modrdn(dn, new_rdn, delete_old_rdn)
raise "NOT IMPLEMENTED"
end
Modified: trunk/jruby-ldap/lib/ldap/mod.rb (1148 => 1149)
--- trunk/jruby-ldap/lib/ldap/mod.rb 2009-03-28 04:26:42 UTC (rev 1148)
+++ trunk/jruby-ldap/lib/ldap/mod.rb 2009-04-03 09:36:27 UTC (rev 1149)
@@ -59,7 +59,7 @@
def to_java_attribute
v = BasicAttribute.new(self.mod_type)
binary = mod_op & LDAP::LDAP_MOD_BVALUES
- if binary
+ if binary != 0
self.mod_vals.each do |val|
v.add(val.to_java_bytes)
end
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel