yard-fence 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cab9d088b1349a451adc56f4b43e267d8c94844044812b66c5a57eed3289148b
4
- data.tar.gz: d53f16b1762b761fa412527e325fccf3f0d2338d8d90e08f1b08a578d7f42ce2
3
+ metadata.gz: 5baded4374cd088861f834e9979c206e08dac16af4c52fdbf3d28ea1e7ce8c58
4
+ data.tar.gz: bf14fe77229b435e7361883d6dd6128bcff08f58ed8a7742fb88eb9223148a2d
5
5
  SHA512:
6
- metadata.gz: 164bcdf2a12d36a560ee1da0588de321822d16861e1b7c3ceed37bc1ec4a0bae89818b43fdb065ba8285a8512e9429ad5d21c2ab9a1fadfa2badfb627fe727a8
7
- data.tar.gz: f92d68174febc61638fb8c7537882062aafa9547f6afdfa2299e9937d861ba0e4ca67a1c1efccba3d5d6d969b6e5ce5742fac335e510036eaa26a2c1b6e49225
6
+ metadata.gz: 0c10875a2282e3e6613bdc39bcf37b5aa3507489a5f94406ded819765e3a9feb3ab1581c8a9a3e9c4b11e22564bafb0c7f137db6f7f038248e4d59827080cbdf
7
+ data.tar.gz: fae576e37e8f9c840bb5e6c772cfdfa7e8eb5e3a065ae9c3deda8d23860595a6827f52f529ae7d12944be2321d4fe0a74753e752505b8b2574a4df49704f1803
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -30,6 +30,17 @@ Please file a bug if you notice a violation of semantic versioning.
30
30
 
31
31
  ### Security
32
32
 
33
+ ## [0.3.0] - 2025-11-07
34
+
35
+ - TAG: [v0.3.0][0.3.0t]
36
+ - COVERAGE: 96.43% -- 81/84 lines in 4 files
37
+ - BRANCH COVERAGE: 93.75% -- 15/16 branches in 4 files
38
+ - 29.17% documented
39
+
40
+ ### Added
41
+
42
+ - yard/fence/hoist.rb: Hoisting the customized GFM kramdown parser
43
+
33
44
  ## [0.2.0] - 2025-11-07
34
45
 
35
46
  - TAG: [v0.2.0][0.2.0t]
@@ -51,6 +62,8 @@ Please file a bug if you notice a violation of semantic versioning.
51
62
 
52
63
  - Initial release
53
64
 
54
- [Unreleased]: https://github.com/galtzo-floss/yard-fence/compare/v0.2.0...HEAD
65
+ [Unreleased]: https://github.com/galtzo-floss/yard-fence/compare/v0.3.0...HEAD
66
+ [0.3.0]: https://github.com/galtzo-floss/yard-fence/compare/v0.2.0...v0.3.0
67
+ [0.3.0t]: https://github.com/galtzo-floss/yard-fence/releases/tag/v0.3.0
55
68
  [0.2.0]: https://github.com/galtzo-floss/yard-fence/compare/v0.1.0...v0.2.0
56
69
  [0.2.0t]: https://github.com/galtzo-floss/yard-fence/releases/tag/v0.2.0
data/README.md CHANGED
@@ -56,6 +56,22 @@ Just the important bits:
56
56
  - Prioritizes Kramdown's GFM parser so tables and fenced code blocks render correctly.
57
57
  - After YARD finishes generating HTML, restores fullwidth braces back to normal ASCII braces so code examples are copy‑pastable.
58
58
 
59
+ Create a `.yardopts` file like this:
60
+
61
+ ```text
62
+ --plugin fence
63
+ -e yard/fence/hoist.rb
64
+ --readme tmp/README.md
65
+ --markup markdown
66
+ --output docs
67
+ 'lib/**/*.rb'
68
+ -
69
+ 'tmp/*.md'
70
+ 'tmp/*.txt'
71
+ ```
72
+
73
+ See the configuration and usage sections for more details.
74
+
59
75
  ## 💡 Info you can shake a stick at
60
76
 
61
77
  | Tokens to Remember | [![Gem name][⛳️name-img]][⛳️gem-name] [![Gem namespace][⛳️namespace-img]][⛳️gem-namespace] |
@@ -175,7 +191,7 @@ Recommended .yardopts (noise‑free):
175
191
 
176
192
  ```text
177
193
  --plugin fence
178
- -e 'Yard::Fence.use_kramdown_gfm!'
194
+ -e yard/fence/hoist.rb
179
195
  --readme tmp/README.md
180
196
  --markup markdown
181
197
  --output docs
@@ -195,7 +211,7 @@ CLI example that would be similar to what is accomplished by the `.yardopts` fro
195
211
  ```bash
196
212
  yard doc \
197
213
  --plugin fence \
198
- -e 'Yard::Fence.use_kramdown_gfm!' \
214
+ -e yard/fence/hoist.rb \
199
215
  --readme tmp/README.md \
200
216
  lib/**/*.rb - tmp/*.md tmp/*.txt
201
217
  ```
@@ -0,0 +1,9 @@
1
+ if defined?(Yard::Fence) && Yard::Fence.respond_to?(:use_kramdown_gfm!)
2
+ if Yard::Fence.use_kramdown_gfm!
3
+ puts "[yard/fence/hoist] Kramdown GFM provider registered"
4
+ else
5
+ warn "[yard/fence/hoist] Kramdown GFM provider registration failed"
6
+ end
7
+ else
8
+ warn("[yard/fence/hoist] Yard::Fence.use_kramdown_gfm! not available; skipping")
9
+ end
@@ -3,7 +3,7 @@
3
3
  module Yard
4
4
  module Fence
5
5
  module Version
6
- VERSION = "0.2.0"
6
+ VERSION = "0.3.0"
7
7
  end
8
8
  VERSION = Version::VERSION
9
9
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yard-fence
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter H. Boling
@@ -306,6 +306,7 @@ files:
306
306
  - SECURITY.md
307
307
  - lib/yard-fence.rb
308
308
  - lib/yard/fence.rb
309
+ - lib/yard/fence/hoist.rb
309
310
  - lib/yard/fence/kramdown_gfm_document.rb
310
311
  - lib/yard/fence/version.rb
311
312
  - sig/kramdown.rbs
@@ -315,10 +316,10 @@ licenses:
315
316
  - MIT
316
317
  metadata:
317
318
  homepage_uri: https://yard-fence.galtzo.com/
318
- source_code_uri: https://github.com/galtzo-floss/yard-fence/tree/v0.2.0
319
- changelog_uri: https://github.com/galtzo-floss/yard-fence/blob/v0.2.0/CHANGELOG.md
319
+ source_code_uri: https://github.com/galtzo-floss/yard-fence/tree/v0.3.0
320
+ changelog_uri: https://github.com/galtzo-floss/yard-fence/blob/v0.3.0/CHANGELOG.md
320
321
  bug_tracker_uri: https://github.com/galtzo-floss/yard-fence/issues
321
- documentation_uri: https://www.rubydoc.info/gems/yard-fence/0.2.0
322
+ documentation_uri: https://www.rubydoc.info/gems/yard-fence/0.3.0
322
323
  funding_uri: https://github.com/sponsors/pboling
323
324
  wiki_uri: https://github.com/galtzo-floss/yard-fence/wiki
324
325
  news_uri: https://www.railsbling.com/tags/yard-fence
metadata.gz.sig CHANGED
Binary file