Skip to content

Commit f67e672

Browse files
committed
📝 Complete inline YARD docs
1 parent 56a73bc commit f67e672

40 files changed

+1976
-601
lines changed

.rubocop_gradual.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"lib/omniauth-ldap/adaptor.rb:928056405": [
3-
[68, 7, 413, "Style/ClassMethodsDefinitions: Use `class << self` to define a class method.", 105664470]
2+
"lib/omniauth-ldap/adaptor.rb:4205312053": [
3+
[134, 7, 413, "Style/ClassMethodsDefinitions: Use `class << self` to define a class method.", 105664470]
44
],
55
"spec/integration/middleware_spec.rb:2185613788": [
66
[3, 16, 39, "RSpec/DescribeClass: The first argument to describe should be the class or module being tested.", 638096201],

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Please file a bug if you notice a violation of semantic versioning.
2323
### Added
2424

2525
- Documentation cleanup & updates
26+
- YARD documentation covering 94% of the code
2627

2728
### Changed
2829

docs/OmniAuth.html

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,49 @@
7878

7979
<dl>
8080
<dt>Defined in:</dt>
81-
<dd>lib/omniauth-ldap/adaptor.rb<span class="defines">,<br />
82-
lib/omniauth-ldap/version.rb,<br /> lib/omniauth/strategies/ldap.rb</span>
81+
<dd>lib/omniauth/strategies/ldap.rb<span class="defines">,<br />
82+
lib/omniauth-ldap/adaptor.rb,<br /> lib/omniauth-ldap/version.rb</span>
8383
</dd>
8484
</dl>
8585

8686
</div>
8787

88-
<h2>Defined Under Namespace</h2>
88+
<h2>Overview</h2><div class="docstring">
89+
<div class="discussion">
90+
<p>OmniAuth strategies namespace.</p>
91+
92+
<p>This file implements an LDAP authentication strategy for OmniAuth.<br />
93+
It provides both an interactive request phase (login form) and a<br />
94+
callback phase which binds to an LDAP directory to authenticate the<br />
95+
user or performs a lookup for header-based SSO.</p>
96+
97+
<p>The strategy exposes a number of options (see <code>option</code> calls below)<br />
98+
that control LDAP connection, mapping of LDAP attributes to the<br />
99+
OmniAuth <code>info</code> hash, header-based SSO behavior, and SSL/timeouts.</p>
100+
101+
102+
</div>
103+
</div>
104+
<div class="tags">
105+
106+
<div class="examples">
107+
<h4 class="tag_title">Examples:</h4>
108+
109+
110+
<h5 class="example_title"><div class='inline'><p>Minimal Rack mounting</p>
111+
</div></h5>
112+
113+
<pre class="example code"><code><span class='id identifier rubyid_use'>use</span> <span class='const'>OmniAuth</span><span class='op'>::</span><span class='const'>Builder</span> <span class='kw'>do</span>
114+
<span class='id identifier rubyid_provider'>provider</span> <span class='symbol'>:ldap</span><span class='comma'>,</span> <span class='lbrace'>{</span>
115+
<span class='label'>host:</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>ldap.example.com</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
116+
<span class='label'>base:</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>dc=example,dc=com</span><span class='tstring_end'>&#39;</span></span>
117+
<span class='rbrace'>}</span>
118+
<span class='kw'>end</span></code></pre>
119+
120+
</div>
121+
122+
123+
</div><h2>Defined Under Namespace</h2>
89124
<p class="children">
90125

91126

@@ -107,7 +142,7 @@ <h2>Defined Under Namespace</h2>
107142
</div>
108143

109144
<div id="footer">
110-
Generated on Fri Nov 7 14:40:47 2025 by
145+
Generated on Mon Nov 10 14:11:47 2025 by
111146
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
112147
0.9.37 (ruby-3.4.7).
113148
</div>

docs/OmniAuth/LDAP.html

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,26 @@ <h2>
109109
<dt id="VERSION-constant" class="">VERSION =
110110
<div class="docstring">
111111
<div class="discussion">
112-
<p>Make VERSION available in traditional way</p>
112+
<p>Convenience constant for consumers that expect OmniAuth::LDAP::VERSION</p>
113113

114114

115115
</div>
116116
</div>
117117
<div class="tags">
118118

119+
<p class="tag_title">Returns:</p>
120+
<ul class="return">
121+
122+
<li>
123+
124+
125+
<span class='type'>(<tt>String</tt>)</span>
126+
127+
128+
129+
</li>
130+
131+
</ul>
119132

120133
</div>
121134
</dt>
@@ -135,7 +148,7 @@ <h2>
135148
</div>
136149

137150
<div id="footer">
138-
Generated on Fri Nov 7 14:40:47 2025 by
151+
Generated on Mon Nov 10 14:11:47 2025 by
139152
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
140153
0.9.37 (ruby-3.4.7).
141154
</div>

0 commit comments

Comments
 (0)