treequel 1.7.2 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.rdoc +10 -0
- data/lib/treequel/branch.rb +8 -0
- data/lib/treequel.rb +2 -2
- data/spec/treequel/branch_spec.rb +13 -0
- data.tar.gz.sig +0 -0
- metadata +5 -5
- metadata.gz.sig +0 -0
data/History.rdoc
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
== v1.8.0 [2011-12-05] Michael Granger <ged@FaerieMUD.org>
|
2
|
+
|
3
|
+
- Implemented #eql? for Treequel::Branch for correct behavior in
|
4
|
+
Array#-, Hash#[], etc.
|
5
|
+
|
6
|
+
|
7
|
+
== v1.7.2 [2011-11-30] Michael Granger <ged@FaerieMUD.org>
|
8
|
+
|
9
|
+
- Added signature for changeset a8a3bca987c3
|
10
|
+
|
1
11
|
== v1.7.2 [2011-11-29] Michael Granger <ged@FaerieMUD.org>
|
2
12
|
|
3
13
|
- Add a workaround for Time objects used in generalizedTime fields,
|
data/lib/treequel/branch.rb
CHANGED
@@ -440,6 +440,14 @@ class Treequel::Branch
|
|
440
440
|
end
|
441
441
|
|
442
442
|
|
443
|
+
### Comparison-by-value method -- returns +true+ if the receiver has the same DN as
|
444
|
+
### +other+.
|
445
|
+
def eql?( other )
|
446
|
+
return false unless other.class.eql?( self.class )
|
447
|
+
return self.dn == other.dn
|
448
|
+
end
|
449
|
+
|
450
|
+
|
443
451
|
### Comparable interface: Returns -1 if other_branch is less than, 0 if +other_branch+ is
|
444
452
|
### equal to, and +1 if +other_branch+ is greater than the receiving Branch.
|
445
453
|
def <=>( other_branch )
|
data/lib/treequel.rb
CHANGED
@@ -26,10 +26,10 @@ end
|
|
26
26
|
module Treequel
|
27
27
|
|
28
28
|
# Library version
|
29
|
-
VERSION = '1.
|
29
|
+
VERSION = '1.8.0'
|
30
30
|
|
31
31
|
# VCS revision
|
32
|
-
REVISION = %q$Revision:
|
32
|
+
REVISION = %q$Revision: fa0d500e2dee $
|
33
33
|
|
34
34
|
# Common paths for ldap.conf
|
35
35
|
COMMON_LDAP_CONF_PATHS = %w[
|
@@ -160,6 +160,19 @@ describe Treequel::Branch do
|
|
160
160
|
( child <=> @branch ).should == -1
|
161
161
|
end
|
162
162
|
|
163
|
+
it "compares as equal-by-value with another instance with the same DN" do
|
164
|
+
clone = Treequel::Branch.new( @directory, TEST_HOSTS_DN )
|
165
|
+
|
166
|
+
@branch.should be_eql( clone )
|
167
|
+
clone.should be_eql( @branch )
|
168
|
+
end
|
169
|
+
|
170
|
+
it "compares as not equal-by-value with another instance with a different DN" do
|
171
|
+
other = Treequel::Branch.new( @directory, TEST_HOST_DN )
|
172
|
+
|
173
|
+
@branch.should_not be_eql( other )
|
174
|
+
other.should_not be_eql( @branch )
|
175
|
+
end
|
163
176
|
|
164
177
|
it "knows that it hasn't loaded its entry yet if it's nil" do
|
165
178
|
@branch.loaded?.should be_false()
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: treequel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 55
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 1.
|
8
|
+
- 8
|
9
|
+
- 0
|
10
|
+
version: 1.8.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Michael Granger
|
@@ -36,7 +36,7 @@ cert_chain:
|
|
36
36
|
cmlhXe46pZNJgWKbxZah85jIjx95hR8vOI+NAM5iH9kOqK13DrxacTKPhqj5PjwF
|
37
37
|
-----END CERTIFICATE-----
|
38
38
|
|
39
|
-
date: 2011-
|
39
|
+
date: 2011-12-05 00:00:00 Z
|
40
40
|
dependencies:
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: ruby-ldap
|
metadata.gz.sig
CHANGED
Binary file
|