readme_yard 0.3.0 → 0.5.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: 755f223afede15fbac8b87531730204494747aaf8b95302bf0cae4ca9a8822d3
4
- data.tar.gz: b765382a63cf98480cf2e557f793272c046f18916313b8907875f0fa70e4ee30
3
+ metadata.gz: '0368a7e25427d9424b42730fcafc891842b799a7dbf5bace1045b5e5be5d5249'
4
+ data.tar.gz: 666018d5b0fa0922c60b39a6146de0becfa7ba786fe58d9806eb9afcbacb8a01
5
5
  SHA512:
6
- metadata.gz: fcc797e2dd79799f06c8acfd1737b901f010b8b52300e77fa78cf0be48b249f43e3968a23a74cb5b8243072d17008e87a77ac77e91715c81724b7fc50bab5d82
7
- data.tar.gz: 12bdfd98250616c6379d1563a92de7cc9ae3b436746f96057bf6f66feea3ba1dafc045a631579960ac0cc0fb829ea51dbf9df8aec5e94257cc270c07cc3fe72a
6
+ metadata.gz: bfdf64d212db54ad7eff6af8c862915e05aacdf66117dff16378bdaae989685dbe9342f8f9d9b5ee26b67fed6e198e34a8618548d3dbc9b175cbc5732c5b9e4e
7
+ data.tar.gz: 4f25eac729b4a0b843fef0902c4f13a8116e9116ba77642c99f6b7025f87e4e965fe4b40d5fc6f1e8d8ea58cd93c0e80294f8fd616bf93be1570e9c36d671bcf
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## 0.5.0 - 2025-05-08
2
+
3
+ - Enhance string tag normalization to support single quotes
4
+
5
+ ## 0.4.0 - 2025-05-05
6
+
7
+ - Added colored diff output when readme build/yard commands finish, showing changes to README.md using the Diffy gem
8
+ - Changed default options for `readme yard` command to display YARD doc stats
9
+ - Added code version display in README.md showing current version from ReadmeYard::VERSION
10
+
1
11
  ## 0.3.0 - 2025-05-04
2
12
 
3
13
  - Update dependencies: upgraded yard-readme to 0.5.0, Ruby requirement to >= 3.0
data/Gemfile.lock CHANGED
@@ -1,7 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- readme_yard (0.3.0)
4
+ readme_yard (0.5.0)
5
+ diffy (~> 3.4)
5
6
  tty-markdown (~> 0.7)
6
7
  yard (~> 0.9)
7
8
  yard-readme (~> 0.5)
@@ -14,6 +15,7 @@ GEM
14
15
  debug (1.10.0)
15
16
  irb (~> 1.10)
16
17
  reline (>= 0.3.8)
18
+ diffy (3.4.3)
17
19
  io-console (0.8.0)
18
20
  irb (1.15.2)
19
21
  pp (>= 0.6.0)
@@ -46,7 +48,7 @@ GEM
46
48
  io-console (~> 0.5)
47
49
  rexml (3.4.1)
48
50
  rouge (4.5.2)
49
- rubocop (1.75.4)
51
+ rubocop (1.75.5)
50
52
  json (~> 2.3)
51
53
  language_server-protocol (~> 3.17.0.2)
52
54
  lint_roller (~> 1.1.0)
@@ -79,7 +81,7 @@ GEM
79
81
  unicode-display_width (2.6.0)
80
82
  unicode_utils (1.4.0)
81
83
  yard (0.9.37)
82
- yard-readme (0.5.0)
84
+ yard-readme (0.6.0)
83
85
 
84
86
  PLATFORMS
85
87
  arm64-darwin-24
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Readme Yard 🌿
2
2
  [![Gem Version](https://badge.fury.io/rb/readme_yard.svg)](https://badge.fury.io/rb/readme_yard)
3
3
 
4
+ **Code Version: 0.4.0**
5
+
4
6
  Build a better README with [YARD](https://yardoc.org)
5
7
  by generating it straight from the source.
6
8
 
@@ -17,14 +19,12 @@ If you're reading the README, that means this text is here
17
19
  because the custom `{@readme ReadmeYard}` markdown tag is in
18
20
  README_YARD.md and `readme build` was run at the command line.
19
21
 
20
- Here's the [full documentation](https://rubydoc.info/github/mattruzicka/readme_yard).
21
-
22
22
 
23
23
  ---
24
24
 
25
25
  ⚠️ **Generated file warning** – Edit README_YARD.md, not README.md. Changes to README.md will be lost when running `readme build`.
26
26
 
27
- ### Future Work
27
+ **Future Work**
28
28
  - Implement safeguards to prevent accidental edits to README.md
29
29
  - Support bidirectional editing through git integration
30
30
 
@@ -41,6 +41,7 @@ Here's the [full documentation](https://rubydoc.info/github/mattruzicka/readme_y
41
41
  - [Standalone Tag Usage](#standalone-tag-usage)
42
42
  - [Example Tag](#example-tag)
43
43
  - [Contributing](#contributing)
44
+ - [Documentation](https://mattruzicka.github.io/readme_yard/)
44
45
 
45
46
  ---
46
47
 
@@ -68,6 +69,8 @@ See [Tag Usage](#tag-usage).
68
69
 
69
70
  `readme yard` - Same as `readme build` + generates yard docs.
70
71
 
72
+ `readme version` - Prints the current version of ReadmeYard.
73
+
71
74
 
72
75
  ---
73
76
 
@@ -93,7 +96,7 @@ When the Readme Yard build process encounters a tag in README_YARD.md, it search
93
96
 
94
97
  ### Examples
95
98
 
96
- The next line is a code snippet if you're looking at [README.md](https://github.com/mattruzicka/README/blob/main/README_YARD.md) and `{@readme ReadmeYard::ExampleTag.hello_world}` if you're looking at [README_YARD.md](https://github.com/mattruzicka/readme_yard/blob/main/README_YARD.md).
99
+ The next line is a code snippet if you're looking at the [README](https://github.com/mattruzicka/readme_yard/blob/main/README.md) and `{@readme ReadmeYard::ExampleTag.hello_world}` if you're looking at [README_YARD.md](https://github.com/mattruzicka/readme_yard/blob/main/README_YARD.md).
97
100
 
98
101
  ```ruby
99
102
  #
@@ -289,10 +292,6 @@ ReadmeYard::ExampleTag.hello_world #=> "Hello 🌎 🌍 🌏"
289
292
 
290
293
  ## Contributing
291
294
 
292
- Bug reports and pull requests are welcome on GitHub at https://github.com/mattruzicka/yard-readme.
293
-
294
- If you're interested in contributing, but don't know where to get started, feel free to message me on twitter at [@mattruzicka](https://twitter.com/mattruzicka). I have a lot of ideas!
295
-
296
- Thanks for taking the time to think about me, the README.
295
+ Bug reports and pull requests are welcome on GitHub at https://github.com/mattruzicka/readme_yard.
297
296
 
298
- 🌿 🥏 🌱
297
+ Thanks for reading me, the README that documents how to document the README with code that documents itself 🤯
data/README_YARD.md CHANGED
@@ -1,13 +1,15 @@
1
1
  # Readme Yard 🌿
2
2
  [![Gem Version](https://badge.fury.io/rb/readme_yard.svg)](https://badge.fury.io/rb/readme_yard)
3
3
 
4
+ **Code Version: {@string ReadmeYard::VERSION}**
5
+
4
6
  {@readme ReadmeYard}
5
7
 
6
8
  ---
7
9
 
8
10
  ⚠️ **Generated file warning** – Edit README_YARD.md, not README.md. Changes to README.md will be lost when running `readme build`.
9
11
 
10
- ### Future Work
12
+ **Future Work**
11
13
  - Implement safeguards to prevent accidental edits to README.md
12
14
  - Support bidirectional editing through git integration
13
15
 
@@ -24,6 +26,7 @@
24
26
  - [Standalone Tag Usage](#standalone-tag-usage)
25
27
  - [Example Tag](#example-tag)
26
28
  - [Contributing](#contributing)
29
+ - [Documentation]({@string ReadmeYard::DOCS_URL})
27
30
 
28
31
  ---
29
32
 
@@ -69,7 +72,7 @@ When the Readme Yard build process encounters a tag in README_YARD.md, it search
69
72
 
70
73
  ### Examples
71
74
 
72
- The next line is a code snippet if you're looking at [README.md](https://github.com/mattruzicka/README/blob/main/README_YARD.md) and `{@readme ReadmeYard::ExampleTag.hello_world}` if you're looking at [README_YARD.md](https://github.com/mattruzicka/readme_yard/blob/main/README_YARD.md).
75
+ The next line is a code snippet if you're looking at the [README](https://github.com/mattruzicka/readme_yard/blob/main/README.md) and `{@readme ReadmeYard::ExampleTag.hello_world}` if you're looking at [README_YARD.md](https://github.com/mattruzicka/readme_yard/blob/main/README_YARD.md).
73
76
 
74
77
  {@readme ReadmeYard::ExampleTag.hello_world}
75
78
 
@@ -187,10 +190,6 @@ The below example code is generated from `{@example ReadmeYard::ExampleTag.hello
187
190
 
188
191
  ## Contributing
189
192
 
190
- Bug reports and pull requests are welcome on GitHub at https://github.com/mattruzicka/yard-readme.
191
-
192
- If you're interested in contributing, but don't know where to get started, feel free to message me on twitter at [@mattruzicka](https://twitter.com/mattruzicka). I have a lot of ideas!
193
-
194
- Thanks for taking the time to think about me, the README.
193
+ Bug reports and pull requests are welcome on GitHub at https://github.com/mattruzicka/readme_yard.
195
194
 
196
- 🌿 🥏 🌱
195
+ Thanks for reading me, the README that documents how to document the README with code that documents itself 🤯
@@ -0,0 +1,273 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Class: ReadmeYard::CodeTag
8
+
9
+ &mdash; Documentation by YARD 0.9.37
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" />
16
+
17
+ <script type="text/javascript">
18
+ pathId = "ReadmeYard::CodeTag";
19
+ relpath = '../';
20
+ </script>
21
+
22
+
23
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
24
+
25
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="../class_list.html?1"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
38
+
39
+ <a href="../_index.html">Index (C)</a> &raquo;
40
+ <span class='title'><span class='object_link'><a href="../ReadmeYard.html" title="ReadmeYard (class)">ReadmeYard</a></span></span>
41
+ &raquo;
42
+ <span class="title">CodeTag</span>
43
+
44
+ </div>
45
+
46
+ <div id="search">
47
+
48
+ <a class="full_list_link" id="class_list_link"
49
+ href="../class_list.html">
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <div id="content"><h1>Class: ReadmeYard::CodeTag
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+ <dl>
70
+ <dt>Inherits:</dt>
71
+ <dd>
72
+ <span class="inheritName">Object</span>
73
+
74
+ <ul class="fullTree">
75
+ <li>Object</li>
76
+
77
+ <li class="next">ReadmeYard::CodeTag</li>
78
+
79
+ </ul>
80
+ <a href="#" class="inheritanceTree">show all</a>
81
+
82
+ </dd>
83
+ </dl>
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+ <dl>
96
+ <dt>Defined in:</dt>
97
+ <dd>lib/readme_yard/code_tag.rb</dd>
98
+ </dl>
99
+
100
+ </div>
101
+
102
+ <h2>Overview</h2><div class="docstring">
103
+ <div class="discussion">
104
+ <p>Embed Ruby code</p>
105
+
106
+
107
+ </div>
108
+ </div>
109
+ <div class="tags">
110
+
111
+ <div class="examples">
112
+ <h4 class="tag_title">Examples:</h4>
113
+
114
+
115
+ <pre class="example code"><code><span class='comment'># @readme code</span></code></pre>
116
+
117
+ </div>
118
+
119
+
120
+ </div>
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+ <h2>
129
+ Class Method Summary
130
+ <small><a href="#" class="summary_toggle">collapse</a></small>
131
+ </h2>
132
+
133
+ <ul class="summary">
134
+
135
+ <li class="public ">
136
+ <span class="summary_signature">
137
+
138
+ <a href="#format_tag-class_method" title="format_tag (class method)">.<strong>format_tag</strong>(yard_object, _tag) &#x21d2; Object </a>
139
+
140
+
141
+
142
+ </span>
143
+
144
+
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+ <span class="summary_desc"><div class='inline'><p>The code for this method is in the README because <code>@readme code</code> is below (in the source code).</p>
153
+ </div></span>
154
+
155
+ </li>
156
+
157
+
158
+ <li class="public ">
159
+ <span class="summary_signature">
160
+
161
+ <a href="#format_yard_object-class_method" title="format_yard_object (class method)">.<strong>format_yard_object</strong>(yard_object) &#x21d2; Object </a>
162
+
163
+
164
+
165
+ </span>
166
+
167
+
168
+
169
+
170
+
171
+
172
+
173
+
174
+
175
+ <span class="summary_desc"><div class='inline'>
176
+ </div></span>
177
+
178
+ </li>
179
+
180
+
181
+ </ul>
182
+
183
+
184
+
185
+
186
+ <div id="class_method_details" class="method_details_list">
187
+ <h2>Class Method Details</h2>
188
+
189
+
190
+ <div class="method_details first">
191
+ <h3 class="signature first" id="format_tag-class_method">
192
+
193
+ .<strong>format_tag</strong>(yard_object, _tag) &#x21d2; <tt>Object</tt>
194
+
195
+
196
+
197
+
198
+
199
+ </h3><div class="docstring">
200
+ <div class="discussion">
201
+ <p>The code for this method is in the README because
202
+ <code>@readme code</code> is below (in the source code).</p>
203
+
204
+
205
+ </div>
206
+ </div>
207
+ <div class="tags">
208
+
209
+
210
+ </div><table class="source_code">
211
+ <tr>
212
+ <td>
213
+ <pre class="lines">
214
+
215
+
216
+ 19
217
+ 20
218
+ 21</pre>
219
+ </td>
220
+ <td>
221
+ <pre class="code"><span class="info file"># File 'lib/readme_yard/code_tag.rb', line 19</span>
222
+
223
+ <span class='kw'>def</span> <span class='id identifier rubyid_format_tag'>format_tag</span><span class='lparen'>(</span><span class='id identifier rubyid_yard_object'>yard_object</span><span class='comma'>,</span> <span class='id identifier rubyid__tag'>_tag</span><span class='rparen'>)</span>
224
+ <span class='const'><span class='object_link'><a href="ExampleTag.html" title="ReadmeYard::ExampleTag (class)">ExampleTag</a></span></span><span class='period'>.</span><span class='id identifier rubyid_format_ruby'><span class='object_link'><a href="ExampleTag.html#format_ruby-class_method" title="ReadmeYard::ExampleTag.format_ruby (method)">format_ruby</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_yard_object'>yard_object</span><span class='period'>.</span><span class='id identifier rubyid_source'>source</span><span class='rparen'>)</span>
225
+ <span class='kw'>end</span></pre>
226
+ </td>
227
+ </tr>
228
+ </table>
229
+ </div>
230
+
231
+ <div class="method_details ">
232
+ <h3 class="signature " id="format_yard_object-class_method">
233
+
234
+ .<strong>format_yard_object</strong>(yard_object) &#x21d2; <tt>Object</tt>
235
+
236
+
237
+
238
+
239
+
240
+ </h3><table class="source_code">
241
+ <tr>
242
+ <td>
243
+ <pre class="lines">
244
+
245
+
246
+ 23
247
+ 24
248
+ 25</pre>
249
+ </td>
250
+ <td>
251
+ <pre class="code"><span class="info file"># File 'lib/readme_yard/code_tag.rb', line 23</span>
252
+
253
+ <span class='kw'>def</span> <span class='id identifier rubyid_format_yard_object'>format_yard_object</span><span class='lparen'>(</span><span class='id identifier rubyid_yard_object'>yard_object</span><span class='rparen'>)</span>
254
+ <span class='id identifier rubyid_format_tag'>format_tag</span><span class='lparen'>(</span><span class='id identifier rubyid_yard_object'>yard_object</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span>
255
+ <span class='kw'>end</span></pre>
256
+ </td>
257
+ </tr>
258
+ </table>
259
+ </div>
260
+
261
+ </div>
262
+
263
+ </div>
264
+
265
+ <div id="footer">
266
+ Generated on Mon May 5 09:48:52 2025 by
267
+ <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
268
+ 0.9.37 (ruby-3.4.2).
269
+ </div>
270
+
271
+ </div>
272
+ </body>
273
+ </html>