Skip to content

Commit 9fb791a

Browse files
author
Austin Ziegler
committed
Documentation preparation for version 0.2 release.
1 parent 70477ec commit 9fb791a

File tree

4 files changed

+100
-48
lines changed

4 files changed

+100
-48
lines changed

Hacking.rdoc

Lines changed: 57 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,59 @@
11
= Hacking Net::LDAP
22

3-
We welcome your contributions to Net::LDAP. To increase the chances of your
4-
patches being accepted, we recommend that you follow the guidelines below:
5-
6-
1. Your code should be formatted like the rest of Net::LDAP. We use a text
7-
wrap of 76 - 78 characters, especially for documentation contents.
8-
Operators should have spaces around them, method definitions should have
9-
parentheses around arguments. Keep the indentation as flat as possible.
10-
2. Your changes should be well-documented and described.
11-
3. You must provide rspec tests for any new or changed features. Rspec has
12-
been chosen as the way forward for tests.
13-
4. You should provide LDIF data for importing into LDAP servers so that the
14-
changes can be tested <em>in situ</em> with more than one real LDAP
15-
server.
16-
5. You should have tested your changes against a real LDAP server.
3+
We welcome your contributions to Net::LDAP. We accept most contributions, but
4+
there are ways to increase the chance of your patch being accepted quickly.
5+
6+
== Licensing
7+
8+
Net::LDAP 0.3 and later will be licensed under an MIT-style license; any
9+
contributions after 2010-04-20 must be under this license to be accepted.
10+
11+
== Formatting
12+
13+
* Your patches should be formatted like the rest of Net::LDAP.
14+
* We use a text wrap of 76–78 characters, especially for documentation
15+
contents.
16+
* Operators should have spaces around them.
17+
* Method definitions should have parentheses around arguments (and no
18+
parentheses if there are no arguments).
19+
* Indentation should be kept as flat as possible; this may mean being more
20+
explicit with constants.
21+
22+
== Documentation
23+
24+
* Documentation: net-ldap[http://net-ldap.rubyforge.org/]
25+
26+
It is very important that, if you add new methods or objects, your code is
27+
well-documented. The purpose of the changes should be clearly described so that
28+
even if this is a feature we do not use, we can understand its purpose.
29+
30+
We also encourage documentation-only contributions that improve the
31+
documentation of Net::LDAP.
32+
33+
== Tests
34+
35+
The Net::LDAP team uses RSpec for unit testing; all changes must have rspec
36+
tests for any new or changed features.
37+
38+
Your changes should have been tested against at least one real LDAP server; the
39+
current tests are not sufficient to find all possible bugs. It's unlikely that
40+
they will ever be sufficient given the variations in LDAP server behaviour.
41+
42+
If you're introducing a new feature, it would be useful to provide LDIF data
43+
for importing into LDAP servers for testing.
44+
45+
== Development Dependencies
46+
47+
Net::LDAP uses several libraries during development, all of which can be
48+
installed using RubyGems.
49+
50+
* *hoe*
51+
* *hoe-git*
52+
* *archive-tar-minitar*
53+
* *metaid*
54+
55+
== Participation
56+
57+
* RubyForge: net-ldap[http://rubyforge.org/projects/net-ldap]
58+
* GitHub: RoryO/ruby-net-ldap[http://github.com/RoryO/ruby-net-ldap/]
59+
* Group: ruby-ldap[http://groups.google.com/group/ruby-ldap]

History.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
=== Net::LDAP NEXT / 2010-__-__
1+
=== Net::LDAP 0.2 / 2010-04-__
2+
* Added a document describing how to contribute to Net::LDAP most effectively.
3+
* Preparing for a license change for Net::LDAP in the next release.
24
* SSL capabilities will be enabled or disabled based on whether we can load
35
OpenSSL successfully or not.
46
* Moved the core class extensions extensions from being in the Net::LDAP
@@ -38,7 +40,7 @@
3840
=== Net::LDAP 0.1.1 / 2010-03-18
3941
* Fixing a critical problem with sockets.
4042

41-
=== Net::LDAP 0.1.0 / 2010-03-17
43+
=== Net::LDAP 0.1 / 2010-03-17
4244
* Small fixes throughout, more to come.
4345
* Ruby 1.9 support added.
4446
* Ruby 1.8.6 and below support removed. If we can figure out a compatible way

README.txt

Lines changed: 38 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2,48 +2,54 @@
22

33
== Description
44

5-
Pure Ruby LDAP library.
5+
Net::LDAP for Ruby (also called "net-ldap") is a pure-Ruby LDAP support
6+
library that has been tested against several modern servers, including
7+
OpenLDAP and Active Directory. It supports most LDAP client features and
8+
a subset of server features.
69

7-
== Where
8-
9-
=== Issues & Project Homepage
10-
11-
http://rubyforge.org/projects/net-ldap
12-
13-
=== Code
14-
15-
http://github.com/RoryO/ruby-net-ldap/
10+
LDAP (Lightweight Directory Access Protocol) is an Internet protocol for
11+
accessing distributed directory services. LDAP is often used to provide
12+
access and authentication to networked services.
1613

17-
== FEATURES/PROBLEMS
14+
The current release is mostly compliant with RFCs 2251–2256, 2829–2830,
15+
3377, and 3771. Our roadmap for Net::LDAP 1.0 is to gain full
16+
<em>client</em> compliance with the most recent IETF LDAP RFCs
17+
(4510–4519, plus portions of 4520–4532).
1818

19-
The Lightweight Directory Access Protocol (LDAP) is an Internet protocol for
20-
accessing distributed directory services.
19+
=== Notice of Impending License Change
2120

22-
Net::LDAP is an LDAP support library written in pure Ruby. It supports most
23-
LDAP client features and a subset of server features as well.
21+
In the next release of Net::LDAP (0.3), we will be changing the license
22+
to an MIT-style license.
2423

25-
* Standards-based (going for RFC 4511)
26-
* Portable: 100% Ruby
27-
28-
== SYNOPSIS
24+
== Where
2925

30-
See Net::LDAP for documentation and usage samples.
26+
* RubyForge: net-ldap[http://rubyforge.org/projects/net-ldap]
27+
* GitHub: RoryO/ruby-net-ldap[http://github.com/RoryO/ruby-net-ldap/]
28+
* Group: ruby-ldap[http://groups.google.com/group/ruby-ldap]
29+
* Documentation: net-ldap[http://net-ldap.rubyforge.org/]
3130

32-
== REQUIREMENTS
31+
== Requirements
3332

3433
Net::LDAP requires Ruby 1.8.7-compliant interpreter or better.
3534

36-
== INSTALL
35+
== Install
36+
37+
Net::LDAP is a pure Ruby library. It does not require any external
38+
compiled libraries.
3739

38-
Net::LDAP is a pure Ruby library. It does not require any external libraries.
3940
You can install the RubyGems version of Net::LDAP available from the usual
4041
sources.
4142

42-
* gem install net-ldap
43+
gem install net-ldap
44+
45+
Simply require either 'net-ldap' or 'net/ldap'.
4346

44-
Simply require 'net/ldap'.
47+
For non-RubyGems installations of Net::LDAP, you can use Minero Aoki's
48+
{setup.rb}[http://i.loveruby.net/en/projects/setup/] as the layout of
49+
Net::LDAP is compliant. The setup installer is not included in the
50+
Net::LDAP repository.
4551

46-
== CREDITS
52+
== Credits
4753

4854
Net::LDAP was originally developed by:
4955

@@ -58,13 +64,13 @@ Contributions since:
5864
* Dimitrij Denissenko dimdenis@rubyforge.org
5965
* "nowhereman" on GitHub
6066

61-
== LICENSE
67+
== License
6268

6369
Copyright (C) 2006 - 2010 by Francis Cianfrocca and other contributors.
6470

65-
Please read the file LICENSE for licensing restrictions on this library. In
66-
the simplest terms, this library is available under the same terms as Ruby
67-
itself.
71+
Please read the file LICENSE for licensing restrictions on this library.
72+
In the simplest terms, this library is available under the same terms as
73+
Ruby itself.
6874

69-
Available under the same terms as Ruby. See LICENSE in the main distribution
70-
for full licensing information.
75+
Available under the same terms as Ruby. See LICENSE in the main
76+
distribution for full licensing information.

Rakefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ Hoe.spec PKG_NAME do
3333
self.description = paragraphs_of(self.readme_file, 2..2).join("\n\n")
3434

3535
extra_rdoc_files << MANIFEST.grep(/\.rdoc$/)
36+
extra_rdoc_files.flatten!
3637

3738
extra_dev_deps << [ "archive-tar-minitar", "~>0.5.1" ]
3839
extra_dev_deps << [ "hoe-git", "~>1" ]

0 commit comments

Comments
 (0)