public
Description: Ambition adapter for ActiveLdap
Clone URL: git://github.com/automatthew/ambitious_activeldap.git
updated license and Rakefile author info; changed readme for ldap
automatthew (author)
Wed Jan 30 17:42:57 -0800 2008
commit  01db224c5842e4752362dc2582b6866ae373b143
tree    170d785b5a24d7d2faff89033f24e05cccb8dd35
parent  6220a5f0b7daee780f55a55eaf68b907201295f3
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
0
@@ -0,0 +1,18 @@
0
+Copyright (c) 2007 Chris Wanstrath & Matthew King
0
+
0
+Permission is hereby granted, free of charge, to any person obtaining a copy of
0
+this software and associated documentation files (the "Software"), to deal in
0
+the Software without restriction, including without limitation the rights to
0
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
0
+the Software, and to permit persons to whom the Software is furnished to do so,
0
+subject to the following conditions:
0
+
0
+The above copyright notice and this permission notice shall be included in all
0
+copies or substantial portions of the Software.
0
+
0
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
0
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
0
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
0
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
0
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
0
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
0
@@ -0,0 +1,44 @@
0
+h2. An Ambitious ActiveLdap Adapter
0
+
0
+Write LDAP search filters in Ruby. Awesomeness courtesy of Chris Wanstrath's Ambition library.
0
+
0
+h2. Get It
0
+
0
+@$ sudo gem install ambitious-activeldap@
0
+
0
+
0
+<pre>
0
+require 'rubygems'
0
+require 'ambition/adapters/active_ldap'
0
+</pre>
0
+
0
+h2. Examples
0
+
0
+<ruby>
0
+User.select { |u| u.givenName == 'Severian' }.each do |user|
0
+ puts user.name
0
+end
0
+</ruby>
0
+
0
+Queries don't run until you kick them. This adapter supports only the basic kicker methods: @each@, @each_with_index@, @map@, @entries@, @to_a@.
0
+
0
+This adapter also doesn't support the methods that require sorting, slicing, or counting, because OpenLDAP effectively doesn't support such things. ActiveLdap lets you request sorted and sliced result sets, but it does the work in Ruby, so you might as well do it yourself.
0
+
0
+You can call @to_s@, but not @to_hash@ on a query. @to_s@ returns the LDAP search filter as a string.
0
+
0
+<ruby>
0
+>> User.select { |m| m.givenName == 'Jonas' }.to_s
0
+=> "(givenName=Jonas)"
0
+</ruby>
0
+
0
+
0
+
0
+h2. Issues.find(:all, :filter => "(type=bug)")
0
+
0
+Found a bug? Sweet. Add it at "the Lighthouse":http://err.lighthouseapp.com/projects/466-plugins/tickets/new.
0
+
0
+More information on Ambition:
0
+
0
+ * "http://ambition.rubyforge.org":http://ambition.rubyforge.org
0
+ * "http://groups.google.com/group/ambition-rb/":http://groups.google.com/group/ambition-rb/
0
+
...
11
12
13
14
15
 
 
16
17
18
...
11
12
13
 
 
14
15
16
17
18
0
@@ -11,8 +11,8 @@ begin
0
   Echoe.new('ambitious-activeldap') do |p|
0
     p.dependencies << 'ruby-activeldap >=0.8.3.1'
0
     p.summary = "An ambitious adapter for ActiveLDAP"
0
- p.author = 'Chris Wanstrath'
0
- p.email = "chris@ozmm.org"
0
+ p.author = 'Matthew King'
0
+ p.email = "automatthew@gmail.com"
0
 
0
     p.project = 'ambition'
0
     p.url = "http://ambition.rubyforge.org/"

Comments

    No one has commented yet.