Commit graph

31 commits

Author SHA1 Message Date
Denis Knauf 7438a2ab45 One LdapError-class => Specific errors for every exception. 2013-03-16 13:10:02 +01:00
Martin Carpenter d2e00dfd58 Test single tab is not continued 2011-09-10 10:39:05 +02:00
Martin Carpenter 41bee0a690 Fix LDIF contination to single elided space
RFC 2849 http://tools.ietf.org/html/rfc2849:

SPACE                    = %x20
                           ; ASCII SP, space
...

2)  Any non-empty line, including comment lines, in an LDIF file
    MAY be folded by inserting a line separator (SEP) and a SPACE.
    Folding MUST NOT occur before the first character of the line.
    In other words, folding a line into two lines, the first of
    which is empty, is not permitted. Any line that begins with a
    single space MUST be treated as a continuation of the previous
    (non-empty) line. When joining folded lines, exactly one space
    character at the beginning of each continued line must be
    discarded. Implementations SHOULD NOT fold lines in the middle
    of a multi-byte UTF-8 character.
2011-07-23 03:31:42 +02:00
Martin Carpenter 41b230d9bc Fix identation 2011-07-23 03:26:37 +02:00
Austin Ziegler 57a356d556 Bugfix requiring a 0.2.1 release.
Modify operations were broken, but now aren't. This version fixes the
changes cleanly.
2011-03-23 21:17:51 -04:00
Austin Ziegler 2a63ae72b9 Merge branch 'filter_escaping' of https://github.com/Jamstah/ruby-net-ldap into Jamstah-filter_escaping 2011-03-17 22:37:44 -04:00
Austin Ziegler 7ae8e28550 Merge branch 'filter_single_clauses' of https://github.com/Jamstah/ruby-net-ldap into jamstah-filter_single_clauses 2011-03-17 22:33:16 -04:00
Austin Ziegler b92a75cdc7 Making autotest+rspec nicer. 2011-03-17 21:41:15 -04:00
Austin Ziegler 84e42ceb78 Merging an ugly set of changes I had forgotten about. 2011-03-17 21:37:17 -04:00
Lars Tobias Skjong-Børsting 36b06f46df Fix undefined method 'to_ber' for nil:NilClass. Convert unless nil.
Made modify_ops a method to allow for unit testing of it.

Added unit tests for add, delete and replace.
2011-01-28 14:50:54 +01:00
Jamstah ab196040b4 Add breaking tests. 2011-01-11 14:23:15 +00:00
Jamstah f3204bde6d Accept filters with only one clause to an & or | 2011-01-06 14:06:31 +00:00
Kaspar Schiess 36904e208a + Rewrote tests as specs. Ruby1.9 compatible escape code. 2010-12-30 13:44:17 +01:00
Jamstah a696aa89a0 Add a method to escape filter strings, and some convenience method for creating some common filter patterns, that are automatically escaped. 2010-12-30 13:14:15 +01:00
Kaspar Schiess 74e994eed1 - disables a test that wont run on most machines 2010-10-11 08:46:58 +02:00
tonyheadford 1761db89e9 Added new_superior arg to Net::LDAP rename method. This enables moving an entry in the tree by specifying the new parent container in addition to the rename entry functionality. Added a unit test file test_rename.rb for this method. 2010-07-19 20:52:10 +01:00
Austin Ziegler 64bcdd0912 Removing a stub file, lib/net/ldif.rb.
There is no value provided by this stub.
2010-04-19 01:52:39 -04:00
Rory O'Connell 6e9125df79 Split ldif test data file so regexp in 1.9.1 works 2010-04-15 17:01:43 -05:00
Rory O'Connell 896eaa533c Merge branch 'ldap-cleanup', remote branch 'halostatue/ldap-cleanup' into ldap-cleanup 2010-04-15 16:27:08 -05:00
Rory O'Connell f42773569f Merge branch 'ber-cleanup', remote branch 'halostatue/ber-cleanup' into ber-cleanup
Conflicts:
	test/test_ber.rb
2010-04-15 16:19:33 -05:00
Kaspar Schiess fefe50dcef . Converts test_ber into specs 2010-04-05 19:16:15 +02:00
Austin Ziegler 06ea324055 Cleanup of Dataset and Entry. 2010-03-27 14:51:01 -04:00
Austin Ziegler 28d58cd581 Importing, but disabling, tests from other repos. 2010-03-27 01:57:19 -04:00
Austin Ziegler 3e07125214 Adding experimental RFC4515 extensible filtering. 2010-03-22 13:56:37 +01:00
Austin Ziegler 31946c35c7 Rationalizing startup. 2010-03-13 00:20:07 -05:00
Rory OConnell de4021f2e1 Merge branch from kschiess 2010-02-12 10:42:29 -06:00
Kaspar Schiess 1509aa8ef6 ! Fixes all tests
Some code has been removed. Version control is not synonymous with code storage - if you're not using it now, you probably don't have working tests and the code will be buggy anyway. Write it when you need it.
2010-02-12 14:39:57 +01:00
Kaspar Schiess 75f37c58b9 ! Fixes tests for everything BUT the number conversion
This commit removes read_ber! since no one seems to be using it. YAGNI.
2010-02-12 11:59:46 +01:00
Rory OConnell 4c24cf239a Import fixes from kschiess 2010-02-10 12:13:59 -06:00
emiel afe6567a90 Use proper Ruby SHA1
* Ruby 1.8.[67] and 1.9's SHA1 is in 'digest/sha1'
2009-02-21 15:49:24 +00:00
emiel 6b5548ffd2 This commit is all about moving toward 'Hoe' as the project helper.
$ gem install hoe

To get there the following has been done:

 * Adhere to hoe naming conventions.
 * Migrate and update tests.
 * Consolidate and update documentation.
 * Prepare History.txt for release.
 * And I probably forgot something...
2008-11-14 23:22:30 +00:00