net-ldap 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of net-ldap might be problematic. Click here for more details.

@@ -1,3 +1,7 @@
1
+ === Net::LDAP 0.2.2 / 2011-03-26
2
+ * Bug Fixes:
3
+ * Fixed the call to Net::LDAP.modify_ops from Net::LDAP#modify.
4
+
1
5
  === Net::LDAP 0.2.1 / 2011-03-23
2
6
  * Bug Fixes:
3
7
  * Net::LDAP.modify_ops was broken and is now fixed.
@@ -106,7 +106,7 @@ module Net # :nodoc:
106
106
  # <tr><th>BMPString</th><th>C</th><td>30: 62 (0x3e, 0b00111110)</td></tr>
107
107
  # </table>
108
108
  module BER
109
- VERSION = '0.2.1'
109
+ VERSION = '0.2.2'
110
110
 
111
111
  ##
112
112
  # Used for BER-encoding the length and content bytes of a Fixnum integer
@@ -241,7 +241,7 @@ require 'net/ldap/entry'
241
241
  # and then keeps it open while it executes a user-supplied block.
242
242
  # Net::LDAP#open closes the connection on completion of the block.
243
243
  class Net::LDAP
244
- VERSION = "0.2.1"
244
+ VERSION = "0.2.2"
245
245
 
246
246
  class LdapError < StandardError; end
247
247
 
@@ -1459,7 +1459,7 @@ class Net::LDAP::Connection #:nodoc:
1459
1459
  }
1460
1460
 
1461
1461
  def self.modify_ops(operations)
1462
- modify_ops = []
1462
+ ops = []
1463
1463
  if operations
1464
1464
  operations.each { |op, attrib, values|
1465
1465
  # TODO, fix the following line, which gives a bogus error if the
@@ -1467,10 +1467,10 @@ class Net::LDAP::Connection #:nodoc:
1467
1467
  op_ber = MODIFY_OPERATIONS[op.to_sym].to_ber_enumerated
1468
1468
  values = [ values ].flatten.map { |v| v.to_ber if v }.to_ber_set
1469
1469
  values = [ attrib.to_s.to_ber, values ].to_ber_sequence
1470
- modify_ops << [ op_ber, values ].to_ber
1470
+ ops << [ op_ber, values ].to_ber
1471
1471
  }
1472
1472
  end
1473
- modify_ops
1473
+ ops
1474
1474
  end
1475
1475
 
1476
1476
  #--
@@ -1482,9 +1482,9 @@ class Net::LDAP::Connection #:nodoc:
1482
1482
  #++
1483
1483
  def modify(args)
1484
1484
  modify_dn = args[:dn] or raise "Unable to modify empty DN"
1485
- modify_ops = modify_ops args[:operations]
1485
+ ops = self.class.modify_ops args[:operations]
1486
1486
  request = [ modify_dn.to_ber,
1487
- modify_ops.to_ber_sequence ].to_ber_appsequence(6)
1487
+ ops.to_ber_sequence ].to_ber_appsequence(6)
1488
1488
  pkt = [ next_msgid.to_ber, request ].to_ber_sequence
1489
1489
  @conn.write pkt
1490
1490
 
@@ -2,7 +2,7 @@
2
2
  # :stopdoc:
3
3
  module Net
4
4
  class SNMP
5
- VERSION = '0.2.1'
5
+ VERSION = '0.2.2'
6
6
 
7
7
  AsnSyntax = Net::BER.compile_syntax({
8
8
  :application => {
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: net-ldap
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 1
10
- version: 0.2.1
9
+ - 2
10
+ version: 0.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Francis Cianfrocca
@@ -19,7 +19,7 @@ autorequire:
19
19
  bindir: bin
20
20
  cert_chain: []
21
21
 
22
- date: 2011-03-23 00:00:00 -04:00
22
+ date: 2011-03-26 00:00:00 -04:00
23
23
  default_executable:
24
24
  dependencies:
25
25
  - !ruby/object:Gem::Dependency