treequel 1.8.0 → 1.8.1

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.
data/History.rdoc CHANGED
@@ -1,3 +1,13 @@
1
+ == v1.8.1 [2011-12-05] Michael Granger <ged@FaerieMUD.org>
2
+
3
+ - Fixed #eql? implementation by using the hash-value instead of just
4
+ comparing DNs.
5
+
6
+
7
+ == v1.8.0 [2011-12-05] Michael Granger <ged@FaerieMUD.org>
8
+
9
+ - Added signature for changeset fa0d500e2dee
10
+
1
11
  == v1.8.0 [2011-12-05] Michael Granger <ged@FaerieMUD.org>
2
12
 
3
13
  - Implemented #eql? for Treequel::Branch for correct behavior in
@@ -444,7 +444,13 @@ class Treequel::Branch
444
444
  ### +other+.
445
445
  def eql?( other )
446
446
  return false unless other.class.eql?( self.class )
447
- return self.dn == other.dn
447
+ return self.hash == other.hash
448
+ end
449
+
450
+
451
+ ### Generates a Fixnum hash for the receiver.
452
+ def hash
453
+ return [ self.class, self.dn ].hash
448
454
  end
449
455
 
450
456
 
data/lib/treequel.rb CHANGED
@@ -26,10 +26,10 @@ end
26
26
  module Treequel
27
27
 
28
28
  # Library version
29
- VERSION = '1.8.0'
29
+ VERSION = '1.8.1'
30
30
 
31
31
  # VCS revision
32
- REVISION = %q$Revision: fa0d500e2dee $
32
+ REVISION = %q$Revision: 507d14777c50 $
33
33
 
34
34
  # Common paths for ldap.conf
35
35
  COMMON_LDAP_CONF_PATHS = %w[
@@ -174,6 +174,20 @@ describe Treequel::Branch do
174
174
  other.should_not be_eql( @branch )
175
175
  end
176
176
 
177
+ it "hash-compares as equal with another instances with the same DN" do
178
+ clone = Treequel::Branch.new( @directory, TEST_HOSTS_DN )
179
+ @branch.hash.should == clone.hash
180
+ end
181
+
182
+ it "has a hash value different than its DN string" do
183
+ @branch.hash.should_not == @branch.dn.hash
184
+ end
185
+
186
+ it "compares as not equal-by-value with another instance with a different DN" do
187
+ other = Treequel::Branch.new( @directory, TEST_HOST_DN )
188
+ @branch.hash.should_not == other.hash
189
+ end
190
+
177
191
  it "knows that it hasn't loaded its entry yet if it's nil" do
178
192
  @branch.loaded?.should be_false()
179
193
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,231 +1,205 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: treequel
3
- version: !ruby/object:Gem::Version
4
- hash: 55
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.8.1
5
5
  prerelease:
6
- segments:
7
- - 1
8
- - 8
9
- - 0
10
- version: 1.8.0
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Michael Granger
14
9
  - Mahlon E. Smith
15
10
  autorequire:
16
11
  bindir: bin
17
- cert_chain:
18
- - |
19
- -----BEGIN CERTIFICATE-----
12
+ cert_chain:
13
+ - ! '-----BEGIN CERTIFICATE-----
14
+
20
15
  MIIDLDCCAhSgAwIBAgIBADANBgkqhkiG9w0BAQUFADA8MQwwCgYDVQQDDANnZWQx
16
+
21
17
  FzAVBgoJkiaJk/IsZAEZFgdfYWVyaWVfMRMwEQYKCZImiZPyLGQBGRYDb3JnMB4X
18
+
22
19
  DTEwMDkxNjE0NDg1MVoXDTExMDkxNjE0NDg1MVowPDEMMAoGA1UEAwwDZ2VkMRcw
20
+
23
21
  FQYKCZImiZPyLGQBGRYHX2FlcmllXzETMBEGCgmSJomT8ixkARkWA29yZzCCASIw
22
+
24
23
  DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALy//BFxC1f/cPSnwtJBWoFiFrir
24
+
25
25
  h7RicI+joq/ocVXQqI4TDWPyF/8tqkvt+rD99X9qs2YeR8CU/YiIpLWrQOYST70J
26
+
26
27
  vDn7Uvhb2muFVqq6+vobeTkILBEO6pionWDG8jSbo3qKm1RjKJDwg9p4wNKhPuu8
28
+
27
29
  KGue/BFb67KflqyApPmPeb3Vdd9clspzqeFqp7cUBMEpFS6LWxy4Gk+qvFFJBJLB
30
+
28
31
  BUHE/LZVJMVzfpC5Uq+QmY7B+FH/QqNndn3tOHgsPadLTNimuB1sCuL1a4z3Pepd
32
+
29
33
  TeLBEFmEao5Dk3K/Q8o8vlbIB/jBDTUx6Djbgxw77909x6gI9doU4LD5XMcCAwEA
34
+
30
35
  AaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFJeoGkOr9l4B
36
+
31
37
  +saMkW/ZXT4UeSvVMA0GCSqGSIb3DQEBBQUAA4IBAQBG2KObvYI2eHyyBUJSJ3jN
38
+
32
39
  vEnU3d60znAXbrSd2qb3r1lY1EPDD3bcy0MggCfGdg3Xu54z21oqyIdk8uGtWBPL
40
+
33
41
  HIa9EgfFGSUEgvcIvaYqiN4jTUtidfEFw+Ltjs8AP9gWgSIYS6Gr38V0WGFFNzIH
42
+
34
43
  aOD2wmu9oo/RffW4hS/8GuvfMzcw7CQ355wFR4KB/nyze+EsZ1Y5DerCAagMVuDQ
44
+
35
45
  U0BLmWDFzPGGWlPeQCrYHCr+AcJz+NRnaHCKLZdSKj/RHuTOt+gblRex8FAh8NeA
46
+
36
47
  cmlhXe46pZNJgWKbxZah85jIjx95hR8vOI+NAM5iH9kOqK13DrxacTKPhqj5PjwF
48
+
37
49
  -----END CERTIFICATE-----
38
50
 
39
- date: 2011-12-05 00:00:00 Z
40
- dependencies:
41
- - !ruby/object:Gem::Dependency
51
+ '
52
+ date: 2011-12-05 00:00:00.000000000 Z
53
+ dependencies:
54
+ - !ruby/object:Gem::Dependency
42
55
  name: ruby-ldap
43
- prerelease: false
44
- requirement: &id001 !ruby/object:Gem::Requirement
56
+ requirement: &70360852962800 !ruby/object:Gem::Requirement
45
57
  none: false
46
- requirements:
58
+ requirements:
47
59
  - - ~>
48
- - !ruby/object:Gem::Version
49
- hash: 25
50
- segments:
51
- - 0
52
- - 9
53
- version: "0.9"
60
+ - !ruby/object:Gem::Version
61
+ version: '0.9'
54
62
  type: :runtime
55
- version_requirements: *id001
56
- - !ruby/object:Gem::Dependency
57
- name: diff-lcs
58
63
  prerelease: false
59
- requirement: &id002 !ruby/object:Gem::Requirement
64
+ version_requirements: *70360852962800
65
+ - !ruby/object:Gem::Dependency
66
+ name: diff-lcs
67
+ requirement: &70360852962380 !ruby/object:Gem::Requirement
60
68
  none: false
61
- requirements:
69
+ requirements:
62
70
  - - ~>
63
- - !ruby/object:Gem::Version
64
- hash: 13
65
- segments:
66
- - 1
67
- - 1
68
- version: "1.1"
71
+ - !ruby/object:Gem::Version
72
+ version: '1.1'
69
73
  type: :runtime
70
- version_requirements: *id002
71
- - !ruby/object:Gem::Dependency
72
- name: hoe-mercurial
73
74
  prerelease: false
74
- requirement: &id003 !ruby/object:Gem::Requirement
75
+ version_requirements: *70360852962380
76
+ - !ruby/object:Gem::Dependency
77
+ name: hoe-mercurial
78
+ requirement: &70360852961960 !ruby/object:Gem::Requirement
75
79
  none: false
76
- requirements:
80
+ requirements:
77
81
  - - ~>
78
- - !ruby/object:Gem::Version
79
- hash: 25
80
- segments:
81
- - 1
82
- - 3
83
- - 1
82
+ - !ruby/object:Gem::Version
84
83
  version: 1.3.1
85
84
  type: :development
86
- version_requirements: *id003
87
- - !ruby/object:Gem::Dependency
88
- name: hoe-highline
89
85
  prerelease: false
90
- requirement: &id004 !ruby/object:Gem::Requirement
86
+ version_requirements: *70360852961960
87
+ - !ruby/object:Gem::Dependency
88
+ name: hoe-manualgen
89
+ requirement: &70360852961500 !ruby/object:Gem::Requirement
91
90
  none: false
92
- requirements:
91
+ requirements:
93
92
  - - ~>
94
- - !ruby/object:Gem::Version
95
- hash: 29
96
- segments:
97
- - 0
98
- - 0
99
- - 1
93
+ - !ruby/object:Gem::Version
94
+ version: 0.2.0
95
+ type: :development
96
+ prerelease: false
97
+ version_requirements: *70360852961500
98
+ - !ruby/object:Gem::Dependency
99
+ name: hoe-highline
100
+ requirement: &70360852961080 !ruby/object:Gem::Requirement
101
+ none: false
102
+ requirements:
103
+ - - ~>
104
+ - !ruby/object:Gem::Version
100
105
  version: 0.0.1
101
106
  type: :development
102
- version_requirements: *id004
103
- - !ruby/object:Gem::Dependency
104
- name: rspec
105
107
  prerelease: false
106
- requirement: &id005 !ruby/object:Gem::Requirement
108
+ version_requirements: *70360852961080
109
+ - !ruby/object:Gem::Dependency
110
+ name: rspec
111
+ requirement: &70360852960620 !ruby/object:Gem::Requirement
107
112
  none: false
108
- requirements:
113
+ requirements:
109
114
  - - ~>
110
- - !ruby/object:Gem::Version
111
- hash: 13
112
- segments:
113
- - 2
114
- - 7
115
- version: "2.7"
115
+ - !ruby/object:Gem::Version
116
+ version: '2.7'
116
117
  type: :development
117
- version_requirements: *id005
118
- - !ruby/object:Gem::Dependency
119
- name: ruby-termios
120
118
  prerelease: false
121
- requirement: &id006 !ruby/object:Gem::Requirement
119
+ version_requirements: *70360852960620
120
+ - !ruby/object:Gem::Dependency
121
+ name: ruby-termios
122
+ requirement: &70360852960200 !ruby/object:Gem::Requirement
122
123
  none: false
123
- requirements:
124
+ requirements:
124
125
  - - ~>
125
- - !ruby/object:Gem::Version
126
- hash: 25
127
- segments:
128
- - 0
129
- - 9
130
- version: "0.9"
126
+ - !ruby/object:Gem::Version
127
+ version: '0.9'
131
128
  type: :development
132
- version_requirements: *id006
133
- - !ruby/object:Gem::Dependency
134
- name: ruby-terminfo
135
129
  prerelease: false
136
- requirement: &id007 !ruby/object:Gem::Requirement
130
+ version_requirements: *70360852960200
131
+ - !ruby/object:Gem::Dependency
132
+ name: ruby-terminfo
133
+ requirement: &70360852959780 !ruby/object:Gem::Requirement
137
134
  none: false
138
- requirements:
135
+ requirements:
139
136
  - - ~>
140
- - !ruby/object:Gem::Version
141
- hash: 9
142
- segments:
143
- - 0
144
- - 1
145
- version: "0.1"
137
+ - !ruby/object:Gem::Version
138
+ version: '0.1'
146
139
  type: :development
147
- version_requirements: *id007
148
- - !ruby/object:Gem::Dependency
149
- name: columnize
150
140
  prerelease: false
151
- requirement: &id008 !ruby/object:Gem::Requirement
141
+ version_requirements: *70360852959780
142
+ - !ruby/object:Gem::Dependency
143
+ name: columnize
144
+ requirement: &70360852959360 !ruby/object:Gem::Requirement
152
145
  none: false
153
- requirements:
146
+ requirements:
154
147
  - - ~>
155
- - !ruby/object:Gem::Version
156
- hash: 13
157
- segments:
158
- - 0
159
- - 3
160
- version: "0.3"
148
+ - !ruby/object:Gem::Version
149
+ version: '0.3'
161
150
  type: :development
162
- version_requirements: *id008
163
- - !ruby/object:Gem::Dependency
164
- name: sysexits
165
151
  prerelease: false
166
- requirement: &id009 !ruby/object:Gem::Requirement
152
+ version_requirements: *70360852959360
153
+ - !ruby/object:Gem::Dependency
154
+ name: sysexits
155
+ requirement: &70360852958940 !ruby/object:Gem::Requirement
167
156
  none: false
168
- requirements:
157
+ requirements:
169
158
  - - ~>
170
- - !ruby/object:Gem::Version
171
- hash: 15
172
- segments:
173
- - 1
174
- - 0
175
- version: "1.0"
159
+ - !ruby/object:Gem::Version
160
+ version: '1.0'
176
161
  type: :development
177
- version_requirements: *id009
178
- - !ruby/object:Gem::Dependency
179
- name: sequel
180
162
  prerelease: false
181
- requirement: &id010 !ruby/object:Gem::Requirement
163
+ version_requirements: *70360852958940
164
+ - !ruby/object:Gem::Dependency
165
+ name: sequel
166
+ requirement: &70360852958520 !ruby/object:Gem::Requirement
182
167
  none: false
183
- requirements:
168
+ requirements:
184
169
  - - ~>
185
- - !ruby/object:Gem::Version
186
- hash: 47
187
- segments:
188
- - 3
189
- - 20
190
- version: "3.20"
170
+ - !ruby/object:Gem::Version
171
+ version: '3.20'
191
172
  type: :development
192
- version_requirements: *id010
193
- - !ruby/object:Gem::Dependency
194
- name: hoe
195
173
  prerelease: false
196
- requirement: &id011 !ruby/object:Gem::Requirement
174
+ version_requirements: *70360852958520
175
+ - !ruby/object:Gem::Dependency
176
+ name: hoe
177
+ requirement: &70360852958100 !ruby/object:Gem::Requirement
197
178
  none: false
198
- requirements:
179
+ requirements:
199
180
  - - ~>
200
- - !ruby/object:Gem::Version
201
- hash: 27
202
- segments:
203
- - 2
204
- - 12
205
- version: "2.12"
181
+ - !ruby/object:Gem::Version
182
+ version: '2.12'
206
183
  type: :development
207
- version_requirements: *id011
208
- description: |-
209
- Treequel is an LDAP toolkit for Ruby. It is intended to allow quick, easy
210
- access to LDAP directories in a manner consistent with LDAP's hierarchical,
211
- free-form nature.
212
-
213
- It's inspired by and modeled after [Sequel](http://sequel.rubyforge.org/), a
214
- kick-ass database library.
215
- email:
184
+ prerelease: false
185
+ version_requirements: *70360852958100
186
+ description: ! "Treequel is an LDAP toolkit for Ruby. It is intended to allow quick,
187
+ easy\naccess to LDAP directories in a manner consistent with LDAP's hierarchical,\nfree-form
188
+ nature. \n\nIt's inspired by and modeled after [Sequel](http://sequel.rubyforge.org/),
189
+ a\nkick-ass database library."
190
+ email:
216
191
  - ged@FaerieMUD.org
217
192
  - mahlon@martini.nu
218
- executables:
193
+ executables:
219
194
  - treeirb
220
195
  - treequel
221
196
  - treewhat
222
197
  extensions: []
223
-
224
- extra_rdoc_files:
198
+ extra_rdoc_files:
225
199
  - Manifest.txt
226
200
  - History.rdoc
227
201
  - README.rdoc
228
- files:
202
+ files:
229
203
  - .gemtest
230
204
  - ChangeLog
231
205
  - History.rdoc
@@ -299,50 +273,33 @@ files:
299
273
  - spec/treequel/schema_spec.rb
300
274
  - spec/treequel_spec.rb
301
275
  homepage: http://deveiate.org/projects/Treequel
302
- licenses:
276
+ licenses:
303
277
  - BSD
304
- post_install_message: |-
305
- If you want to use the included 'treequel' LDAP shell, you'll need to install
306
- the following libraries as well:
307
-
308
- - ruby-termios
309
- - ruby-terminfo
310
- - columnize
311
- - sysexits
312
-
313
- You can install them automatically if you use the --development flag when
314
- installing Treequel.
315
- rdoc_options:
278
+ post_install_message: ! "If you want to use the included 'treequel' LDAP shell, you'll
279
+ need to install\nthe following libraries as well:\n\n - ruby-termios\n - ruby-terminfo\n
280
+ \ - columnize\n - sysexits\n\nYou can install them automatically if you use
281
+ the --development flag when\ninstalling Treequel."
282
+ rdoc_options:
316
283
  - --main
317
284
  - README.rdoc
318
- require_paths:
285
+ require_paths:
319
286
  - lib
320
- required_ruby_version: !ruby/object:Gem::Requirement
287
+ required_ruby_version: !ruby/object:Gem::Requirement
321
288
  none: false
322
- requirements:
323
- - - ">="
324
- - !ruby/object:Gem::Version
325
- hash: 57
326
- segments:
327
- - 1
328
- - 8
329
- - 7
289
+ requirements:
290
+ - - ! '>='
291
+ - !ruby/object:Gem::Version
330
292
  version: 1.8.7
331
- required_rubygems_version: !ruby/object:Gem::Requirement
293
+ required_rubygems_version: !ruby/object:Gem::Requirement
332
294
  none: false
333
- requirements:
334
- - - ">="
335
- - !ruby/object:Gem::Version
336
- hash: 3
337
- segments:
338
- - 0
339
- version: "0"
295
+ requirements:
296
+ - - ! '>='
297
+ - !ruby/object:Gem::Version
298
+ version: '0'
340
299
  requirements: []
341
-
342
300
  rubyforge_project: treequel
343
301
  rubygems_version: 1.8.11
344
302
  signing_key:
345
303
  specification_version: 3
346
304
  summary: Treequel is an LDAP toolkit for Ruby
347
305
  test_files: []
348
-
metadata.gz.sig CHANGED
Binary file