fakeldap 0.0.1 → 0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +7 -1
- data/lib/fakeldap.rb +133 -10
- data/lib/fakeldap/version.rb +1 -1
- metadata +50 -191
- data/vendor/ruby-ldapserver/COPYING +0 -27
- data/vendor/ruby-ldapserver/ChangeLog +0 -83
- data/vendor/ruby-ldapserver/Manifest.txt +0 -32
- data/vendor/ruby-ldapserver/README +0 -222
- data/vendor/ruby-ldapserver/Rakefile +0 -22
- data/vendor/ruby-ldapserver/doc/LDAP.html +0 -104
- data/vendor/ruby-ldapserver/doc/LDAP/Abandon.html +0 -112
- data/vendor/ruby-ldapserver/doc/LDAP/Error.html +0 -115
- data/vendor/ruby-ldapserver/doc/LDAP/ResultError.html +0 -241
- data/vendor/ruby-ldapserver/doc/LDAP/ResultError/AdminLimitExceeded.html +0 -158
- data/vendor/ruby-ldapserver/doc/LDAP/ResultError/AffectsMultipleDSAs.html +0 -158
- data/vendor/ruby-ldapserver/doc/LDAP/ResultError/AliasDereferencingProblem.html +0 -158
- data/vendor/ruby-ldapserver/doc/LDAP/ResultError/AliasProblem.html +0 -158
- data/vendor/ruby-ldapserver/doc/LDAP/ResultError/AttributeOrValueExists.html +0 -158
- data/vendor/ruby-ldapserver/doc/LDAP/ResultError/AuthMethodNotSupported.html +0 -158
- data/vendor/ruby-ldapserver/doc/LDAP/ResultError/Busy.html +0 -158
- data/vendor/ruby-ldapserver/doc/LDAP/ResultError/CompareFalse.html +0 -158
- data/vendor/ruby-ldapserver/doc/LDAP/ResultError/CompareTrue.html +0 -158
- data/vendor/ruby-ldapserver/doc/LDAP/ResultError/ConfidentialityRequired.html +0 -158
- data/vendor/ruby-ldapserver/doc/LDAP/ResultError/ConstraintViolation.html +0 -158
- data/vendor/ruby-ldapserver/doc/LDAP/ResultError/EntryAlreadyExists.html +0 -158
- data/vendor/ruby-ldapserver/doc/LDAP/ResultError/InappropriateAuthentication.html +0 -158
- data/vendor/ruby-ldapserver/doc/LDAP/ResultError/InappropriateMatching.html +0 -158
- data/vendor/ruby-ldapserver/doc/LDAP/ResultError/InsufficientAccessRights.html +0 -158
- data/vendor/ruby-ldapserver/doc/LDAP/ResultError/InvalidAttributeSyntax.html +0 -158
- data/vendor/ruby-ldapserver/doc/LDAP/ResultError/InvalidCredentials.html +0 -158
- data/vendor/ruby-ldapserver/doc/LDAP/ResultError/InvalidDNSyntax.html +0 -158
- data/vendor/ruby-ldapserver/doc/LDAP/ResultError/IsLeaf.html +0 -158
- data/vendor/ruby-ldapserver/doc/LDAP/ResultError/LoopDetect.html +0 -158
- data/vendor/ruby-ldapserver/doc/LDAP/ResultError/NamingViolation.html +0 -158
- data/vendor/ruby-ldapserver/doc/LDAP/ResultError/NoSuchAttribute.html +0 -158
- data/vendor/ruby-ldapserver/doc/LDAP/ResultError/NoSuchObject.html +0 -158
- data/vendor/ruby-ldapserver/doc/LDAP/ResultError/NotAllowedOnNonLeaf.html +0 -158
- data/vendor/ruby-ldapserver/doc/LDAP/ResultError/NotAllowedOnRDN.html +0 -158
- data/vendor/ruby-ldapserver/doc/LDAP/ResultError/ObjectClassModsProhibited.html +0 -158
- data/vendor/ruby-ldapserver/doc/LDAP/ResultError/ObjectClassViolation.html +0 -158
- data/vendor/ruby-ldapserver/doc/LDAP/ResultError/OperationsError.html +0 -158
- data/vendor/ruby-ldapserver/doc/LDAP/ResultError/Other.html +0 -158
- data/vendor/ruby-ldapserver/doc/LDAP/ResultError/ProtocolError.html +0 -158
- data/vendor/ruby-ldapserver/doc/LDAP/ResultError/Referral.html +0 -158
- data/vendor/ruby-ldapserver/doc/LDAP/ResultError/SaslBindInProgress.html +0 -158
- data/vendor/ruby-ldapserver/doc/LDAP/ResultError/SizeLimitExceeded.html +0 -158
- data/vendor/ruby-ldapserver/doc/LDAP/ResultError/StrongAuthRequired.html +0 -158
- data/vendor/ruby-ldapserver/doc/LDAP/ResultError/Success.html +0 -158
- data/vendor/ruby-ldapserver/doc/LDAP/ResultError/TimeLimitExceeded.html +0 -158
- data/vendor/ruby-ldapserver/doc/LDAP/ResultError/Unavailable.html +0 -158
- data/vendor/ruby-ldapserver/doc/LDAP/ResultError/UnavailableCriticalExtension.html +0 -158
- data/vendor/ruby-ldapserver/doc/LDAP/ResultError/UndefinedAttributeType.html +0 -158
- data/vendor/ruby-ldapserver/doc/LDAP/ResultError/UnwillingToPerform.html +0 -158
- data/vendor/ruby-ldapserver/doc/LDAP/Server.html +0 -1056
- data/vendor/ruby-ldapserver/doc/LDAP/Server/Connection.html +0 -1353
- data/vendor/ruby-ldapserver/doc/LDAP/Server/Filter.html +0 -634
- data/vendor/ruby-ldapserver/doc/LDAP/Server/MatchingRule.html +0 -1132
- data/vendor/ruby-ldapserver/doc/LDAP/Server/MatchingRule/DefaultMatchingClass.html +0 -219
- data/vendor/ruby-ldapserver/doc/LDAP/Server/MatchingRule/Equality.html +0 -170
- data/vendor/ruby-ldapserver/doc/LDAP/Server/MatchingRule/IA5Downcase.html +0 -143
- data/vendor/ruby-ldapserver/doc/LDAP/Server/MatchingRule/IA5Trim.html +0 -155
- data/vendor/ruby-ldapserver/doc/LDAP/Server/MatchingRule/Integer.html +0 -143
- data/vendor/ruby-ldapserver/doc/LDAP/Server/MatchingRule/Ordering.html +0 -212
- data/vendor/ruby-ldapserver/doc/LDAP/Server/MatchingRule/StringDowncase.html +0 -143
- data/vendor/ruby-ldapserver/doc/LDAP/Server/MatchingRule/StringTrim.html +0 -154
- data/vendor/ruby-ldapserver/doc/LDAP/Server/MatchingRule/Substrings.html +0 -177
- data/vendor/ruby-ldapserver/doc/LDAP/Server/Operation.html +0 -2994
- data/vendor/ruby-ldapserver/doc/LDAP/Server/Schema.html +0 -2024
- data/vendor/ruby-ldapserver/doc/LDAP/Server/Schema/AttributeType.html +0 -1462
- data/vendor/ruby-ldapserver/doc/LDAP/Server/Schema/ObjectClass.html +0 -1097
- data/vendor/ruby-ldapserver/doc/LDAP/Server/Syntax.html +0 -1254
- data/vendor/ruby-ldapserver/doc/LDAP/Server/VERSION.html +0 -134
- data/vendor/ruby-ldapserver/doc/_index.html +0 -662
- data/vendor/ruby-ldapserver/doc/class_list.html +0 -36
- data/vendor/ruby-ldapserver/doc/css/common.css +0 -1
- data/vendor/ruby-ldapserver/doc/css/full_list.css +0 -50
- data/vendor/ruby-ldapserver/doc/css/style.css +0 -303
- data/vendor/ruby-ldapserver/doc/file.README.html +0 -399
- data/vendor/ruby-ldapserver/doc/file_list.html +0 -38
- data/vendor/ruby-ldapserver/doc/frames.html +0 -13
- data/vendor/ruby-ldapserver/doc/index.html +0 -399
- data/vendor/ruby-ldapserver/doc/js/app.js +0 -204
- data/vendor/ruby-ldapserver/doc/js/full_list.js +0 -112
- data/vendor/ruby-ldapserver/doc/js/jquery.js +0 -154
- data/vendor/ruby-ldapserver/doc/method_list.html +0 -1571
- data/vendor/ruby-ldapserver/doc/top-level-namespace.html +0 -88
- data/vendor/ruby-ldapserver/examples/README +0 -89
- data/vendor/ruby-ldapserver/examples/mkcert.rb +0 -31
- data/vendor/ruby-ldapserver/examples/rbslapd1.rb +0 -111
- data/vendor/ruby-ldapserver/examples/rbslapd2.rb +0 -161
- data/vendor/ruby-ldapserver/examples/rbslapd3.rb +0 -172
- data/vendor/ruby-ldapserver/examples/speedtest.rb +0 -37
- data/vendor/ruby-ldapserver/lib/ldap/server.rb +0 -4
- data/vendor/ruby-ldapserver/lib/ldap/server/connection.rb +0 -276
- data/vendor/ruby-ldapserver/lib/ldap/server/filter.rb +0 -223
- data/vendor/ruby-ldapserver/lib/ldap/server/match.rb +0 -283
- data/vendor/ruby-ldapserver/lib/ldap/server/operation.rb +0 -487
- data/vendor/ruby-ldapserver/lib/ldap/server/preforkserver.rb +0 -93
- data/vendor/ruby-ldapserver/lib/ldap/server/result.rb +0 -71
- data/vendor/ruby-ldapserver/lib/ldap/server/schema.rb +0 -592
- data/vendor/ruby-ldapserver/lib/ldap/server/server.rb +0 -89
- data/vendor/ruby-ldapserver/lib/ldap/server/syntax.rb +0 -235
- data/vendor/ruby-ldapserver/lib/ldap/server/tcpserver.rb +0 -91
- data/vendor/ruby-ldapserver/lib/ldap/server/util.rb +0 -88
- data/vendor/ruby-ldapserver/lib/ldap/server/version.rb +0 -11
- data/vendor/ruby-ldapserver/test/core.schema +0 -582
- data/vendor/ruby-ldapserver/test/encoding_test.rb +0 -279
- data/vendor/ruby-ldapserver/test/filter_test.rb +0 -107
- data/vendor/ruby-ldapserver/test/match_test.rb +0 -59
- data/vendor/ruby-ldapserver/test/schema_test.rb +0 -113
- data/vendor/ruby-ldapserver/test/syntax_test.rb +0 -40
- data/vendor/ruby-ldapserver/test/test_helper.rb +0 -2
- data/vendor/ruby-ldapserver/test/util_test.rb +0 -51
@@ -1,143 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
-
<head>
|
5
|
-
<meta name="Content-Type" content="text/html; charset=utf-8" />
|
6
|
-
<title>Module: LDAP::Server::MatchingRule::StringDowncase</title>
|
7
|
-
<link rel="stylesheet" href="../../../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
8
|
-
<link rel="stylesheet" href="../../../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
9
|
-
|
10
|
-
<script type="text/javascript" charset="utf-8">
|
11
|
-
relpath = '../../..';
|
12
|
-
if (relpath != '') relpath += '/';
|
13
|
-
</script>
|
14
|
-
<script type="text/javascript" charset="utf-8" src="../../../js/jquery.js"></script>
|
15
|
-
<script type="text/javascript" charset="utf-8" src="../../../js/app.js"></script>
|
16
|
-
|
17
|
-
</head>
|
18
|
-
<body>
|
19
|
-
<script type="text/javascript" charset="utf-8">
|
20
|
-
if (window.top.frames.main) document.body.className = 'frames';
|
21
|
-
</script>
|
22
|
-
|
23
|
-
<div id="header">
|
24
|
-
<div id="menu">
|
25
|
-
|
26
|
-
<a href="../../../_index.html">Index (S)</a> »
|
27
|
-
<span class='title'><span class='object_link'><a href="../../../LDAP.html" title="LDAP (module)">LDAP</a></span></span> » <span class='title'><span class='object_link'><a href="../../Server.html" title="LDAP::Server (class)">Server</a></span></span> » <span class='title'><span class='object_link'><a href="../MatchingRule.html" title="LDAP::Server::MatchingRule (class)">MatchingRule</a></span></span>
|
28
|
-
»
|
29
|
-
<span class="title">StringDowncase</span>
|
30
|
-
|
31
|
-
|
32
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
33
|
-
</div>
|
34
|
-
|
35
|
-
<div id="search">
|
36
|
-
<a id="class_list_link" href="#">Class List</a>
|
37
|
-
<a id="method_list_link" href="#">Method List</a>
|
38
|
-
<a id ="file_list_link" href="#">File List</a>
|
39
|
-
</div>
|
40
|
-
|
41
|
-
<div class="clear"></div>
|
42
|
-
</div>
|
43
|
-
|
44
|
-
<iframe id="search_frame"></iframe>
|
45
|
-
|
46
|
-
<div id="content"><h1>Module: LDAP::Server::MatchingRule::StringDowncase
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
</h1>
|
51
|
-
|
52
|
-
<dl class="box">
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
<dt class="r1 last">Defined in:</dt>
|
62
|
-
<dd class="r1 last">lib/ldap/server/match.rb</dd>
|
63
|
-
|
64
|
-
</dl>
|
65
|
-
<div class="clear"></div>
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
<h2>
|
72
|
-
Instance Method Summary
|
73
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
74
|
-
</h2>
|
75
|
-
|
76
|
-
<ul class="summary">
|
77
|
-
|
78
|
-
<li class="public ">
|
79
|
-
<span class="summary_signature">
|
80
|
-
|
81
|
-
<a href="#normalize-instance_method" title="#normalize (instance method)">- (Object) <strong>normalize</strong>(x) </a>
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
</span>
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
95
|
-
|
96
|
-
</li>
|
97
|
-
|
98
|
-
|
99
|
-
</ul>
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
<div id="instance_method_details" class="method_details_list">
|
105
|
-
<h2>Instance Method Details</h2>
|
106
|
-
|
107
|
-
|
108
|
-
<div class="method_details first">
|
109
|
-
<p class="signature first" id="normalize-instance_method">
|
110
|
-
|
111
|
-
- (<tt>Object</tt>) <strong>normalize</strong>(x)
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
</p><table class="source_code">
|
116
|
-
<tr>
|
117
|
-
<td>
|
118
|
-
<pre class="lines">
|
119
|
-
|
120
|
-
|
121
|
-
183</pre>
|
122
|
-
</td>
|
123
|
-
<td>
|
124
|
-
<pre class="code"><span class="info file"># File 'lib/ldap/server/match.rb', line 183</span>
|
125
|
-
|
126
|
-
<span class='kw'>def</span> <span class='id normalize'>normalize</span><span class='lparen'>(</span><span class='id x'>x</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='id x'>x</span><span class='period'>.</span><span class='id downcase'>downcase</span><span class='period'>.</span><span class='id gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^\s*|\s*$</span><span class='regexp_end'>/</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>\s+</span><span class='regexp_end'>/</span></span><span class='comma'>,</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'> </span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
127
|
-
</td>
|
128
|
-
</tr>
|
129
|
-
</table>
|
130
|
-
</div>
|
131
|
-
|
132
|
-
</div>
|
133
|
-
|
134
|
-
</div>
|
135
|
-
|
136
|
-
<div id="footer">
|
137
|
-
Generated on Mon Sep 13 13:27:16 2010 by
|
138
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
139
|
-
0.6.0 (ruby-1.9.2).
|
140
|
-
</div>
|
141
|
-
|
142
|
-
</body>
|
143
|
-
</html>
|
@@ -1,154 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
-
<head>
|
5
|
-
<meta name="Content-Type" content="text/html; charset=utf-8" />
|
6
|
-
<title>Module: LDAP::Server::MatchingRule::StringTrim</title>
|
7
|
-
<link rel="stylesheet" href="../../../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
8
|
-
<link rel="stylesheet" href="../../../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
9
|
-
|
10
|
-
<script type="text/javascript" charset="utf-8">
|
11
|
-
relpath = '../../..';
|
12
|
-
if (relpath != '') relpath += '/';
|
13
|
-
</script>
|
14
|
-
<script type="text/javascript" charset="utf-8" src="../../../js/jquery.js"></script>
|
15
|
-
<script type="text/javascript" charset="utf-8" src="../../../js/app.js"></script>
|
16
|
-
|
17
|
-
</head>
|
18
|
-
<body>
|
19
|
-
<script type="text/javascript" charset="utf-8">
|
20
|
-
if (window.top.frames.main) document.body.className = 'frames';
|
21
|
-
</script>
|
22
|
-
|
23
|
-
<div id="header">
|
24
|
-
<div id="menu">
|
25
|
-
|
26
|
-
<a href="../../../_index.html">Index (S)</a> »
|
27
|
-
<span class='title'><span class='object_link'><a href="../../../LDAP.html" title="LDAP (module)">LDAP</a></span></span> » <span class='title'><span class='object_link'><a href="../../Server.html" title="LDAP::Server (class)">Server</a></span></span> » <span class='title'><span class='object_link'><a href="../MatchingRule.html" title="LDAP::Server::MatchingRule (class)">MatchingRule</a></span></span>
|
28
|
-
»
|
29
|
-
<span class="title">StringTrim</span>
|
30
|
-
|
31
|
-
|
32
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
33
|
-
</div>
|
34
|
-
|
35
|
-
<div id="search">
|
36
|
-
<a id="class_list_link" href="#">Class List</a>
|
37
|
-
<a id="method_list_link" href="#">Method List</a>
|
38
|
-
<a id ="file_list_link" href="#">File List</a>
|
39
|
-
</div>
|
40
|
-
|
41
|
-
<div class="clear"></div>
|
42
|
-
</div>
|
43
|
-
|
44
|
-
<iframe id="search_frame"></iframe>
|
45
|
-
|
46
|
-
<div id="content"><h1>Module: LDAP::Server::MatchingRule::StringTrim
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
</h1>
|
51
|
-
|
52
|
-
<dl class="box">
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
<dt class="r1 last">Defined in:</dt>
|
62
|
-
<dd class="r1 last">lib/ldap/server/match.rb</dd>
|
63
|
-
|
64
|
-
</dl>
|
65
|
-
<div class="clear"></div>
|
66
|
-
|
67
|
-
<h2>Overview</h2><div class="docstring">
|
68
|
-
<div class="discussion">
|
69
|
-
<p>
|
70
|
-
How is a DirectoryString different to an IA5String or a PrintableString?
|
71
|
-
</p>
|
72
|
-
|
73
|
-
|
74
|
-
</div>
|
75
|
-
</div>
|
76
|
-
<div class="tags">
|
77
|
-
|
78
|
-
</div>
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
<h2>
|
83
|
-
Instance Method Summary
|
84
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
85
|
-
</h2>
|
86
|
-
|
87
|
-
<ul class="summary">
|
88
|
-
|
89
|
-
<li class="public ">
|
90
|
-
<span class="summary_signature">
|
91
|
-
|
92
|
-
<a href="#normalize-instance_method" title="#normalize (instance method)">- (Object) <strong>normalize</strong>(x) </a>
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
</span>
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
106
|
-
|
107
|
-
</li>
|
108
|
-
|
109
|
-
|
110
|
-
</ul>
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
<div id="instance_method_details" class="method_details_list">
|
116
|
-
<h2>Instance Method Details</h2>
|
117
|
-
|
118
|
-
|
119
|
-
<div class="method_details first">
|
120
|
-
<p class="signature first" id="normalize-instance_method">
|
121
|
-
|
122
|
-
- (<tt>Object</tt>) <strong>normalize</strong>(x)
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
</p><table class="source_code">
|
127
|
-
<tr>
|
128
|
-
<td>
|
129
|
-
<pre class="lines">
|
130
|
-
|
131
|
-
|
132
|
-
179</pre>
|
133
|
-
</td>
|
134
|
-
<td>
|
135
|
-
<pre class="code"><span class="info file"># File 'lib/ldap/server/match.rb', line 179</span>
|
136
|
-
|
137
|
-
<span class='kw'>def</span> <span class='id normalize'>normalize</span><span class='lparen'>(</span><span class='id x'>x</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='id x'>x</span><span class='period'>.</span><span class='id gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^\s*|\s*$</span><span class='regexp_end'>/</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id gsub'>gsub</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>\s+</span><span class='regexp_end'>/</span></span><span class='comma'>,</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'> </span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
138
|
-
</td>
|
139
|
-
</tr>
|
140
|
-
</table>
|
141
|
-
</div>
|
142
|
-
|
143
|
-
</div>
|
144
|
-
|
145
|
-
</div>
|
146
|
-
|
147
|
-
<div id="footer">
|
148
|
-
Generated on Mon Sep 13 13:27:16 2010 by
|
149
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
150
|
-
0.6.0 (ruby-1.9.2).
|
151
|
-
</div>
|
152
|
-
|
153
|
-
</body>
|
154
|
-
</html>
|
@@ -1,177 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
-
<head>
|
5
|
-
<meta name="Content-Type" content="text/html; charset=utf-8" />
|
6
|
-
<title>Module: LDAP::Server::MatchingRule::Substrings</title>
|
7
|
-
<link rel="stylesheet" href="../../../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
8
|
-
<link rel="stylesheet" href="../../../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
9
|
-
|
10
|
-
<script type="text/javascript" charset="utf-8">
|
11
|
-
relpath = '../../..';
|
12
|
-
if (relpath != '') relpath += '/';
|
13
|
-
</script>
|
14
|
-
<script type="text/javascript" charset="utf-8" src="../../../js/jquery.js"></script>
|
15
|
-
<script type="text/javascript" charset="utf-8" src="../../../js/app.js"></script>
|
16
|
-
|
17
|
-
</head>
|
18
|
-
<body>
|
19
|
-
<script type="text/javascript" charset="utf-8">
|
20
|
-
if (window.top.frames.main) document.body.className = 'frames';
|
21
|
-
</script>
|
22
|
-
|
23
|
-
<div id="header">
|
24
|
-
<div id="menu">
|
25
|
-
|
26
|
-
<a href="../../../_index.html">Index (S)</a> »
|
27
|
-
<span class='title'><span class='object_link'><a href="../../../LDAP.html" title="LDAP (module)">LDAP</a></span></span> » <span class='title'><span class='object_link'><a href="../../Server.html" title="LDAP::Server (class)">Server</a></span></span> » <span class='title'><span class='object_link'><a href="../MatchingRule.html" title="LDAP::Server::MatchingRule (class)">MatchingRule</a></span></span>
|
28
|
-
»
|
29
|
-
<span class="title">Substrings</span>
|
30
|
-
|
31
|
-
|
32
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
33
|
-
</div>
|
34
|
-
|
35
|
-
<div id="search">
|
36
|
-
<a id="class_list_link" href="#">Class List</a>
|
37
|
-
<a id="method_list_link" href="#">Method List</a>
|
38
|
-
<a id ="file_list_link" href="#">File List</a>
|
39
|
-
</div>
|
40
|
-
|
41
|
-
<div class="clear"></div>
|
42
|
-
</div>
|
43
|
-
|
44
|
-
<iframe id="search_frame"></iframe>
|
45
|
-
|
46
|
-
<div id="content"><h1>Module: LDAP::Server::MatchingRule::Substrings
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
</h1>
|
51
|
-
|
52
|
-
<dl class="box">
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
<dt class="r1">Included in:</dt>
|
61
|
-
<dd class="r1"><span class='object_link'><a href="DefaultMatchingClass.html" title="LDAP::Server::MatchingRule::DefaultMatchingClass (class)">DefaultMatchingClass</a></span></dd>
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
<dt class="r2 last">Defined in:</dt>
|
66
|
-
<dd class="r2 last">lib/ldap/server/match.rb</dd>
|
67
|
-
|
68
|
-
</dl>
|
69
|
-
<div class="clear"></div>
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
<h2>
|
76
|
-
Instance Method Summary
|
77
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
78
|
-
</h2>
|
79
|
-
|
80
|
-
<ul class="summary">
|
81
|
-
|
82
|
-
<li class="public ">
|
83
|
-
<span class="summary_signature">
|
84
|
-
|
85
|
-
<a href="#substrings-instance_method" title="#substrings (instance method)">- (Object) <strong>substrings</strong>(vals, *ss) </a>
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
</span>
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
99
|
-
|
100
|
-
</li>
|
101
|
-
|
102
|
-
|
103
|
-
</ul>
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
<div id="instance_method_details" class="method_details_list">
|
109
|
-
<h2>Instance Method Details</h2>
|
110
|
-
|
111
|
-
|
112
|
-
<div class="method_details first">
|
113
|
-
<p class="signature first" id="substrings-instance_method">
|
114
|
-
|
115
|
-
- (<tt>Object</tt>) <strong>substrings</strong>(vals, *ss)
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
</p><table class="source_code">
|
120
|
-
<tr>
|
121
|
-
<td>
|
122
|
-
<pre class="lines">
|
123
|
-
|
124
|
-
|
125
|
-
125
|
126
|
-
126
|
127
|
-
127
|
128
|
-
128
|
129
|
-
129
|
130
|
-
130
|
131
|
-
131
|
132
|
-
132
|
133
|
-
133
|
134
|
-
134
|
135
|
-
135
|
136
|
-
136
|
137
|
-
137
|
138
|
-
138
|
139
|
-
139
|
140
|
-
140</pre>
|
141
|
-
</td>
|
142
|
-
<td>
|
143
|
-
<pre class="code"><span class="info file"># File 'lib/ldap/server/match.rb', line 125</span>
|
144
|
-
|
145
|
-
<span class='kw'>def</span> <span class='id substrings'>substrings</span><span class='lparen'>(</span><span class='id vals'>vals</span><span class='comma'>,</span> <span class='op'>*</span><span class='id ss'>ss</span><span class='rparen'>)</span>
|
146
|
-
<span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>if</span> <span class='id vals'>vals</span><span class='period'>.</span><span class='id nil?'>nil?</span>
|
147
|
-
|
148
|
-
<span class='comment'># convert the condition list into a regexp
|
149
|
-
</span> <span class='id re'>re</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
150
|
-
<span class='id re'>re</span> <span class='op'><<</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>^</span><span class='embexpr_beg'>#{</span><span class='const'>Regexp</span><span class='period'>.</span><span class='id escape'>escape</span><span class='lparen'>(</span><span class='id normalize'>normalize</span><span class='lparen'>(</span><span class='id ss'>ss</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='period'>.</span><span class='id to_s'>to_s</span><span class='rparen'>)</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span> <span class='kw'>if</span> <span class='id ss'>ss</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span>
|
151
|
-
<span class='id ss'>ss</span><span class='lbracket'>[</span><span class='int'>1</span><span class='op'>..</span><span class='op'>-</span><span class='int'>2</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id each'>each</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id s'>s</span><span class='op'>|</span> <span class='id re'>re</span> <span class='op'><<</span> <span class='const'>Regexp</span><span class='period'>.</span><span class='id escape'>escape</span><span class='lparen'>(</span><span class='id normalize'>normalize</span><span class='lparen'>(</span><span class='id s'>s</span><span class='rparen'>)</span><span class='period'>.</span><span class='id to_s'>to_s</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
152
|
-
<span class='id re'>re</span> <span class='op'><<</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='const'>Regexp</span><span class='period'>.</span><span class='id escape'>escape</span><span class='lparen'>(</span><span class='id normalize'>normalize</span><span class='lparen'>(</span><span class='id ss'>ss</span><span class='lbracket'>[</span><span class='op'>-</span><span class='int'>1</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='period'>.</span><span class='id to_s'>to_s</span><span class='rparen'>)</span><span class='rbrace'>}</span><span class='tstring_content'>$</span><span class='tstring_end'>"</span></span> <span class='kw'>if</span> <span class='id ss'>ss</span><span class='lbracket'>[</span><span class='op'>-</span><span class='int'>1</span><span class='rbracket'>]</span>
|
153
|
-
<span class='id re'>re</span> <span class='op'>=</span> <span class='const'>Regexp</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span><span class='id re'>re</span><span class='period'>.</span><span class='id join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>.*</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='rparen'>)</span>
|
154
|
-
|
155
|
-
<span class='id vals'>vals</span><span class='period'>.</span><span class='id each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id v'>v</span><span class='op'>|</span>
|
156
|
-
<span class='id v'>v</span> <span class='op'>=</span> <span class='id normalize'>normalize</span><span class='lparen'>(</span><span class='id v'>v</span><span class='rparen'>)</span><span class='period'>.</span><span class='id to_s'>to_s</span>
|
157
|
-
<span class='kw'>return</span> <span class='kw'>true</span> <span class='kw'>if</span> <span class='id re'>re</span><span class='period'>.</span><span class='id match'>match</span><span class='lparen'>(</span><span class='id v'>v</span><span class='rparen'>)</span>
|
158
|
-
<span class='kw'>end</span>
|
159
|
-
<span class='kw'>return</span> <span class='kw'>false</span>
|
160
|
-
<span class='kw'>end</span></pre>
|
161
|
-
</td>
|
162
|
-
</tr>
|
163
|
-
</table>
|
164
|
-
</div>
|
165
|
-
|
166
|
-
</div>
|
167
|
-
|
168
|
-
</div>
|
169
|
-
|
170
|
-
<div id="footer">
|
171
|
-
Generated on Mon Sep 13 13:27:16 2010 by
|
172
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
173
|
-
0.6.0 (ruby-1.9.2).
|
174
|
-
</div>
|
175
|
-
|
176
|
-
</body>
|
177
|
-
</html>
|