net-ldap 0.12.0 → 0.17.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.
Files changed (74) hide show
  1. checksums.yaml +5 -5
  2. data/Contributors.rdoc +1 -0
  3. data/History.rdoc +89 -0
  4. data/README.rdoc +19 -9
  5. data/lib/net/ber/ber_parser.rb +4 -4
  6. data/lib/net/ber/core_ext/array.rb +1 -1
  7. data/lib/net/ber/core_ext/integer.rb +1 -1
  8. data/lib/net/ber/core_ext/string.rb +1 -1
  9. data/lib/net/ber/core_ext.rb +6 -6
  10. data/lib/net/ber.rb +39 -9
  11. data/lib/net/ldap/auth_adapter/gss_spnego.rb +9 -8
  12. data/lib/net/ldap/auth_adapter/sasl.rb +6 -4
  13. data/lib/net/ldap/auth_adapter/simple.rb +1 -1
  14. data/lib/net/ldap/connection.rb +163 -50
  15. data/lib/net/ldap/dataset.rb +5 -5
  16. data/lib/net/ldap/dn.rb +13 -14
  17. data/lib/net/ldap/entry.rb +17 -7
  18. data/lib/net/ldap/error.rb +2 -25
  19. data/lib/net/ldap/filter.rb +15 -8
  20. data/lib/net/ldap/instrumentation.rb +2 -2
  21. data/lib/net/ldap/password.rb +7 -5
  22. data/lib/net/ldap/pdu.rb +27 -3
  23. data/lib/net/ldap/version.rb +1 -1
  24. data/lib/net/ldap.rb +209 -90
  25. data/lib/net/snmp.rb +19 -19
  26. data/lib/net-ldap.rb +1 -1
  27. metadata +30 -99
  28. data/.gitignore +0 -9
  29. data/.rubocop.yml +0 -5
  30. data/.rubocop_todo.yml +0 -462
  31. data/.travis.yml +0 -31
  32. data/CONTRIBUTING.md +0 -54
  33. data/Gemfile +0 -2
  34. data/Rakefile +0 -23
  35. data/net-ldap.gemspec +0 -36
  36. data/script/changelog +0 -47
  37. data/script/install-openldap +0 -112
  38. data/script/package +0 -7
  39. data/script/release +0 -16
  40. data/test/ber/core_ext/test_array.rb +0 -22
  41. data/test/ber/core_ext/test_string.rb +0 -25
  42. data/test/ber/test_ber.rb +0 -145
  43. data/test/fixtures/cacert.pem +0 -20
  44. data/test/fixtures/openldap/memberof.ldif +0 -33
  45. data/test/fixtures/openldap/retcode.ldif +0 -76
  46. data/test/fixtures/openldap/slapd.conf.ldif +0 -67
  47. data/test/fixtures/seed.ldif +0 -374
  48. data/test/integration/test_add.rb +0 -28
  49. data/test/integration/test_ber.rb +0 -30
  50. data/test/integration/test_bind.rb +0 -34
  51. data/test/integration/test_delete.rb +0 -31
  52. data/test/integration/test_open.rb +0 -88
  53. data/test/integration/test_return_codes.rb +0 -38
  54. data/test/integration/test_search.rb +0 -77
  55. data/test/support/vm/openldap/.gitignore +0 -1
  56. data/test/support/vm/openldap/README.md +0 -32
  57. data/test/support/vm/openldap/Vagrantfile +0 -33
  58. data/test/test_auth_adapter.rb +0 -11
  59. data/test/test_dn.rb +0 -44
  60. data/test/test_entry.rb +0 -65
  61. data/test/test_filter.rb +0 -223
  62. data/test/test_filter_parser.rb +0 -24
  63. data/test/test_helper.rb +0 -66
  64. data/test/test_ldap.rb +0 -67
  65. data/test/test_ldap_connection.rb +0 -460
  66. data/test/test_ldif.rb +0 -104
  67. data/test/test_password.rb +0 -10
  68. data/test/test_rename.rb +0 -77
  69. data/test/test_search.rb +0 -39
  70. data/test/test_snmp.rb +0 -119
  71. data/test/test_ssl_ber.rb +0 -40
  72. data/test/testdata.ldif +0 -101
  73. data/testserver/ldapserver.rb +0 -210
  74. data/testserver/testdata.ldif +0 -101
data/.rubocop_todo.yml DELETED
@@ -1,462 +0,0 @@
1
- # This configuration was generated by `rubocop --auto-gen-config`
2
- # on 2014-12-19 15:32:44 +1100 using RuboCop version 0.28.0.
3
- # The point is for the user to remove these configuration records
4
- # one by one as the offenses are removed from the code base.
5
- # Note that changes in the inspected code, or installation of new
6
- # versions of RuboCop, may require this file to be generated again.
7
-
8
- # Offense count: 12
9
- # Configuration parameters: AllowSafeAssignment.
10
- Lint/AssignmentInCondition:
11
- Enabled: false
12
-
13
- # Offense count: 1
14
- # Configuration parameters: AlignWith, SupportedStyles.
15
- Lint/EndAlignment:
16
- Enabled: false
17
-
18
- # Offense count: 1
19
- Lint/RescueException:
20
- Enabled: false
21
-
22
- # Offense count: 1
23
- Lint/ShadowingOuterLocalVariable:
24
- Enabled: false
25
-
26
- # Offense count: 9
27
- # Cop supports --auto-correct.
28
- Lint/UnusedBlockArgument:
29
- Enabled: false
30
-
31
- # Offense count: 3
32
- # Cop supports --auto-correct.
33
- Lint/UnusedMethodArgument:
34
- Enabled: false
35
-
36
- # Offense count: 7
37
- Lint/UselessAssignment:
38
- Enabled: false
39
-
40
- # Offense count: 47
41
- Metrics/AbcSize:
42
- Max: 114
43
-
44
- # Offense count: 11
45
- Metrics/BlockNesting:
46
- Max: 4
47
-
48
- # Offense count: 9
49
- # Configuration parameters: CountComments.
50
- Metrics/ClassLength:
51
- Max: 470
52
-
53
- # Offense count: 20
54
- Metrics/CyclomaticComplexity:
55
- Max: 41
56
-
57
- # Offense count: 193
58
- # Configuration parameters: AllowURI, URISchemes.
59
- Metrics/LineLength:
60
- Max: 360
61
-
62
- # Offense count: 71
63
- # Configuration parameters: CountComments.
64
- Metrics/MethodLength:
65
- Max: 130
66
-
67
- # Offense count: 13
68
- Metrics/PerceivedComplexity:
69
- Max: 36
70
-
71
- # Offense count: 1
72
- Style/AccessorMethodName:
73
- Enabled: false
74
-
75
- # Offense count: 4
76
- # Cop supports --auto-correct.
77
- Style/AlignArray:
78
- Enabled: false
79
-
80
- # Offense count: 3
81
- # Cop supports --auto-correct.
82
- # Configuration parameters: EnforcedStyle, SupportedStyles.
83
- Style/AlignParameters:
84
- Enabled: false
85
-
86
- # Offense count: 36
87
- # Cop supports --auto-correct.
88
- # Configuration parameters: EnforcedStyle, SupportedStyles.
89
- Style/AndOr:
90
- Enabled: false
91
-
92
- # Offense count: 1
93
- # Cop supports --auto-correct.
94
- # Configuration parameters: EnforcedStyle, SupportedStyles.
95
- Style/BarePercentLiterals:
96
- Enabled: false
97
-
98
- # Offense count: 1
99
- # Cop supports --auto-correct.
100
- Style/BlockComments:
101
- Enabled: false
102
-
103
- # Offense count: 20
104
- # Cop supports --auto-correct.
105
- Style/Blocks:
106
- Enabled: false
107
-
108
- # Offense count: 2
109
- # Cop supports --auto-correct.
110
- # Configuration parameters: EnforcedStyle, SupportedStyles.
111
- Style/BracesAroundHashParameters:
112
- Enabled: false
113
-
114
- # Offense count: 4
115
- # Configuration parameters: IndentWhenRelativeTo, SupportedStyles, IndentOneStep.
116
- Style/CaseIndentation:
117
- Enabled: false
118
-
119
- # Offense count: 4
120
- # Cop supports --auto-correct.
121
- Style/CharacterLiteral:
122
- Enabled: false
123
-
124
- # Offense count: 22
125
- # Configuration parameters: EnforcedStyle, SupportedStyles.
126
- Style/ClassAndModuleChildren:
127
- Enabled: false
128
-
129
- # Offense count: 1
130
- # Cop supports --auto-correct.
131
- # Configuration parameters: EnforcedStyle, SupportedStyles.
132
- Style/ClassCheck:
133
- Enabled: false
134
-
135
- # Offense count: 13
136
- # Cop supports --auto-correct.
137
- Style/ColonMethodCall:
138
- Enabled: false
139
-
140
- # Offense count: 2
141
- # Configuration parameters: Keywords.
142
- Style/CommentAnnotation:
143
- Enabled: false
144
-
145
- # Offense count: 86
146
- Style/ConstantName:
147
- Enabled: false
148
-
149
- # Offense count: 18
150
- # Cop supports --auto-correct.
151
- Style/DeprecatedHashMethods:
152
- Enabled: false
153
-
154
- # Offense count: 46
155
- Style/Documentation:
156
- Enabled: false
157
-
158
- # Offense count: 23
159
- # Cop supports --auto-correct.
160
- # Configuration parameters: EnforcedStyle, SupportedStyles.
161
- Style/DotPosition:
162
- Enabled: false
163
-
164
- # Offense count: 1
165
- # Cop supports --auto-correct.
166
- Style/ElseAlignment:
167
- Enabled: false
168
-
169
- # Offense count: 4
170
- # Cop supports --auto-correct.
171
- # Configuration parameters: AllowAdjacentOneLineDefs.
172
- Style/EmptyLineBetweenDefs:
173
- Enabled: false
174
-
175
- # Offense count: 9
176
- # Cop supports --auto-correct.
177
- Style/EmptyLines:
178
- Enabled: false
179
-
180
- # Offense count: 1
181
- # Cop supports --auto-correct.
182
- # Configuration parameters: EnforcedStyle, SupportedStyles.
183
- Style/EmptyLinesAroundClassBody:
184
- Enabled: false
185
-
186
- # Offense count: 2
187
- # Cop supports --auto-correct.
188
- # Configuration parameters: EnforcedStyle, SupportedStyles.
189
- Style/EmptyLinesAroundModuleBody:
190
- Enabled: false
191
-
192
- # Offense count: 3
193
- Style/EvenOdd:
194
- Enabled: false
195
-
196
- # Offense count: 1
197
- # Configuration parameters: Exclude.
198
- Style/FileName:
199
- Enabled: false
200
-
201
- # Offense count: 9
202
- # Configuration parameters: AllowedVariables.
203
- Style/GlobalVars:
204
- Enabled: false
205
-
206
- # Offense count: 3
207
- # Configuration parameters: MinBodyLength.
208
- Style/GuardClause:
209
- Enabled: false
210
-
211
- # Offense count: 150
212
- # Cop supports --auto-correct.
213
- # Configuration parameters: EnforcedStyle, SupportedStyles.
214
- Style/HashSyntax:
215
- Enabled: false
216
-
217
- # Offense count: 8
218
- # Configuration parameters: MaxLineLength.
219
- Style/IfUnlessModifier:
220
- Enabled: false
221
-
222
- # Offense count: 2
223
- # Cop supports --auto-correct.
224
- # Configuration parameters: EnforcedStyle, SupportedStyles.
225
- Style/IndentHash:
226
- Enabled: false
227
-
228
- # Offense count: 6
229
- # Cop supports --auto-correct.
230
- # Configuration parameters: Width.
231
- Style/IndentationWidth:
232
- Enabled: false
233
-
234
- # Offense count: 2
235
- # Cop supports --auto-correct.
236
- Style/LeadingCommentSpace:
237
- Enabled: false
238
-
239
- # Offense count: 21
240
- # Cop supports --auto-correct.
241
- # Configuration parameters: EnforcedStyle, SupportedStyles.
242
- Style/MethodDefParentheses:
243
- Enabled: false
244
-
245
- # Offense count: 1
246
- # Configuration parameters: EnforcedStyle, SupportedStyles.
247
- Style/MethodName:
248
- Enabled: false
249
-
250
- # Offense count: 5
251
- # Cop supports --auto-correct.
252
- # Configuration parameters: EnforcedStyle, SupportedStyles.
253
- Style/MultilineOperationIndentation:
254
- Enabled: false
255
-
256
- # Offense count: 1
257
- Style/MultilineTernaryOperator:
258
- Enabled: false
259
-
260
- # Offense count: 1
261
- # Cop supports --auto-correct.
262
- Style/NegatedIf:
263
- Enabled: false
264
-
265
- # Offense count: 1
266
- # Cop supports --auto-correct.
267
- Style/NegatedWhile:
268
- Enabled: false
269
-
270
- # Offense count: 3
271
- # Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles.
272
- Style/Next:
273
- Enabled: false
274
-
275
- # Offense count: 1
276
- # Cop supports --auto-correct.
277
- Style/NilComparison:
278
- Enabled: false
279
-
280
- # Offense count: 1
281
- # Cop supports --auto-correct.
282
- # Configuration parameters: IncludeSemanticChanges.
283
- Style/NonNilCheck:
284
- Enabled: false
285
-
286
- # Offense count: 1
287
- # Cop supports --auto-correct.
288
- Style/Not:
289
- Enabled: false
290
-
291
- # Offense count: 10
292
- # Cop supports --auto-correct.
293
- Style/NumericLiterals:
294
- MinDigits: 8
295
-
296
- # Offense count: 3
297
- Style/OpMethod:
298
- Enabled: false
299
-
300
- # Offense count: 6
301
- # Cop supports --auto-correct.
302
- # Configuration parameters: AllowSafeAssignment.
303
- Style/ParenthesesAroundCondition:
304
- Enabled: false
305
-
306
- # Offense count: 3
307
- # Cop supports --auto-correct.
308
- # Configuration parameters: PreferredDelimiters.
309
- Style/PercentLiteralDelimiters:
310
- Enabled: false
311
-
312
- # Offense count: 11
313
- # Cop supports --auto-correct.
314
- Style/PerlBackrefs:
315
- Enabled: false
316
-
317
- # Offense count: 9
318
- # Configuration parameters: EnforcedStyle, SupportedStyles.
319
- Style/RaiseArgs:
320
- Enabled: false
321
-
322
- # Offense count: 1
323
- # Cop supports --auto-correct.
324
- Style/RedundantBegin:
325
- Enabled: false
326
-
327
- # Offense count: 3
328
- # Cop supports --auto-correct.
329
- # Configuration parameters: AllowMultipleReturnValues.
330
- Style/RedundantReturn:
331
- Enabled: false
332
-
333
- # Offense count: 7
334
- # Cop supports --auto-correct.
335
- Style/RedundantSelf:
336
- Enabled: false
337
-
338
- # Offense count: 1
339
- # Configuration parameters: MaxSlashes.
340
- Style/RegexpLiteral:
341
- Enabled: false
342
-
343
- # Offense count: 2
344
- Style/RescueModifier:
345
- Enabled: false
346
-
347
- # Offense count: 7
348
- # Cop supports --auto-correct.
349
- # Configuration parameters: AllowAsExpressionSeparator.
350
- Style/Semicolon:
351
- Enabled: false
352
-
353
- # Offense count: 61
354
- # Cop supports --auto-correct.
355
- # Configuration parameters: EnforcedStyle, SupportedStyles.
356
- Style/SignalException:
357
- Enabled: false
358
-
359
- # Offense count: 2
360
- # Configuration parameters: Methods.
361
- Style/SingleLineBlockParams:
362
- Enabled: false
363
-
364
- # Offense count: 2
365
- # Cop supports --auto-correct.
366
- Style/SingleSpaceBeforeFirstArg:
367
- Enabled: false
368
-
369
- # Offense count: 24
370
- # Cop supports --auto-correct.
371
- Style/SpaceAfterComma:
372
- Enabled: false
373
-
374
- # Offense count: 2
375
- # Cop supports --auto-correct.
376
- # Configuration parameters: EnforcedStyle, SupportedStyles.
377
- Style/SpaceAroundEqualsInParameterDefault:
378
- Enabled: false
379
-
380
- # Offense count: 8
381
- # Cop supports --auto-correct.
382
- Style/SpaceAroundOperators:
383
- Enabled: false
384
-
385
- # Offense count: 2
386
- # Cop supports --auto-correct.
387
- # Configuration parameters: EnforcedStyle, SupportedStyles.
388
- Style/SpaceBeforeBlockBraces:
389
- Enabled: false
390
-
391
- # Offense count: 18
392
- # Cop supports --auto-correct.
393
- # Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
394
- Style/SpaceInsideBlockBraces:
395
- Enabled: false
396
-
397
- # Offense count: 37
398
- # Cop supports --auto-correct.
399
- Style/SpaceInsideBrackets:
400
- Enabled: false
401
-
402
- # Offense count: 1
403
- # Cop supports --auto-correct.
404
- # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
405
- Style/SpaceInsideHashLiteralBraces:
406
- Enabled: false
407
-
408
- # Offense count: 20
409
- # Cop supports --auto-correct.
410
- Style/SpaceInsideParens:
411
- Enabled: false
412
-
413
- # Offense count: 5
414
- # Cop supports --auto-correct.
415
- Style/SpecialGlobalVars:
416
- Enabled: false
417
-
418
- # Offense count: 645
419
- # Cop supports --auto-correct.
420
- # Configuration parameters: EnforcedStyle, SupportedStyles.
421
- Style/StringLiterals:
422
- Enabled: false
423
-
424
- # Offense count: 10
425
- # Cop supports --auto-correct.
426
- # Configuration parameters: IgnoredMethods.
427
- Style/SymbolProc:
428
- Enabled: false
429
-
430
- # Offense count: 1
431
- # Cop supports --auto-correct.
432
- # Configuration parameters: EnforcedStyle, SupportedStyles.
433
- Style/TrailingBlankLines:
434
- Enabled: false
435
-
436
- # Offense count: 9
437
- # Cop supports --auto-correct.
438
- # Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
439
- Style/TrailingComma:
440
- Enabled: false
441
-
442
- # Offense count: 1
443
- # Cop supports --auto-correct.
444
- # Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, Whitelist.
445
- Style/TrivialAccessors:
446
- Enabled: false
447
-
448
- # Offense count: 5
449
- # Cop supports --auto-correct.
450
- Style/UnneededPercentQ:
451
- Enabled: false
452
-
453
- # Offense count: 1
454
- # Configuration parameters: MaxLineLength.
455
- Style/WhileUntilModifier:
456
- Enabled: false
457
-
458
- # Offense count: 1
459
- # Cop supports --auto-correct.
460
- # Configuration parameters: WordRegex.
461
- Style/WordArray:
462
- MinSize: 2
data/.travis.yml DELETED
@@ -1,31 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 1.9.3
4
- - 2.0.0
5
- - 2.1
6
- - 2.2
7
- # optional
8
- - ruby-head
9
- - jruby-19mode
10
- - jruby-head
11
- - rbx-2
12
-
13
- env:
14
- - INTEGRATION=openldap
15
-
16
- install:
17
- - if [ "$INTEGRATION" = "openldap" ]; then sudo script/install-openldap; fi
18
- - bundle install
19
-
20
- script: bundle exec rake ci
21
-
22
- matrix:
23
- allow_failures:
24
- - rvm: ruby-head
25
- - rvm: jruby-19mode
26
- - rvm: jruby-head
27
- - rvm: rbx-2
28
- fast_finish: true
29
-
30
- notifications:
31
- 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
@@ -1,2 +0,0 @@
1
- source 'https://rubygems.org'
2
- gemspec
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]
data/net-ldap.gemspec DELETED
@@ -1,36 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'net/ldap/version'
5
-
6
- Gem::Specification.new do |s|
7
- s.name = %q{net-ldap}
8
- s.version = Net::LDAP::VERSION
9
- s.license = "MIT"
10
- s.authors = ["Francis Cianfrocca", "Emiel van de Laar", "Rory O'Connell", "Kaspar Schiess", "Austin Ziegler", "Michael Schaarschmidt"]
11
- s.description = %q{Net::LDAP for Ruby (also called net-ldap) implements client access for the
12
- Lightweight Directory Access Protocol (LDAP), an IETF standard protocol for
13
- accessing distributed directory services. Net::LDAP is written completely in
14
- Ruby with no external dependencies. It supports most LDAP client features and a
15
- subset of server features as well.
16
-
17
- Net::LDAP has been tested against modern popular LDAP servers including
18
- OpenLDAP and Active Directory. The current release is mostly compliant with
19
- earlier versions of the IETF LDAP RFCs (2251-2256, 2829-2830, 3377, and 3771).
20
- Our roadmap for Net::LDAP 1.0 is to gain full <em>client</em> compliance with
21
- the most recent LDAP RFCs (4510-4519, plutions of 4520-4532).}
22
- s.email = ["blackhedd@rubyforge.org", "gemiel@gmail.com", "rory.ocon@gmail.com", "kaspar.schiess@absurd.li", "austin@rubyforge.org"]
23
- s.extra_rdoc_files = ["Contributors.rdoc", "Hacking.rdoc", "History.rdoc", "License.rdoc", "README.rdoc"]
24
- s.files = `git ls-files`.split $/
25
- s.test_files = s.files.grep(%r{^test})
26
- s.homepage = %q{http://github.com/ruby-ldap/ruby-net-ldap}
27
- s.rdoc_options = ["--main", "README.rdoc"]
28
- s.require_paths = ["lib"]
29
- s.required_ruby_version = ">= 1.9.3"
30
- s.summary = %q{Net::LDAP for Ruby (also called net-ldap) implements client access for the Lightweight Directory Access Protocol (LDAP), an IETF standard protocol for accessing distributed directory services}
31
-
32
- s.add_development_dependency("flexmock", "~> 1.3")
33
- s.add_development_dependency("rake", "~> 10.0")
34
- s.add_development_dependency("rubocop", "~> 0.28.0")
35
- s.add_development_dependency("test-unit")
36
- end
data/script/changelog DELETED
@@ -1,47 +0,0 @@
1
- #!/bin/bash
2
- # Usage: script/changelog [-r <repo>] [-b <base>] [-h <head>]
3
- #
4
- # repo: BASE string of GitHub REPOsitory url. e.g. "user_or_org/REPOsitory". Defaults to git remote url.
5
- # base: git ref to compare from. e.g. "v1.3.1". Defaults to latest git tag.
6
- # head: git ref to compare to. Defaults to "HEAD".
7
- #
8
- # Generate a changelog preview from pull requests merged between `base` and
9
- # `head`.
10
- #
11
- # https://github.com/jch/release-scripts/blob/master/changelog
12
- set -e
13
-
14
- [ $# -eq 0 ] && set -- --help
15
- while [[ $# > 1 ]]
16
- do
17
- key="$1"
18
- case $key in
19
- -r|--repo)
20
- repo="$2"
21
- shift
22
- ;;
23
- -b|--base)
24
- base="$2"
25
- shift
26
- ;;
27
- -h|--head)
28
- head="$2"
29
- shift
30
- ;;
31
- *)
32
- ;;
33
- esac
34
- shift
35
- done
36
-
37
- repo="${repo:-$(git remote -v | grep push | awk '{print $2}' | cut -d'/' -f4- | sed 's/\.git//')}"
38
- base="${base:-$(git tag -l | sort -t. -k 1,1n -k 2,2n -k 3,3n | tail -n 1)}"
39
- head="${head:-HEAD}"
40
- api_url="https://api.github.com"
41
-
42
- # get merged PR's. Better way is to query the API for these, but this is easier
43
- for pr in $(git log --oneline $base..$head | grep "Merge pull request" | awk '{gsub("#",""); print $5}')
44
- do
45
- # frustrated with trying to pull out the right values, fell back to ruby
46
- curl -s "$api_url/repos/$repo/pulls/$pr" | ruby -rjson -e 'pr=JSON.parse(STDIN.read); puts "* #{pr[%q(title)]} {##{pr[%q(number)]}}[#{pr[%q(html_url)]}]"'
47
- done