Skip to content

Commit a32db67

Browse files
committed
🚨 Change documentation to work around rubocop-md bug
- rubocop/rubocop-md#28
1 parent 2e8899c commit a32db67

28 files changed

+72
-58
lines changed

.rubocop.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ Lint/UnusedBlockArgument:
4242
- 'vendor/**/*'
4343
- '**/.irbrc'
4444

45+
# Test if we can turn this back on after upgrading rubocop-md.
46+
# It is still an open issue, so not expecting it to be fixed.
47+
# See: https://github.com/rubocop/rubocop-md/issues/28
48+
Layout/InitialIndentation:
49+
Enabled: false
50+
4551
Style/ClassVars:
4652
Enabled: false
4753

README.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -509,29 +509,35 @@ As of v2.0.11, if you need to serialize the parsed result, you can!
509509

510510
There are two ways to do this, globally, or discretely. The discrete way is recommended.
511511

512-
1. Globally configure `SnakyHash::StringKeyed` to use the serializer. Put this in your code somewhere reasonable (like an initializer for Rails):
512+
##### Global Serialization Config
513513

514-
```ruby
514+
Globally configure `SnakyHash::StringKeyed` to use the serializer. Put this in your code somewhere reasonable (like an initializer for Rails).
515+
516+
```ruby
515517
SnakyHash::StringKeyed.class_eval do
516518
extend SnakyHash::Serializer
517519
end
518-
```
520+
```
521+
522+
##### Discrete Serialization Config
519523

520-
2. Discretely configure a custom Snaky Hash class to use the serializer:
524+
Discretely configure a custom Snaky Hash class to use the serializer.
521525

522-
```ruby
526+
```ruby
523527
class MySnakyHash < SnakyHash::StringKeyed
524528
# Give this hash class `dump` and `load` abilities!
525529
extend SnakyHash::Serializer
526530
end
527531

528-
# And tell your client to use the custom class in each call:
532+
# And tell your client to use the custom class in each call:
529533
client = OAuth2::Client.new("client_id", "client_secret", site: "https://example.org/oauth2")
530534
token = client.get_token({snaky_hash_klass: MySnakyHash})
531-
```
535+
```
532536

533537
##### Serialization Extensions
534538

539+
These extensions work regardless of whether you used the global or discrete config above.
540+
535541
There are a few hacks you may need in your class to support Ruby < 2.4.2 or < 2.6.
536542
They are likely not needed if you are on a newer Ruby.
537543
See `response_spec.rb` if you need to study the hacks for older Rubies.
@@ -791,7 +797,7 @@ For example:
791797
spec.add_dependency("oauth2", "~> 2.0")
792798
```
793799

794-
See [CHANGELOG.md][📌changelog] for list of releases.
800+
See [CHANGELOG.md][📌changelog] for a list of releases.
795801

796802
## 📄 License
797803

docs/OAuth2.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ <h3 class="signature first" id="configure-class_method">
326326
</div>
327327

328328
<div id="footer">
329-
Generated on Sun Jun 1 05:31:39 2025 by
329+
Generated on Sun Jun 1 06:10:10 2025 by
330330
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
331331
0.9.37 (ruby-3.4.3).
332332
</div>

docs/OAuth2/AccessToken.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3069,7 +3069,7 @@ <h3 class="signature " id="to_hash-instance_method">
30693069
</div>
30703070

30713071
<div id="footer">
3072-
Generated on Sun Jun 1 05:31:39 2025 by
3072+
Generated on Sun Jun 1 06:10:10 2025 by
30733073
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
30743074
0.9.37 (ruby-3.4.3).
30753075
</div>

docs/OAuth2/Authenticator.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ <h3 class="signature first" id="apply-instance_method">
631631
</div>
632632

633633
<div id="footer">
634-
Generated on Sun Jun 1 05:31:39 2025 by
634+
Generated on Sun Jun 1 06:10:10 2025 by
635635
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
636636
0.9.37 (ruby-3.4.3).
637637
</div>

docs/OAuth2/Client.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2651,7 +2651,7 @@ <h3 class="signature " id="token_url-instance_method">
26512651
</div>
26522652

26532653
<div id="footer">
2654-
Generated on Sun Jun 1 05:31:39 2025 by
2654+
Generated on Sun Jun 1 06:10:10 2025 by
26552655
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
26562656
0.9.37 (ruby-3.4.3).
26572657
</div>

docs/OAuth2/Error.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ <h3 class="signature " id="response-instance_method">
518518
</div>
519519

520520
<div id="footer">
521-
Generated on Sun Jun 1 05:31:39 2025 by
521+
Generated on Sun Jun 1 06:10:10 2025 by
522522
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
523523
0.9.37 (ruby-3.4.3).
524524
</div>

docs/OAuth2/FilteredAttributes.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ <h3 class="signature first" id="inspect-instance_method">
268268
</div>
269269

270270
<div id="footer">
271-
Generated on Sun Jun 1 05:31:39 2025 by
271+
Generated on Sun Jun 1 06:10:10 2025 by
272272
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
273273
0.9.37 (ruby-3.4.3).
274274
</div>

docs/OAuth2/FilteredAttributes/ClassMethods.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ <h3 class="signature " id="filtered_attributes-instance_method">
218218
</div>
219219

220220
<div id="footer">
221-
Generated on Sun Jun 1 05:31:39 2025 by
221+
Generated on Sun Jun 1 06:10:10 2025 by
222222
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
223223
0.9.37 (ruby-3.4.3).
224224
</div>

docs/OAuth2/Response.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1619,7 +1619,7 @@ <h3 class="signature " id="status-instance_method">
16191619
</div>
16201620

16211621
<div id="footer">
1622-
Generated on Sun Jun 1 05:31:39 2025 by
1622+
Generated on Sun Jun 1 06:10:10 2025 by
16231623
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
16241624
0.9.37 (ruby-3.4.3).
16251625
</div>

0 commit comments

Comments
 (0)