net-ldap 0.15.0 → 0.19.0
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.
- checksums.yaml +5 -5
- data/History.rdoc +76 -0
- data/README.rdoc +18 -8
- data/lib/net/ber/ber_parser.rb +3 -3
- data/lib/net/ber/core_ext.rb +6 -6
- data/lib/net/ber.rb +5 -6
- data/lib/net/ldap/auth_adapter/gss_spnego.rb +2 -2
- data/lib/net/ldap/auth_adapter/sasl.rb +4 -2
- data/lib/net/ldap/auth_adapter/simple.rb +1 -1
- data/lib/net/ldap/connection.rb +57 -46
- data/lib/net/ldap/dataset.rb +1 -3
- data/lib/net/ldap/dn.rb +21 -30
- data/lib/net/ldap/entry.rb +15 -7
- data/lib/net/ldap/error.rb +2 -26
- data/lib/net/ldap/filter.rb +10 -3
- data/lib/net/ldap/instrumentation.rb +2 -2
- data/lib/net/ldap/password.rb +7 -5
- data/lib/net/ldap/pdu.rb +1 -1
- data/lib/net/ldap/version.rb +1 -1
- data/lib/net/ldap.rb +93 -58
- data/lib/net/snmp.rb +1 -1
- data/lib/net-ldap.rb +1 -1
- metadata +16 -101
- data/.gitignore +0 -9
- data/.rubocop.yml +0 -17
- data/.rubocop_todo.yml +0 -599
- data/.travis.yml +0 -33
- data/CONTRIBUTING.md +0 -54
- data/Gemfile +0 -2
- data/Rakefile +0 -23
- data/net-ldap.gemspec +0 -37
- data/script/changelog +0 -47
- data/script/install-openldap +0 -115
- data/script/package +0 -7
- data/script/release +0 -16
- data/test/ber/core_ext/test_array.rb +0 -22
- data/test/ber/core_ext/test_string.rb +0 -25
- data/test/ber/test_ber.rb +0 -153
- data/test/fixtures/cacert.pem +0 -20
- data/test/fixtures/openldap/memberof.ldif +0 -33
- data/test/fixtures/openldap/retcode.ldif +0 -76
- data/test/fixtures/openldap/slapd.conf.ldif +0 -67
- data/test/fixtures/seed.ldif +0 -374
- data/test/integration/test_add.rb +0 -28
- data/test/integration/test_ber.rb +0 -30
- data/test/integration/test_bind.rb +0 -42
- data/test/integration/test_delete.rb +0 -31
- data/test/integration/test_open.rb +0 -88
- data/test/integration/test_password_modify.rb +0 -80
- data/test/integration/test_return_codes.rb +0 -38
- data/test/integration/test_search.rb +0 -77
- data/test/support/vm/openldap/.gitignore +0 -1
- data/test/support/vm/openldap/README.md +0 -32
- data/test/support/vm/openldap/Vagrantfile +0 -33
- data/test/test_auth_adapter.rb +0 -15
- data/test/test_dn.rb +0 -44
- data/test/test_entry.rb +0 -65
- data/test/test_filter.rb +0 -223
- data/test/test_filter_parser.rb +0 -24
- data/test/test_helper.rb +0 -66
- data/test/test_ldap.rb +0 -114
- data/test/test_ldap_connection.rb +0 -493
- data/test/test_ldif.rb +0 -104
- data/test/test_password.rb +0 -10
- data/test/test_rename.rb +0 -77
- data/test/test_search.rb +0 -39
- data/test/test_snmp.rb +0 -119
- data/test/test_ssl_ber.rb +0 -40
- data/test/testdata.ldif +0 -101
- data/testserver/ldapserver.rb +0 -209
- data/testserver/testdata.ldif +0 -101
data/.rubocop_todo.yml
DELETED
@@ -1,599 +0,0 @@
|
|
1
|
-
# This configuration was generated by
|
2
|
-
# `rubocop --auto-gen-config`
|
3
|
-
# on 2016-01-08 11:47:42 -0800 using RuboCop version 0.35.0.
|
4
|
-
# The point is for the user to remove these configuration records
|
5
|
-
# one by one as the offenses are removed from the code base.
|
6
|
-
# Note that changes in the inspected code, or installation of new
|
7
|
-
# versions of RuboCop, may require this file to be generated again.
|
8
|
-
|
9
|
-
# Offense count: 1
|
10
|
-
# Cop supports --auto-correct.
|
11
|
-
# Configuration parameters: AlignWith, SupportedStyles, AutoCorrect.
|
12
|
-
Lint/EndAlignment:
|
13
|
-
Enabled: false
|
14
|
-
|
15
|
-
# Offense count: 1
|
16
|
-
Lint/NonLocalExitFromIterator:
|
17
|
-
Exclude:
|
18
|
-
- 'lib/net/ldap/connection.rb'
|
19
|
-
|
20
|
-
# Offense count: 1
|
21
|
-
Lint/RescueException:
|
22
|
-
Exclude:
|
23
|
-
- 'lib/net/ldap/pdu.rb'
|
24
|
-
|
25
|
-
# Offense count: 1
|
26
|
-
Lint/ShadowingOuterLocalVariable:
|
27
|
-
Exclude:
|
28
|
-
- 'lib/net/ldap/instrumentation.rb'
|
29
|
-
|
30
|
-
# Offense count: 10
|
31
|
-
# Cop supports --auto-correct.
|
32
|
-
# Configuration parameters: IgnoreEmptyBlocks.
|
33
|
-
Lint/UnusedBlockArgument:
|
34
|
-
Exclude:
|
35
|
-
- 'lib/net/ldap.rb'
|
36
|
-
- 'lib/net/snmp.rb'
|
37
|
-
- 'test/support/vm/openldap/Vagrantfile'
|
38
|
-
|
39
|
-
# Offense count: 3
|
40
|
-
# Cop supports --auto-correct.
|
41
|
-
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
|
42
|
-
Lint/UnusedMethodArgument:
|
43
|
-
Exclude:
|
44
|
-
- 'lib/net/ldap/entry.rb'
|
45
|
-
- 'lib/net/ldap/pdu.rb'
|
46
|
-
- 'test/test_search.rb'
|
47
|
-
|
48
|
-
# Offense count: 9
|
49
|
-
Lint/UselessAssignment:
|
50
|
-
Exclude:
|
51
|
-
- 'lib/net/ldap/connection.rb'
|
52
|
-
- 'lib/net/ldap/password.rb'
|
53
|
-
- 'test/integration/test_add.rb'
|
54
|
-
- 'test/test_ldap_connection.rb'
|
55
|
-
- 'test/test_search.rb'
|
56
|
-
- 'test/test_snmp.rb'
|
57
|
-
|
58
|
-
# Offense count: 48
|
59
|
-
Metrics/AbcSize:
|
60
|
-
Max: 114
|
61
|
-
|
62
|
-
# Offense count: 11
|
63
|
-
Metrics/BlockNesting:
|
64
|
-
Max: 4
|
65
|
-
|
66
|
-
# Offense count: 10
|
67
|
-
# Configuration parameters: CountComments.
|
68
|
-
Metrics/ClassLength:
|
69
|
-
Max: 423
|
70
|
-
|
71
|
-
# Offense count: 21
|
72
|
-
Metrics/CyclomaticComplexity:
|
73
|
-
Max: 41
|
74
|
-
|
75
|
-
# Offense count: 229
|
76
|
-
# Configuration parameters: AllowURI, URISchemes.
|
77
|
-
Metrics/LineLength:
|
78
|
-
Max: 360
|
79
|
-
|
80
|
-
# Offense count: 71
|
81
|
-
# Configuration parameters: CountComments.
|
82
|
-
Metrics/MethodLength:
|
83
|
-
Max: 130
|
84
|
-
|
85
|
-
# Offense count: 1
|
86
|
-
# Configuration parameters: CountComments.
|
87
|
-
Metrics/ModuleLength:
|
88
|
-
Max: 104
|
89
|
-
|
90
|
-
# Offense count: 13
|
91
|
-
Metrics/PerceivedComplexity:
|
92
|
-
Max: 37
|
93
|
-
|
94
|
-
# Offense count: 1
|
95
|
-
Style/AccessorMethodName:
|
96
|
-
Exclude:
|
97
|
-
- 'lib/net/ldap.rb'
|
98
|
-
|
99
|
-
# Offense count: 4
|
100
|
-
# Cop supports --auto-correct.
|
101
|
-
Style/AlignArray:
|
102
|
-
Exclude:
|
103
|
-
- 'lib/net/ldap.rb'
|
104
|
-
- 'lib/net/ldap/auth_adapter/sasl.rb'
|
105
|
-
- 'lib/net/ldap/connection.rb'
|
106
|
-
|
107
|
-
# Offense count: 10
|
108
|
-
# Cop supports --auto-correct.
|
109
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
110
|
-
Style/AlignParameters:
|
111
|
-
Exclude:
|
112
|
-
- 'test/ber/test_ber.rb'
|
113
|
-
- 'test/integration/test_ber.rb'
|
114
|
-
- 'test/integration/test_bind.rb'
|
115
|
-
- 'test/integration/test_password_modify.rb'
|
116
|
-
|
117
|
-
# Offense count: 37
|
118
|
-
# Cop supports --auto-correct.
|
119
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
120
|
-
Style/AndOr:
|
121
|
-
Exclude:
|
122
|
-
- 'lib/net/ber/ber_parser.rb'
|
123
|
-
- 'lib/net/ldap.rb'
|
124
|
-
- 'lib/net/ldap/connection.rb'
|
125
|
-
- 'lib/net/ldap/dataset.rb'
|
126
|
-
- 'lib/net/ldap/filter.rb'
|
127
|
-
- 'lib/net/ldap/pdu.rb'
|
128
|
-
- 'testserver/ldapserver.rb'
|
129
|
-
|
130
|
-
# Offense count: 1
|
131
|
-
# Cop supports --auto-correct.
|
132
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
133
|
-
Style/BarePercentLiterals:
|
134
|
-
Exclude:
|
135
|
-
- 'test/test_entry.rb'
|
136
|
-
|
137
|
-
# Offense count: 1
|
138
|
-
# Cop supports --auto-correct.
|
139
|
-
Style/BlockComments:
|
140
|
-
Exclude:
|
141
|
-
- 'test/test_rename.rb'
|
142
|
-
|
143
|
-
# Offense count: 9
|
144
|
-
# Cop supports --auto-correct.
|
145
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
146
|
-
Style/BracesAroundHashParameters:
|
147
|
-
Exclude:
|
148
|
-
- 'lib/net/ldap/auth_adapter/gss_spnego.rb'
|
149
|
-
- 'lib/net/snmp.rb'
|
150
|
-
- 'test/test_auth_adapter.rb'
|
151
|
-
- 'test/test_ldap_connection.rb'
|
152
|
-
|
153
|
-
# Offense count: 4
|
154
|
-
# Cop supports --auto-correct.
|
155
|
-
# Configuration parameters: IndentWhenRelativeTo, SupportedStyles, IndentOneStep.
|
156
|
-
Style/CaseIndentation:
|
157
|
-
Enabled: false
|
158
|
-
|
159
|
-
# Offense count: 4
|
160
|
-
# Cop supports --auto-correct.
|
161
|
-
Style/CharacterLiteral:
|
162
|
-
Exclude:
|
163
|
-
- 'lib/net/ldap/dataset.rb'
|
164
|
-
- 'lib/net/ldap/entry.rb'
|
165
|
-
|
166
|
-
# Offense count: 1
|
167
|
-
Style/ClassAndModuleCamelCase:
|
168
|
-
Exclude:
|
169
|
-
- 'lib/net/ldap/auth_adapter/gss_spnego.rb'
|
170
|
-
|
171
|
-
# Offense count: 23
|
172
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
173
|
-
Style/ClassAndModuleChildren:
|
174
|
-
Enabled: false
|
175
|
-
|
176
|
-
# Offense count: 2
|
177
|
-
# Cop supports --auto-correct.
|
178
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
179
|
-
Style/ClassCheck:
|
180
|
-
Exclude:
|
181
|
-
- 'lib/net/ber/core_ext/array.rb'
|
182
|
-
- 'lib/net/ldap/error.rb'
|
183
|
-
|
184
|
-
# Offense count: 13
|
185
|
-
# Cop supports --auto-correct.
|
186
|
-
Style/ColonMethodCall:
|
187
|
-
Exclude:
|
188
|
-
- 'test/test_ldif.rb'
|
189
|
-
- 'test/test_ssl_ber.rb'
|
190
|
-
|
191
|
-
# Offense count: 1
|
192
|
-
# Cop supports --auto-correct.
|
193
|
-
# Configuration parameters: Keywords.
|
194
|
-
Style/CommentAnnotation:
|
195
|
-
Exclude:
|
196
|
-
- 'lib/net/ber.rb'
|
197
|
-
|
198
|
-
# Offense count: 88
|
199
|
-
Style/ConstantName:
|
200
|
-
Exclude:
|
201
|
-
- 'lib/net/ldap.rb'
|
202
|
-
- 'lib/net/ldap/connection.rb'
|
203
|
-
- 'lib/net/ldap/filter.rb'
|
204
|
-
- 'lib/net/ldap/pdu.rb'
|
205
|
-
- 'lib/net/snmp.rb'
|
206
|
-
- 'test/test_ldif.rb'
|
207
|
-
- 'testserver/ldapserver.rb'
|
208
|
-
|
209
|
-
# Offense count: 21
|
210
|
-
# Configuration parameters: Exclude.
|
211
|
-
Style/Documentation:
|
212
|
-
Exclude:
|
213
|
-
- 'spec/**/*'
|
214
|
-
- 'test/**/*'
|
215
|
-
- 'lib/net/ber.rb'
|
216
|
-
- 'lib/net/ber/core_ext.rb'
|
217
|
-
- 'lib/net/ldap.rb'
|
218
|
-
- 'lib/net/ldap/auth_adapter.rb'
|
219
|
-
- 'lib/net/ldap/auth_adapter/sasl.rb'
|
220
|
-
- 'lib/net/ldap/auth_adapter/simple.rb'
|
221
|
-
- 'lib/net/ldap/connection.rb'
|
222
|
-
- 'lib/net/ldap/error.rb'
|
223
|
-
- 'lib/net/ldap/instrumentation.rb'
|
224
|
-
- 'lib/net/ldap/password.rb'
|
225
|
-
- 'lib/net/ldap/pdu.rb'
|
226
|
-
- 'lib/net/ldap/version.rb'
|
227
|
-
- 'lib/net/snmp.rb'
|
228
|
-
- 'testserver/ldapserver.rb'
|
229
|
-
|
230
|
-
# Offense count: 23
|
231
|
-
# Cop supports --auto-correct.
|
232
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
233
|
-
Style/DotPosition:
|
234
|
-
Enabled: false
|
235
|
-
|
236
|
-
# Offense count: 1
|
237
|
-
# Cop supports --auto-correct.
|
238
|
-
Style/ElseAlignment:
|
239
|
-
Exclude:
|
240
|
-
- 'testserver/ldapserver.rb'
|
241
|
-
|
242
|
-
# Offense count: 5
|
243
|
-
# Cop supports --auto-correct.
|
244
|
-
# Configuration parameters: AllowAdjacentOneLineDefs.
|
245
|
-
Style/EmptyLineBetweenDefs:
|
246
|
-
Exclude:
|
247
|
-
- 'lib/net/ldap.rb'
|
248
|
-
- 'lib/net/ldap/dataset.rb'
|
249
|
-
- 'lib/net/snmp.rb'
|
250
|
-
|
251
|
-
# Offense count: 8
|
252
|
-
# Cop supports --auto-correct.
|
253
|
-
Style/EmptyLines:
|
254
|
-
Exclude:
|
255
|
-
- 'lib/net/snmp.rb'
|
256
|
-
- 'testserver/ldapserver.rb'
|
257
|
-
|
258
|
-
# Offense count: 1
|
259
|
-
# Cop supports --auto-correct.
|
260
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
261
|
-
Style/EmptyLinesAroundClassBody:
|
262
|
-
Exclude:
|
263
|
-
- 'test/test_snmp.rb'
|
264
|
-
|
265
|
-
# Offense count: 2
|
266
|
-
# Cop supports --auto-correct.
|
267
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
268
|
-
Style/EmptyLinesAroundModuleBody:
|
269
|
-
Exclude:
|
270
|
-
- 'testserver/ldapserver.rb'
|
271
|
-
|
272
|
-
# Offense count: 3
|
273
|
-
# Cop supports --auto-correct.
|
274
|
-
Style/EvenOdd:
|
275
|
-
Exclude:
|
276
|
-
- 'lib/net/ldap/dn.rb'
|
277
|
-
|
278
|
-
# Offense count: 1
|
279
|
-
# Configuration parameters: Exclude.
|
280
|
-
Style/FileName:
|
281
|
-
Exclude:
|
282
|
-
- 'lib/net-ldap.rb'
|
283
|
-
|
284
|
-
# Offense count: 9
|
285
|
-
# Configuration parameters: AllowedVariables.
|
286
|
-
Style/GlobalVars:
|
287
|
-
Exclude:
|
288
|
-
- 'testserver/ldapserver.rb'
|
289
|
-
|
290
|
-
# Offense count: 4
|
291
|
-
# Configuration parameters: MinBodyLength.
|
292
|
-
Style/GuardClause:
|
293
|
-
Exclude:
|
294
|
-
- 'lib/net/ber.rb'
|
295
|
-
- 'lib/net/ldap/entry.rb'
|
296
|
-
- 'lib/net/ldap/filter.rb'
|
297
|
-
|
298
|
-
# Offense count: 149
|
299
|
-
# Cop supports --auto-correct.
|
300
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues.
|
301
|
-
Style/HashSyntax:
|
302
|
-
Enabled: false
|
303
|
-
|
304
|
-
# Offense count: 7
|
305
|
-
# Cop supports --auto-correct.
|
306
|
-
# Configuration parameters: MaxLineLength.
|
307
|
-
Style/IfUnlessModifier:
|
308
|
-
Exclude:
|
309
|
-
- 'lib/net/ber.rb'
|
310
|
-
- 'lib/net/ber/core_ext/integer.rb'
|
311
|
-
- 'lib/net/ldap.rb'
|
312
|
-
- 'lib/net/ldap/filter.rb'
|
313
|
-
- 'lib/net/snmp.rb'
|
314
|
-
|
315
|
-
# Offense count: 2
|
316
|
-
# Cop supports --auto-correct.
|
317
|
-
# Configuration parameters: SupportedStyles.
|
318
|
-
Style/IndentHash:
|
319
|
-
EnforcedStyle: consistent
|
320
|
-
|
321
|
-
# Offense count: 10
|
322
|
-
# Cop supports --auto-correct.
|
323
|
-
# Configuration parameters: Width.
|
324
|
-
Style/IndentationWidth:
|
325
|
-
Exclude:
|
326
|
-
- 'lib/net/ber.rb'
|
327
|
-
- 'lib/net/ldap/password.rb'
|
328
|
-
- 'lib/net/snmp.rb'
|
329
|
-
- 'test/test_snmp.rb'
|
330
|
-
- 'testserver/ldapserver.rb'
|
331
|
-
|
332
|
-
# Offense count: 3
|
333
|
-
# Cop supports --auto-correct.
|
334
|
-
Style/LeadingCommentSpace:
|
335
|
-
Exclude:
|
336
|
-
- 'lib/net/ber/core_ext/array.rb'
|
337
|
-
- 'lib/net/ldap.rb'
|
338
|
-
- 'lib/net/ldap/connection.rb'
|
339
|
-
|
340
|
-
# Offense count: 21
|
341
|
-
# Cop supports --auto-correct.
|
342
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
343
|
-
Style/MethodDefParentheses:
|
344
|
-
Enabled: false
|
345
|
-
|
346
|
-
# Offense count: 1
|
347
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
348
|
-
Style/MethodName:
|
349
|
-
Enabled: false
|
350
|
-
|
351
|
-
# Offense count: 5
|
352
|
-
# Cop supports --auto-correct.
|
353
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
354
|
-
Style/MultilineOperationIndentation:
|
355
|
-
Enabled: false
|
356
|
-
|
357
|
-
# Offense count: 1
|
358
|
-
Style/MultilineTernaryOperator:
|
359
|
-
Exclude:
|
360
|
-
- 'lib/net/ldap/connection.rb'
|
361
|
-
|
362
|
-
# Offense count: 1
|
363
|
-
# Cop supports --auto-correct.
|
364
|
-
Style/NegatedIf:
|
365
|
-
Exclude:
|
366
|
-
- 'test/test_helper.rb'
|
367
|
-
|
368
|
-
# Offense count: 1
|
369
|
-
# Cop supports --auto-correct.
|
370
|
-
Style/NegatedWhile:
|
371
|
-
Exclude:
|
372
|
-
- 'lib/net/ldap/filter.rb'
|
373
|
-
|
374
|
-
# Offense count: 3
|
375
|
-
# Cop supports --auto-correct.
|
376
|
-
# Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles.
|
377
|
-
Style/Next:
|
378
|
-
Exclude:
|
379
|
-
- 'lib/net/ldap/connection.rb'
|
380
|
-
- 'testserver/ldapserver.rb'
|
381
|
-
|
382
|
-
# Offense count: 1
|
383
|
-
# Cop supports --auto-correct.
|
384
|
-
Style/NilComparison:
|
385
|
-
Exclude:
|
386
|
-
- 'lib/net/ldap/connection.rb'
|
387
|
-
|
388
|
-
# Offense count: 1
|
389
|
-
# Cop supports --auto-correct.
|
390
|
-
# Configuration parameters: IncludeSemanticChanges.
|
391
|
-
Style/NonNilCheck:
|
392
|
-
Exclude:
|
393
|
-
- 'lib/net/ber/ber_parser.rb'
|
394
|
-
|
395
|
-
# Offense count: 1
|
396
|
-
# Cop supports --auto-correct.
|
397
|
-
Style/Not:
|
398
|
-
Exclude:
|
399
|
-
- 'lib/net/ldap/filter.rb'
|
400
|
-
|
401
|
-
# Offense count: 11
|
402
|
-
# Cop supports --auto-correct.
|
403
|
-
Style/NumericLiterals:
|
404
|
-
MinDigits: 8
|
405
|
-
|
406
|
-
# Offense count: 3
|
407
|
-
Style/OpMethod:
|
408
|
-
Exclude:
|
409
|
-
- 'lib/net/ldap/filter.rb'
|
410
|
-
|
411
|
-
# Offense count: 6
|
412
|
-
# Cop supports --auto-correct.
|
413
|
-
# Configuration parameters: AllowSafeAssignment.
|
414
|
-
Style/ParenthesesAroundCondition:
|
415
|
-
Exclude:
|
416
|
-
- 'lib/net/ldap.rb'
|
417
|
-
- 'lib/net/ldap/auth_adapter/gss_spnego.rb'
|
418
|
-
- 'lib/net/ldap/auth_adapter/sasl.rb'
|
419
|
-
- 'lib/net/ldap/auth_adapter/simple.rb'
|
420
|
-
|
421
|
-
# Offense count: 3
|
422
|
-
# Cop supports --auto-correct.
|
423
|
-
# Configuration parameters: PreferredDelimiters.
|
424
|
-
Style/PercentLiteralDelimiters:
|
425
|
-
Exclude:
|
426
|
-
- 'net-ldap.gemspec'
|
427
|
-
- 'test/test_entry.rb'
|
428
|
-
|
429
|
-
# Offense count: 11
|
430
|
-
# Cop supports --auto-correct.
|
431
|
-
Style/PerlBackrefs:
|
432
|
-
Exclude:
|
433
|
-
- 'lib/net/ldap/dataset.rb'
|
434
|
-
- 'lib/net/ldap/filter.rb'
|
435
|
-
- 'testserver/ldapserver.rb'
|
436
|
-
|
437
|
-
# Offense count: 10
|
438
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
439
|
-
Style/RaiseArgs:
|
440
|
-
Enabled: false
|
441
|
-
|
442
|
-
# Offense count: 1
|
443
|
-
# Cop supports --auto-correct.
|
444
|
-
Style/RedundantBegin:
|
445
|
-
Exclude:
|
446
|
-
- 'lib/net/snmp.rb'
|
447
|
-
|
448
|
-
# Offense count: 4
|
449
|
-
# Cop supports --auto-correct.
|
450
|
-
# Configuration parameters: AllowMultipleReturnValues.
|
451
|
-
Style/RedundantReturn:
|
452
|
-
Exclude:
|
453
|
-
- 'lib/net/ber/core_ext/string.rb'
|
454
|
-
- 'lib/net/ldap/auth_adapter.rb'
|
455
|
-
- 'lib/net/ldap/entry.rb'
|
456
|
-
- 'lib/net/ldap/password.rb'
|
457
|
-
|
458
|
-
# Offense count: 6
|
459
|
-
# Cop supports --auto-correct.
|
460
|
-
Style/RedundantSelf:
|
461
|
-
Exclude:
|
462
|
-
- 'lib/net/ber/core_ext/array.rb'
|
463
|
-
- 'lib/net/ber/core_ext/string.rb'
|
464
|
-
- 'lib/net/ldap/dn.rb'
|
465
|
-
- 'lib/net/ldap/filter.rb'
|
466
|
-
|
467
|
-
# Offense count: 2
|
468
|
-
# Cop supports --auto-correct.
|
469
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
|
470
|
-
Style/RegexpLiteral:
|
471
|
-
Exclude:
|
472
|
-
- 'lib/net/ldap/filter.rb'
|
473
|
-
- 'net-ldap.gemspec'
|
474
|
-
|
475
|
-
# Offense count: 1
|
476
|
-
# Cop supports --auto-correct.
|
477
|
-
Style/RescueModifier:
|
478
|
-
Exclude:
|
479
|
-
- 'test/ber/core_ext/test_string.rb'
|
480
|
-
|
481
|
-
# Offense count: 8
|
482
|
-
# Cop supports --auto-correct.
|
483
|
-
# Configuration parameters: AllowAsExpressionSeparator.
|
484
|
-
Style/Semicolon:
|
485
|
-
Exclude:
|
486
|
-
- 'lib/net/ldap/dn.rb'
|
487
|
-
- 'lib/net/ldap/error.rb'
|
488
|
-
- 'testserver/ldapserver.rb'
|
489
|
-
|
490
|
-
# Offense count: 66
|
491
|
-
# Cop supports --auto-correct.
|
492
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
493
|
-
Style/SignalException:
|
494
|
-
Exclude:
|
495
|
-
- 'lib/net/ber/ber_parser.rb'
|
496
|
-
- 'lib/net/ber/core_ext/array.rb'
|
497
|
-
- 'lib/net/ldap.rb'
|
498
|
-
- 'lib/net/ldap/auth_adapter.rb'
|
499
|
-
- 'lib/net/ldap/auth_adapter/gss_spnego.rb'
|
500
|
-
- 'lib/net/ldap/auth_adapter/sasl.rb'
|
501
|
-
- 'lib/net/ldap/auth_adapter/simple.rb'
|
502
|
-
- 'lib/net/ldap/connection.rb'
|
503
|
-
- 'lib/net/ldap/dn.rb'
|
504
|
-
- 'lib/net/ldap/entry.rb'
|
505
|
-
- 'lib/net/ldap/filter.rb'
|
506
|
-
- 'lib/net/ldap/password.rb'
|
507
|
-
- 'lib/net/ldap/pdu.rb'
|
508
|
-
- 'lib/net/snmp.rb'
|
509
|
-
|
510
|
-
# Offense count: 2
|
511
|
-
# Configuration parameters: Methods.
|
512
|
-
Style/SingleLineBlockParams:
|
513
|
-
Exclude:
|
514
|
-
- 'lib/net/ldap/filter.rb'
|
515
|
-
|
516
|
-
# Offense count: 2
|
517
|
-
# Cop supports --auto-correct.
|
518
|
-
Style/SingleSpaceBeforeFirstArg:
|
519
|
-
Exclude:
|
520
|
-
- 'lib/net/ldap/dataset.rb'
|
521
|
-
- 'lib/net/ldap/instrumentation.rb'
|
522
|
-
|
523
|
-
# Offense count: 2
|
524
|
-
# Cop supports --auto-correct.
|
525
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
526
|
-
Style/SpaceAroundEqualsInParameterDefault:
|
527
|
-
Enabled: false
|
528
|
-
|
529
|
-
# Offense count: 9
|
530
|
-
# Cop supports --auto-correct.
|
531
|
-
# Configuration parameters: MultiSpaceAllowedForOperators.
|
532
|
-
Style/SpaceAroundOperators:
|
533
|
-
Exclude:
|
534
|
-
- 'lib/net/ldap/connection.rb'
|
535
|
-
- 'lib/net/ldap/entry.rb'
|
536
|
-
- 'lib/net/ldap/filter.rb'
|
537
|
-
- 'test/test_entry.rb'
|
538
|
-
- 'test/test_ldap_connection.rb'
|
539
|
-
|
540
|
-
# Offense count: 2
|
541
|
-
# Cop supports --auto-correct.
|
542
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
543
|
-
Style/SpaceBeforeBlockBraces:
|
544
|
-
Enabled: false
|
545
|
-
|
546
|
-
# Offense count: 18
|
547
|
-
# Cop supports --auto-correct.
|
548
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
|
549
|
-
Style/SpaceInsideBlockBraces:
|
550
|
-
Enabled: false
|
551
|
-
|
552
|
-
# Offense count: 1
|
553
|
-
# Cop supports --auto-correct.
|
554
|
-
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
|
555
|
-
Style/SpaceInsideHashLiteralBraces:
|
556
|
-
Enabled: false
|
557
|
-
|
558
|
-
# Offense count: 20
|
559
|
-
# Cop supports --auto-correct.
|
560
|
-
Style/SpaceInsideParens:
|
561
|
-
Exclude:
|
562
|
-
- 'lib/net/ldap/entry.rb'
|
563
|
-
- 'lib/net/snmp.rb'
|
564
|
-
- 'test/test_password.rb'
|
565
|
-
- 'testserver/ldapserver.rb'
|
566
|
-
|
567
|
-
# Offense count: 5
|
568
|
-
# Cop supports --auto-correct.
|
569
|
-
Style/SpecialGlobalVars:
|
570
|
-
Exclude:
|
571
|
-
- 'lib/net/snmp.rb'
|
572
|
-
- 'net-ldap.gemspec'
|
573
|
-
- 'testserver/ldapserver.rb'
|
574
|
-
|
575
|
-
# Offense count: 663
|
576
|
-
# Cop supports --auto-correct.
|
577
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
578
|
-
Style/StringLiterals:
|
579
|
-
Enabled: false
|
580
|
-
|
581
|
-
# Offense count: 5
|
582
|
-
# Cop supports --auto-correct.
|
583
|
-
Style/UnneededPercentQ:
|
584
|
-
Exclude:
|
585
|
-
- 'net-ldap.gemspec'
|
586
|
-
- 'test/test_entry.rb'
|
587
|
-
|
588
|
-
# Offense count: 1
|
589
|
-
# Cop supports --auto-correct.
|
590
|
-
# Configuration parameters: MaxLineLength.
|
591
|
-
Style/WhileUntilModifier:
|
592
|
-
Exclude:
|
593
|
-
- 'lib/net/ldap/filter.rb'
|
594
|
-
|
595
|
-
# Offense count: 1
|
596
|
-
# Cop supports --auto-correct.
|
597
|
-
# Configuration parameters: WordRegex.
|
598
|
-
Style/WordArray:
|
599
|
-
MinSize: 2
|
data/.travis.yml
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
rvm:
|
3
|
-
- 2.0.0
|
4
|
-
- 2.1
|
5
|
-
- 2.2
|
6
|
-
# optional
|
7
|
-
- ruby-head
|
8
|
-
- jruby-19mode
|
9
|
-
- jruby-head
|
10
|
-
- rbx-2
|
11
|
-
|
12
|
-
env:
|
13
|
-
- INTEGRATION=openldap
|
14
|
-
|
15
|
-
before_install:
|
16
|
-
- gem update bundler
|
17
|
-
|
18
|
-
install:
|
19
|
-
- if [ "$INTEGRATION" = "openldap" ]; then sudo script/install-openldap; fi
|
20
|
-
- bundle install
|
21
|
-
|
22
|
-
script: bundle exec rake ci
|
23
|
-
|
24
|
-
matrix:
|
25
|
-
allow_failures:
|
26
|
-
- rvm: ruby-head
|
27
|
-
- rvm: jruby-19mode
|
28
|
-
- rvm: jruby-head
|
29
|
-
- rvm: rbx-2
|
30
|
-
fast_finish: true
|
31
|
-
|
32
|
-
notifications:
|
33
|
-
email: false
|
data/CONTRIBUTING.md
DELETED
@@ -1,54 +0,0 @@
|
|
1
|
-
# Contribution guide
|
2
|
-
|
3
|
-
Thank you for using net-ldap. If you'd like to help, keep these guidelines in
|
4
|
-
mind.
|
5
|
-
|
6
|
-
## Submitting a New Issue
|
7
|
-
|
8
|
-
If you find a bug, or would like to propose an idea, file a [new issue][issues].
|
9
|
-
Include as many details as possible:
|
10
|
-
|
11
|
-
- Version of net-ldap gem
|
12
|
-
- LDAP server version
|
13
|
-
- Queries, connection information, any other input
|
14
|
-
- output or error messages
|
15
|
-
|
16
|
-
## Sending a Pull Request
|
17
|
-
|
18
|
-
[Pull requests][pr] are always welcome!
|
19
|
-
|
20
|
-
Check out [the project's issues list][issues] for ideas on what could be improved.
|
21
|
-
|
22
|
-
Before sending, please add tests and ensure the test suite passes.
|
23
|
-
|
24
|
-
To run the full suite:
|
25
|
-
|
26
|
-
`bundle exec rake`
|
27
|
-
|
28
|
-
To run a specific test file:
|
29
|
-
|
30
|
-
`bundle exec ruby test/test_ldap.rb`
|
31
|
-
|
32
|
-
To run a specific test:
|
33
|
-
|
34
|
-
`bundle exec ruby test/test_ldap.rb -n test_instrument_bind`
|
35
|
-
|
36
|
-
Pull requests will trigger automatic continuous integration builds on
|
37
|
-
[TravisCI][travis]. To run integration tests locally, see the `test/support`
|
38
|
-
folder.
|
39
|
-
|
40
|
-
## Styleguide
|
41
|
-
|
42
|
-
```ruby
|
43
|
-
# 1.9+ style hashes
|
44
|
-
{key: "value"}
|
45
|
-
|
46
|
-
# Multi-line arguments with `\`
|
47
|
-
MyClass.new \
|
48
|
-
foo: 'bar',
|
49
|
-
baz: 'garply'
|
50
|
-
```
|
51
|
-
|
52
|
-
[issues]: https://github.com/ruby-net-ldap/ruby-net-ldap/issues
|
53
|
-
[pr]: https://help.github.com/articles/using-pull-requests
|
54
|
-
[travis]: https://travis-ci.org/ruby-ldap/ruby-net-ldap
|
data/Gemfile
DELETED
data/Rakefile
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
# -*- ruby encoding: utf-8 -*-
|
2
|
-
# vim: syntax=ruby
|
3
|
-
|
4
|
-
require 'rake/testtask'
|
5
|
-
require 'rubocop/rake_task'
|
6
|
-
require 'bundler'
|
7
|
-
|
8
|
-
RuboCop::RakeTask.new
|
9
|
-
|
10
|
-
Rake::TestTask.new do |t|
|
11
|
-
t.libs << 'test'
|
12
|
-
t.test_files = FileList['test/**/test_*.rb']
|
13
|
-
t.verbose = true
|
14
|
-
t.description = 'Run tests, set INTEGRATION=openldap to run integration tests, INTEGRATION_HOST and INTEGRATION_PORT are also supported'
|
15
|
-
end
|
16
|
-
|
17
|
-
desc 'Run tests and RuboCop (RuboCop runs on mri only)'
|
18
|
-
task ci: [:test]
|
19
|
-
|
20
|
-
desc 'Run tests and RuboCop'
|
21
|
-
task rubotest: [:test, :rubocop]
|
22
|
-
|
23
|
-
task default: Bundler.current_ruby.mri? ? [:test, :rubocop] : [:test]
|