yard 0.9.33 → 0.9.35

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of yard might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 35a50468db5652cbaacbe2f1a80dec7cb0e35313369550f82e36f41b6e940987
4
- data.tar.gz: 2ce309abaaad66688d56242772201ee77ac291a4c5c9a24dc1418ab09b6cef0c
3
+ metadata.gz: c5ff0ce7fb0e2d8ecc443968bc650be669b354e264b468ed73110367f8e18a8f
4
+ data.tar.gz: 57f2052210346c9492bb9d80bd15200cc3410e358f4d169e09a148cd258fc65c
5
5
  SHA512:
6
- metadata.gz: f60723b8732063ebf4593fe044d5777994ecf15be6437f39dad65a614dc7ddbdd7d9236889d618feca8ee116caf86db523457ac98b9093d37aad4a5acfd5f011
7
- data.tar.gz: a00d9460d8f5c68ea6d587ce3c54644deae4ff365339afe9cd4df32b007ee3f4304ff7afe769f33b319328ca32fa69147ca74670b1db117f2d9f8459695f17e9
6
+ metadata.gz: 01c9c77f83fc7c2e8ccfe5cd21c16c51506ececa875a9e24793eb2d0d29376c69d8686f2ab8d0a11caefd77f5bf70424b40ea9e4c83d4afebd070b2c7c4d6132
7
+ data.tar.gz: d3e49a80ac5be583a158011351cbca068d4f78179ce02f88e43a3d02cac1a10ce7a02bd4b20fa9a44ce6dd519e02e2ede8acca8b5ed62a21341149de71c0a825
data/CHANGELOG.md ADDED
@@ -0,0 +1,885 @@
1
+ # main
2
+
3
+ # [0.9.35] - February 28th, 2024
4
+
5
+ [0.9.35]: https://github.com/lsegal/yard/compare/v0.9.34...v0.9.35
6
+
7
+ - Fix possible XSS on generated YARD frameset pages (thanks to @RedYetiDev for finding and patching) (2069e2b).
8
+ - Fix errors when using `@option` on non-method objects (#1508)
9
+ - Support Ruby 3.3 changes in Ripper parser (#1510)
10
+
11
+ # [0.9.34] - April 12nd, 2023
12
+
13
+ [0.9.34]: https://github.com/lsegal/yard/compare/v0.9.33...v0.9.34
14
+
15
+ - Add changelog to yard.gemspec
16
+ - Fix fork behavior in `yard server --fork`
17
+
18
+ # [0.9.33] - April 11st, 2023
19
+
20
+ [0.9.33]: https://github.com/lsegal/yard/compare/v0.9.32...v0.9.33
21
+
22
+ - Ensure .yardopts is present in gem package (internal YARD documentation change)
23
+
24
+ # 0.9.32 - April 9th, 2023
25
+
26
+ [0.9.32]: https://github.com/lsegal/yard/compare/v0.9.31...v0.9.32
27
+
28
+ - Fix issue with custom Rack::Request attributes in `yard server`
29
+
30
+ # [0.9.31] - April 9th, 2023
31
+
32
+ [0.9.31]: https://github.com/lsegal/yard/compare/v0.9.30...v0.9.31
33
+
34
+ - Remove dependency on webrick in YARD::Server::Commands::StaticFileHelpers
35
+
36
+ # [0.9.30] - April 9th, 2023
37
+
38
+ [0.9.30]: https://github.com/lsegal/yard/compare/v0.9.29...v0.9.30
39
+
40
+ - Hot release fix to correct issue with gem packaging missing templates (#1490)
41
+
42
+ # [0.9.29] - April 8th, 2023
43
+
44
+ [0.9.29]: https://github.com/lsegal/yard/compare/v0.9.28...v0.9.29
45
+
46
+ - Enable table support for CommonMarker (#1443)
47
+ - Parser performance improvements (#1452, #1453, #1454, #1455)
48
+ - Fix autoload of RipperParser (#1460)
49
+ - Remove dependency on webrick for better Ruby 3.1+ support
50
+ - Improvements for mixin resolution (#1467, #1468)
51
+
52
+ # [0.9.28] - June 1st, 2022
53
+
54
+ [0.9.28]: https://github.com/lsegal/yard/compare/v0.9.27...v0.9.28
55
+
56
+ - Safe load config YAML files (#1385)
57
+ - Handle empty string constants (#1415)
58
+ - Pre-emptively support removal of `Object#taint` in Ruby 3.2 (#1419)
59
+ - Fix Ruby 3.1 forward args Ripper change (#1431)
60
+
61
+ # [0.9.27] - November 29th, 2021
62
+
63
+ [0.9.27]: https://github.com/lsegal/yard/compare/v0.9.26...v0.9.27
64
+
65
+ - Add support for Ruby 3.0 endless method definitions. (#1376, #1381)
66
+ - Add existence check for README file (#1367)
67
+ - Support module_function decorator (#1365)
68
+ - Add CommonMarker markup support (`-m commonmarker`) (#1157, #1388)
69
+ - Fix nested array parsing (#1389)
70
+ - Add WEBrick as a runtime dependency for Ruby 3.0 support (#1400)
71
+ - Support `fail_on_warning` option in `yard stats` command (#1392)
72
+ - Better integration with Sorbet (#1401)
73
+ - Handle include mixins on complex paths (#1386)
74
+ - Fix `@!scope` maintaining state in lone comment blocks (#1411)
75
+ - Remove support for Travis CI
76
+
77
+ # [0.9.26] - December 26th, 2020
78
+
79
+ [0.9.26]: https://github.com/lsegal/yard/compare/v0.9.25...v0.9.26
80
+
81
+ - Add support for Ruby 3.0 and fix tests
82
+ - Fix support for `frozen_string_literal: false` magic comments (#1363)
83
+
84
+ # [0.9.25] - May 3rd, 2020
85
+
86
+ [0.9.25]: https://github.com/lsegal/yard/compare/v0.9.24...v0.9.25
87
+
88
+ - Fix parsing issue with conditional blocks mixed with conditional modifiers.
89
+ (#1308, #1324, #1326, #1327)
90
+ - Add table of contents IDs to redcarpet generated markdown. (#1323)
91
+ - Backport fixes for Ruby 1.9 (#1320)
92
+ - Fix parsing of checksums in yard server (#1301)
93
+ - Map Ruby C variable error names to Ruby classes (#1270, #1275)
94
+ - Fix initialization of RDocMarkup across threads (#1318)
95
+ - Remove warning for Kernel#open (#1312)
96
+ - Omit spec files in gem package (#1307)
97
+ - README updates (#1322)
98
+
99
+ # [0.9.24] - January 8th, 2020
100
+
101
+ [0.9.24]: https://github.com/lsegal/yard/compare/v0.9.23...v0.9.24
102
+
103
+ - Add {YARD::CodeObjects::NamespaceMapper.on_invalidate} callback when separator
104
+ cache is changed.
105
+ - Fix issue where Registry fails to resolve first-time lookups on instance methods.
106
+
107
+ # [0.9.23] - January 5th, 2020
108
+
109
+ [0.9.23]: https://github.com/lsegal/yard/compare/v0.9.22...v0.9.23
110
+
111
+ - Fix issues with double encoded code blocks when highlighted from an extra
112
+ file.
113
+
114
+ # [0.9.22] - December 31st, 2019
115
+
116
+ [0.9.22]: https://github.com/lsegal/yard/compare/v0.9.21...v0.9.22
117
+
118
+ - Revert jquery update in last release since it requires more changes. (#1298)
119
+
120
+ # [0.9.21] - December 31st, 2019
121
+
122
+ [0.9.21]: https://github.com/lsegal/yard/compare/v0.9.20...v0.9.21
123
+
124
+ - Updates to add support for Ruby 2.7.0 (#1290, #1296)
125
+ - Fix parsing of multiline method signatures (#1220)
126
+ - Remove RubyGems post install message (#1269)
127
+ - Improve object deletion from RegistryStore (#1284)
128
+ - Improve memory usage performance (#1260)
129
+ - Handle include and extend calls with explicit receivers (#1274)
130
+ - Fix deep nesting of TOC items (#1288)
131
+ - Fix highlighting for Asciidoc markup code blocks (#1276)
132
+ - Fix HTML formatting of script tags (#1263)
133
+ - Update jquery to 3.4.1 (#1294)
134
+ - Test fixes (#1244)
135
+
136
+ # [0.9.20] - June 27th, 2019
137
+
138
+ [0.9.20]: https://github.com/lsegal/yard/compare/v0.9.19...v0.9.20
139
+
140
+ - Fix parsing of stringified Symbols in Ruby source (#1256).
141
+ - Fix path traversal vulnerability in `yard server`. This bug would allow
142
+ unsanitized HTTP requests to access arbitrary files on the machine of a
143
+ `yard server` host under certain conditions. Thanks to CuongMX from
144
+ Viettel Cyber Security for discovering this vulnerability.
145
+
146
+ # [0.9.19] - April 2nd, 2019
147
+
148
+ [0.9.19]: https://github.com/lsegal/yard/compare/v0.9.16...v0.9.19
149
+
150
+ - Fixed bug in browser back button (#1071, #1228)
151
+ - Fixed handling of ArgumentError in ExtraFileObject (#1198)
152
+ - Fixed double return tag displaying on boolean methods (#1226)
153
+ - Removed unused `Module#namespace_name` function (#1229)
154
+ - Fixed parsing order of README files. YARD will now prefer README over
155
+ README.md over README.x.md or README-x.md (and the like). READMEs will now
156
+ also be ordered by filename; the first README is still chosen unless
157
+ `--readme` is provided.
158
+ - Updated AsciiDoc markup support to use non-deprecated calls.
159
+
160
+ # [0.9.16] - August 11th, 2018
161
+
162
+ [0.9.16]: https://github.com/lsegal/yard/compare/v0.9.15...v0.9.16
163
+
164
+ - Documentation fixes (#1175, #1178).
165
+ - Fixed stack overflow issue when parsing extremely large lists (#1176).
166
+
167
+ # [0.9.15] - July 17th, 2018
168
+
169
+ [0.9.15]: https://github.com/lsegal/yard/compare/v0.9.14...v0.9.15
170
+
171
+ - Fixed security issue in parsing of Ruby code that could allow for arbitrary
172
+ execution. Credit to Nelson Elhage <nelhage@nelhage.com> for discovering this
173
+ issue.
174
+
175
+ # [0.9.14] - June 2nd, 2018
176
+
177
+ [0.9.14]: https://github.com/lsegal/yard/compare/v0.9.13...v0.9.14
178
+
179
+ - Fixed a regression in symbol parsing (#1170).
180
+
181
+ # [0.9.13] - May 28th, 2018
182
+
183
+ [0.9.13]: https://github.com/lsegal/yard/compare/v0.9.12...v0.9.13
184
+
185
+ - Added support for grouped constants via `@!group` directive (#1056).
186
+ - Added support for quoted symbols (#1168).
187
+ - Added support for i18n in tag text (#1169).
188
+ - Fixed HTML rendering of inline code blocks (#1152).
189
+ - Fixed rendering of anchor URLs in rendered HTML (#1154).
190
+
191
+ # [0.9.12] - November 26th, 2017
192
+
193
+ [0.9.12]: https://github.com/lsegal/yard/compare/v0.9.11...v0.9.12
194
+
195
+ - Be more explicit about lack of support for absolute paths in extra files
196
+ specified by `yard doc` command.
197
+
198
+ # [0.9.11] - November 23rd, 2017
199
+
200
+ [0.9.11]: https://github.com/lsegal/yard/compare/v0.9.10...v0.9.11
201
+
202
+ - Fixed security issue in `--readme` that allowed for arbitrary file reads on
203
+ disk. Credit to ztz <ztz@ztz.me> for discovering this issue.
204
+ - Improved styling for inline code blocks (#1142).
205
+
206
+ # [0.9.10] - November 18th, 2017
207
+
208
+ [0.9.10]: https://github.com/lsegal/yard/compare/v0.9.9...v0.9.10
209
+
210
+ - Added `--fail-on-warning` option for `yard doc` which exits with a non-zero
211
+ code if there are any warnings (#1093).
212
+ - Added support for parsing inside `Struct.new` blocks (#1099).
213
+ - Added support new ripper AST tokens (#1104, #1124).
214
+ - Fixed an issue where `@see (obj)` reference tags would fail (#1111)
215
+ - Fix sorting in `yard stats` (#1123).
216
+
217
+ # [0.9.9] - April 23rd, 2017
218
+
219
+ [0.9.9]: https://github.com/lsegal/yard/compare/v0.9.8...v0.9.9
220
+
221
+ - Added `gem uninstall` hooks to remove YARD documentation files. (#1083)
222
+ - Added support for C++ namespaces. (#809)
223
+ - Fixed issue where loading a .html page via an anchor would not scroll to
224
+ the anchor section. (#1082)
225
+ - Hide some Ruby warnings.
226
+ - Improve progress indicator icons in terminal.
227
+
228
+ # [0.9.8] - January 13th, 2017
229
+
230
+ [0.9.8]: https://github.com/lsegal/yard/compare/v0.9.7...v0.9.8
231
+
232
+ - Fixed installed gems not being correctly found in `yard server` and by plugins.
233
+ - Fixed tokenization of `%w(...)` array syntax.
234
+
235
+ # [0.9.7] - January 9th, 2017
236
+
237
+ [0.9.7]: https://github.com/lsegal/yard/compare/v0.9.6...v0.9.7
238
+
239
+ - Fixed resolution of absolute object paths with ambiguous names. (#1029)
240
+
241
+ # [0.9.6] - January 7th, 2017
242
+
243
+ [0.9.6]: https://github.com/lsegal/yard/compare/v0.9.5...v0.9.6
244
+
245
+ - Removed official support for Ruby 1.x (1.8/1.9). YARD can still be installed
246
+ in these versions, but support is not guaranteed. Simple bug fixes may still
247
+ be considered via pull request only. Issues without code will be automatically
248
+ closed.
249
+ - Added {YARD::Tags::Tag#explain_types} returning a plain English summary
250
+ of the type specification of a given tag. Also adds {YARD::Tags::TypesExplainer}
251
+ as an implementation class for the method.
252
+ - Added support for automatic linking of constants and method calls of
253
+ Ruby syntax highlighted source code in generated HTML. Also adds the
254
+ {YARD::Parser::Ruby::TokenResolver} implementation class to iterate over
255
+ tokenized code with extra resolved object information.
256
+ - Added support for compound constant assignments (`A::B::C = true`).
257
+ - Added `LibraryVersion#yardoc_file_for_SOURCE` callback method for sources with
258
+ a pre-determined yardoc file location. Implement this method instead of
259
+ manually setting `library.yardoc_file = ...` in your load method (you can
260
+ still assign the attribute manually).
261
+ - Use RubyGems 2.x+ API to query gems when available instead of using backport.
262
+ - Various bug fixes
263
+
264
+ # [0.9.5] - July 22nd, 2016
265
+
266
+ [0.9.5]: https://github.com/lsegal/yard/compare/v0.9.4...v0.9.5
267
+
268
+ - `yard doc` will now generate `.yardoc/processing` and `.yardoc/complete` files
269
+ to allow other tools to properly detect when YARD is in the middle of parsing
270
+ source files, and when it has completed writing the database.
271
+ - Added support for on-demand generation of LibraryVersion objects using the
272
+ `:disk` source type. LibraryVersion objects pointing to a .yardoc database
273
+ directory will now auto-generate if there is a `source_path` attached.
274
+ - Added warning for macros attached to non-method objects.
275
+ - Fixed a few more parsing errors.
276
+
277
+ # [0.9.4] - July 21st, 2016
278
+
279
+ [0.9.4]: https://github.com/lsegal/yard/compare/v0.9.3...v0.9.4
280
+
281
+ - Minor Ruby file parsing and CSS bug fixes.
282
+
283
+ # [0.9.3] - July 20th, 2016
284
+
285
+ [0.9.3]: https://github.com/lsegal/yard/compare/v0.9.2...v0.9.3
286
+
287
+ - Added support for {YARD::Server::RackAdapter} to be mounted under prefix URIs.
288
+ - Fixed regression in `yard server -g` that caused static file assets on index
289
+ page to return 404 errors.
290
+ - Fixed regression in `yard server -g` index page that disabled scrolling and
291
+ caused other HTML rendering glitches.
292
+
293
+ # [0.9.2] - July 19th, 2016
294
+
295
+ [0.9.2]: https://github.com/lsegal/yard/compare/v0.9.1...v0.9.2
296
+
297
+ - Added `yard config --gem-install-[yri|yard]` commands which auto-configure
298
+ your `~/.gemrc` file to run yri/yard instead of ri/rdoc on a `gem install`.
299
+ - Added support for gemspec metadata key `"yard.run"`, which can be either
300
+ `"yard"` or `"yri"` to run the respective commands on a `gem install`.
301
+ - Added `yard doc --no-progress` to hide the progress bar.
302
+ - Fix resolution error for compound proxy namespaces.
303
+ - YRI will now search across all gem versions (latest first) for the .yardoc
304
+ database.
305
+
306
+ # [0.9.1] - July 18th, 2016
307
+
308
+ [0.9.1]: https://github.com/lsegal/yard/compare/v0.9.0...v0.9.1
309
+
310
+ - Added "Attributes" section to `yard stats`.
311
+ - Added support for RubyGems 2.x `--document=yri,yard` flags. You can now run
312
+ YARD documentation generation against installed gems by running:
313
+ `gem install mygem --document=yard,yri`.
314
+ - Added `/static/*` routing for library-specific routing. This enables static
315
+ template files to be served on a per-library basis instead of globally shared
316
+ across the `yard server`.
317
+ - Added support for inlining of `{include:*}` syntax. Using this syntax in
318
+ the middle of a docstring paragraph will no longer create a separate paragraph
319
+ for the included text.
320
+ - Added support for resolving `{}` syntax in text templates, specifically for
321
+ use in `{include:*}` syntax.
322
+ - Improved object resolution logic in `{Foo::Bar}` syntax and {YARD::Registry.resolve}.
323
+ New resolution logic should now more accurately support resolving compound paths
324
+ across namespaces and through the inheritance tree (as Ruby does).
325
+ - The `frozen_string_literal: true` comment line in Ruby source files will now be
326
+ excluded from docstrings.
327
+ - Added a workaround for https://bugs.ruby-lang.org/issues/11485
328
+ - Fixed an issue where type using a docstring reference on an `@!attribute` macro
329
+ would be incorrectly parsed as a type specifier. This change updates the tag
330
+ parser to disallow newlines between the tag name and opening bracket of the
331
+ type specification.
332
+ - Fixed an issue where `--embed-mixins` would improperly embed methods from
333
+ inherited classes instead of modules.
334
+ - Fixed various parsing errors and YARD exceptions.
335
+ - Added a warning for modules or classes being redefined as constants.
336
+ - Reverted stripping of HTML in {YARD::Docstring#summary}.
337
+ - Added optimization to remove initial docstring parse on newly created code objects.
338
+ - {YARD::CodeObjects::Base#format} now passes the :type parameter to templates.
339
+ - Hide methods with filtered namespaces in Method Listing.
340
+
341
+ # [0.9.0] - July 4th, 2016
342
+
343
+ [0.9.0]: https://github.com/lsegal/yard/compare/v0.8.7.6...v0.9.0
344
+
345
+ Special thanks to Alex Dowad, MSP-Greg, and Alex McLain for their extended
346
+ contributions to this version.
347
+
348
+ - (Breaking Change): Replaced default template with an updated "frameless" version.
349
+ This change may affect backward compatibility if custom templates made modifications
350
+ to `default/fulldoc/html`, specifically the index or navigation lists.
351
+ - Added support for Ruby 2.1+ decorator style method declaration syntax. YARD now
352
+ supports:
353
+ private def foo(x, y) end
354
+ - Metadata headers in extra files can now be escaped from rendering by enclosing them
355
+ in HTML comment blocks (`<!--\n @metadata here... \n-->`). Ensure that the opening
356
+ comment tag is alone on the first line of the file to use this functionality.
357
+ - Improved parsing of various CRuby coding styles.
358
+ - Fixed issue with binary image assets when using `yard server`.
359
+ - Fixed deprecation warnings from Rake 10.x.
360
+ - Tests updated for RSpec 3.
361
+
362
+ # [0.8.7.6] - October 26, 2014
363
+
364
+ [0.8.7.6]: https://github.com/lsegal/yard/compare/v0.8.7.5...v0.8.7.6
365
+
366
+ - Support using `@option` tag on keyword arg splat parameter. (#729)
367
+ - Add `.stats_options` for `YardocTask`. (#800, #801)
368
+
369
+ # [0.8.7.5] - October 26, 2014
370
+
371
+ [0.8.7.5]: https://github.com/lsegal/yard/compare/v0.8.7.4...v0.8.7.5
372
+
373
+ - Fix linking of methods in top level namespace in method listing. (#776)
374
+ - Support using C macros in function declarations. (#810)
375
+ - YARD will no longer group comment blocks starting on the same column if they
376
+ are preceded by code. (#798)
377
+ - Handle anonymous lambda calls in toplevel scope. (#774)
378
+ - Support I18n in `@overload` tags. (#794)
379
+ - Support `yard stats` for objects with no file property. (#792)
380
+ - Support for named arguments in Ruby >= 2.1. (#785)
381
+ - Exclude README backup files from YARD generation. (#790)
382
+ - Turned on the lax spacing option in Redcarpet to comply with the
383
+ Markdown standard.
384
+ - Escape HTML in YARD server search placeholder template.
385
+ - Fix issue with `private_class_method` support. (#760, #767)
386
+ - Enable tables support by default in Redcarpet Markdown provider. (#765)
387
+
388
+ # 0.8.7.4 - March 22, 2014
389
+
390
+ [0.8.7.4]: https://github.com/lsegal/yard/compare/v0.8.7.3...v0.8.7.4
391
+
392
+ - Mark C methods as explicit but also remove explicit check in stats. (#727)
393
+ - Report unresolved parent namespaces as undocumentable errors instead. (#753)
394
+ - No longer ignore overridden methods from documentation check in stats (#719)
395
+ - Fix JRuby throwing exception when remove_method called on non-existent method. (#732)
396
+ - Add basic support for `private_class_method` (#747)
397
+ - Ensure namespace is always set when parent module is not found. (#753)
398
+ - Set overflow as auto on table of contents.
399
+ - Report 100% documented if nothing is undocumented. (#754)
400
+ - Added support for RubyGems 2.0.0+. (#742)
401
+ - Allow users to enter their own YARD RakeTask name. (#705)
402
+ - Fixed a typo that was causing Windows detection to always fail. (#715)
403
+ - Add debug information when loading a plugin fails. (#711)
404
+
405
+ # [0.8.7.3] - November 1, 2013
406
+
407
+ [0.8.7.3]: https://github.com/lsegal/yard/compare/v0.8.7.2...v0.8.7.3
408
+
409
+ - Handle Unicode method/class/file names in server URL encoding (lsegal/rubydoc.info#69).
410
+ - Style keyword style hashes with same symbol color in code highlighting (#707).
411
+ - Fix broken JS when visiting docs in file:// scheme (#706).
412
+ - Add support for new AsciiDoc file extensions (#704).
413
+ - Fix issues where non-Ruby code blocks would not display in Ruby 2 (#702).
414
+ - Add support for extra Ruby 2 symbol types in Ripper (#701).
415
+ - Ensure config directory exists before saving config file (#700).
416
+
417
+ # [0.8.7.2] - September 18, 2013
418
+
419
+ [0.8.7.2]: https://github.com/lsegal/yard/compare/v0.8.7.1...v0.8.7.2
420
+
421
+ - Disallow absolute URLs when using frame anchor support.
422
+ - Support casted functions in CRuby method declarations (#697)
423
+
424
+ # [0.8.7.1] - September 11, 2013
425
+
426
+ [0.8.7.1]: https://github.com/lsegal/yard/compare/v0.8.7...v0.8.7.1
427
+
428
+ - Fix potential XSS issue with frame anchor support.
429
+ - Add support for gettext 3.x gem.
430
+
431
+ # [0.8.7] - July 26, 2013
432
+
433
+ [0.8.7]: https://github.com/lsegal/yard/compare/v0.8.6.2...v0.8.7
434
+
435
+ - Added `--hide-api API` option to hide objects with a given `@api` tag (#685).
436
+ - Added "Returns ...." prefix to summary when a lone @return tag is used.
437
+ - Fixed issue that caused ref tags to be added to a docstring twice (#678).
438
+ - Fixed formatting issue in docstring summaries (#686)
439
+
440
+ # [0.8.6.2] - June 27, 2013
441
+
442
+ [0.8.6.2]: https://github.com/lsegal/yard/compare/v0.8.6.1...v0.8.6.2
443
+
444
+ - Fixed issue where `yard graph` was not displaying methods
445
+
446
+ # [0.8.6.1] - April 14, 2013
447
+
448
+ [0.8.6.1]: https://github.com/lsegal/yard/compare/v0.8.6...v0.8.6.1
449
+
450
+ - Fixed broken links in File menu on default HTML template
451
+ - Added --layout switch to `yard display` to wrap output in layout template.
452
+ - See {file:docs/WhatsNew.md} for more information on added features.
453
+
454
+ # [0.8.6] - April 13, 2013
455
+
456
+ [0.8.6]: https://github.com/lsegal/yard/compare/v0.8.5.2...v0.8.6
457
+
458
+ - Various fixes and improved Ruby 2.x compatibility support
459
+ - Added support for `asciidoc` markup type
460
+ - Added `yard markups` command to list available markup types
461
+ - Added `yard display` command to display and format an individual object
462
+ - See {file:docs/WhatsNew.md} for more information on added features.
463
+
464
+ # [0.8.5.2] - February 26, 2013
465
+
466
+ [0.8.5.2]: https://github.com/lsegal/yard/compare/v0.8.5.1...v0.8.5.2
467
+
468
+ - Support new keyword argument syntax in method signatures (Ruby 2.x)
469
+
470
+ # [0.8.5.1] - February 25, 2013
471
+
472
+ [0.8.5.1]: https://github.com/lsegal/yard/compare/v0.8.5...v0.8.5.1
473
+
474
+ - Fix `yard diff` of gem files with RubyGems 2.x
475
+
476
+ # [0.8.5] - February 24, 2013
477
+
478
+ [0.8.5]: https://github.com/lsegal/yard/compare/v0.8.4.1...v0.8.5
479
+
480
+ - Basic support for Ruby 2.0 (fix compat issues in RDoc 4.0, RubyGems 2.0)
481
+ - Add CSS styling for tables in default HTML template
482
+
483
+ # [0.8.4.1] - February 5, 2013
484
+
485
+ [0.8.4.1]: https://github.com/lsegal/yard/compare/v0.8.4...v0.8.4.1
486
+
487
+ - Fix regression that broke loading of existing yardoc dbs (#648)
488
+
489
+ # [0.8.4] - February 4, 2013
490
+
491
+ [0.8.4]: https://github.com/lsegal/yard/compare/v0.8.3...v0.8.4
492
+
493
+ - Add `-B/--bind` switch to yard server (#593, #608)
494
+ - Add CodeObjects::Base#title for plugins to customize how object
495
+ links display (#646)
496
+ - Disable linking objects filtered out by verifiers (#645)
497
+ - Allow macro expansion on class methods (#632)
498
+ - Expand newly attached macro on first DSL method call (#631)
499
+ - Disable RubyGems plugin in Ruby 2.0 (#627)
500
+ - Fix line range for class/module node bodies (#626)
501
+ - Search extended modules for attached DSL macros (#553)
502
+
503
+ # [0.8.3] - October 14, 2012
504
+
505
+ [0.8.3]: https://github.com/lsegal/yard/compare/v0.8.2.1...v0.8.3
506
+
507
+ - Add `--non-transitive-tag` to disable tag transitivity (#571)
508
+ - Support --db inside .yardopts for graph/server commands (#583, #586)
509
+ - Fix handling for =begin/=end docstrings (#577, #578)
510
+ - Parser only sorts file lists when a glob is provided (#572)
511
+ - Fix formatting in `{include:Object#method}` syntax (#569)
512
+ - Fix @option tag inside of module functions (#563)
513
+ - Fix to `--api` and `--no-api` support (#559)
514
+ - Fix class nesting issues when path starts with "::" (#552)
515
+
516
+ # [0.8.2.1] - June 9, 2012
517
+
518
+ [0.8.2.1]: https://github.com/lsegal/yard/compare/v0.8.2...v0.8.2.1
519
+
520
+ - Fix a set of regressions in yard server search and dynamic generation
521
+
522
+ # [0.8.2] - June 7, 2012
523
+
524
+ [0.8.2]: https://github.com/lsegal/yard/compare/v0.8.1...v0.8.2
525
+
526
+ - Added progress style output in tty terminals
527
+ - Embedded mixins should ignore methods defined on module (#539)
528
+ - Fixed permalinks for embedded mixins in `yard server` (#540)
529
+ - Improve parsing in CRuby code (#543)
530
+ - Ensure Registry.resolve picks module when parsing mixins (#545)
531
+ - Fixed regression that caused various commands to not show output (#548)
532
+ - Respect current visibility when parsing class conditions (#551)
533
+
534
+ # [0.8.1] - May 2, 2012
535
+
536
+ [0.8.1]: https://github.com/lsegal/yard/compare/v0.8.0...v0.8.1
537
+
538
+ - Added `--[no-]api` switch to generate docs for API sets (see {file:docs/WhatsNew.md} for details) (#532)
539
+ - The `yard list` command now uses cache by default (#533)
540
+ - Fix `yardoc` generating incorrectly named method list file (#528)
541
+ - Fix HTML output occasionally showing trailing mdash on options list (#522)
542
+
543
+ # [0.8.0] - April 30, 2012
544
+
545
+ [0.8.0]: https://github.com/lsegal/yard/compare/v0.7.5...v0.8.0
546
+
547
+ - See {file:docs/WhatsNew.md} for a list of added features
548
+ - Over 20 bug fixes:
549
+ - Properly filter hidden setter/getter attributes (#394)
550
+ - Fix test failures in Linux environments (#397, #472, #473, #512, #513)
551
+ - Fix attribute inheritance and @private (#432)
552
+ - Fix attribute parsing (#435)
553
+ - Allow aliases for attributes (#436)
554
+ - Fix namespace fetching in `handle_alias()` (#437)
555
+ - Fix overwritten attributes marked as inherited (#442)
556
+ - Fix documenting constants defined from C code with `rb_define_const()` (#443)
557
+ - Do not escape snippets twice (#445)
558
+ - Ajax method/class search should not fire when a non-printable character is pressed (#446)
559
+ - Fix yard server crashing when RDoc is not installed (#456)
560
+ - Fix tags ignored when `(see #foo)` is used (#457)
561
+ - Fix three "Returns" for two `@overload` tags (#458)
562
+ - Do not auto-detect DSL methods as method objects if parameter name is not a valid method name (#464)
563
+ - Fix attaching of macros to Object (#465)
564
+ - Fix handling of `%w()` source in `[]/[]=` parsed context. (#461, pull in #468)
565
+ - Don't add default `@return` if `@overload` has `@return`. (#458, pull in #469)
566
+ - Don't discard tags by (see ...). (#457, pull in #470)
567
+ - Fix constants listed as inherited when overwritten (#474)
568
+ - Fix `yardoc --asset` behaving differently on first and subsequent calls. (#477)
569
+ - `!!!lang` code blocks should set the lang in `<pre>`'s class. (#478, #479)
570
+ - Fix "File List" search tab error. (#502)
571
+ - Fix search bar not redirecting to method page. (#509)
572
+ - Fix server returning exception message bodies as String (#518)
573
+
574
+ # [0.7.5] - January 31, 2012
575
+
576
+ [0.7.5]: https://github.com/lsegal/yard/compare/v0.7.4...v0.7.5
577
+
578
+ - Various minor bug fixes
579
+
580
+ # [0.7.4] - December 2, 2011
581
+
582
+ [0.7.4]: https://github.com/lsegal/yard/compare/v0.7.3...v0.7.4
583
+
584
+ - Redcarpet is now the default Markdown formatting library. GFM now works out-of-box (#404)
585
+ - Fix server side searching for elements that are marked private (#420)
586
+ - Add 'textile_strict' and 'pre' markup types, reorganize text and none (#416)
587
+ - Improve encoding line detection (#415)
588
+ - Add support for `rb_define_alias` in CRuby code (#413)
589
+ - Fix rendering of some keywords in source view (#410)
590
+ - Add support for RDoc 3.10+ (#406, #407)
591
+ - Fix typewriter text being processed in code blocks (#403)
592
+ - Improve support for has_rdoc in RubyGems 1.8.x (#401)
593
+ - See the {file:docs/WhatsNew.md} document for details on added features
594
+
595
+ # [0.7.3] - October 15, 2011
596
+
597
+ [0.7.3]: https://github.com/lsegal/yard/compare/v0.7.2...v0.7.3
598
+
599
+ - Improve support for parsing under Ruby 1.9.2p290 and 1.9.3 (#365, #370)
600
+ - Add support for SWIG generated CRuby code (#369)
601
+ - Add support for `rb_define_attr` calls in CRuby code (#362)
602
+ - Handle file pointers in CRuby code (#358)
603
+
604
+ # [0.7.2] - June 14, 2011
605
+
606
+ [0.7.2]: https://github.com/lsegal/yard/compare/v0.7.1...v0.7.2
607
+
608
+ - Fix `yard --help` not showing proper output
609
+ - YARD now expands path to `.yardoc` file in daemon mode for server (#328)
610
+ - Fix `@overload` tag linking to wrong method (#330)
611
+ - Fix incorrect return type when using `@macro` (#334)
612
+ - YARD now requires 'thread' to support RubyGems 1.7+ (#338)
613
+ - Fix bug in constant documentation when using `%w()` (#348)
614
+ - Fix YARD style URL links when using autolinking markdown (#353)
615
+
616
+ # [0.7.1] - May 18, 2011
617
+
618
+ [0.7.1]: https://github.com/lsegal/yard/compare/v0.7.0...v0.7.1
619
+
620
+ - Fixes a bug in `yard server` not displaying class list properly.
621
+
622
+ # [0.7.0] - May 17, 2011
623
+
624
+ [0.7.0]: https://github.com/lsegal/yard/compare/v0.6.8...v0.7.0
625
+
626
+ - See the {file:docs/WhatsNew.md} document for details on added features
627
+ - Make sure that Docstring#line_range is filled when possible (#243)
628
+ - Set #verifier in YardocTask (#282)
629
+ - Parse BOM in UTF-8 files (#288)
630
+ - Fix instance attributes not showing up in method list (#302)
631
+ - Fix rendering of %w() literals in constants (#306)
632
+ - Ignore keyboard shortcuts when an input is active (#312)
633
+ - And more...
634
+
635
+ # [0.6.8] - April 14, 2011
636
+
637
+ [0.6.8]: https://github.com/lsegal/yard/compare/v0.6.7...v0.6.8
638
+
639
+ - Fix regression in RDoc 1.x markup loading
640
+ - Fix regression in loading of markup libraries for `yard server`
641
+
642
+ # [0.6.7] - April 6, 2011
643
+
644
+ [0.6.7]: https://github.com/lsegal/yard/compare/v0.6.6...v0.6.7
645
+
646
+ - Fix has_rdoc gem specification issue with new RubyGems plugin API (oops!)
647
+
648
+ # [0.6.6] - April 6, 2011
649
+
650
+ [0.6.6]: https://github.com/lsegal/yard/compare/v0.6.5...v0.6.6
651
+
652
+ - Fix error message when RDoc is not present (#270)
653
+ - Add markup type 'none' to perform basic HTML translation (fallback when RDoc is not present)
654
+ - Add support for RubyGems 1.7.x (#272)
655
+ - Fix rendering of `{url description}` syntax when description contains newline
656
+
657
+ # [0.6.5] - March 13, 2011
658
+
659
+ [0.6.5]: https://github.com/lsegal/yard/compare/v0.6.4...v0.6.5
660
+
661
+ - Support `ripper` gem in Ruby 1.8.7
662
+ - Upgrade jQuery to 1.5.1
663
+ - Fix handling of alias statements with quoted symbols (#262)
664
+ - Add CSS styles (#260)
665
+ - Unhandled exception in YARD::Handlers::Ruby::MixinHandler indexing documentation for eventmachine (#248)
666
+ - Splice any alias references on method re-definitions into separate methods (#247)
667
+ - Fix "yard graph" (#245)
668
+ - Don't process ++ typewriter text inside of HTML attributes (#244)
669
+ - Prioritize loading of Kramdown before Maruku (#241)
670
+ - Skip shebang encoding in docstrings (#238)
671
+ - Fix truncation of references in @deprecated (#232)
672
+ - Show @api private note when no other tags are present (#231)
673
+ - Detect docstrings starting with "##" as `Docstring#hash_flag` (#230)
674
+ - Remove trailing whitespace from freeform tags (#229)
675
+ - Fix line through for deprecated methods (#225)
676
+ - Mistake in Tags.md (#223)
677
+ - Improve database storage by being more efficient with filesystem usage (#222)
678
+ - Make Registry thread local (#221)
679
+ - Support `private_constant` class method for 1.9.3 (#219)
680
+ - Do not assume RDoc is installed (#214)
681
+
682
+ # [0.6.4] - December 21, 2010
683
+
684
+ [0.6.4]: https://github.com/lsegal/yard/compare/v0.6.3...v0.6.4
685
+
686
+ - Fix yri tool crashing with new Config class (gh-217)
687
+ - Fix support for ::TopLevelConstants (gh-216)
688
+ - YARD's test suite is now RSpec2 compatible (gh-215)
689
+ - Improved documentation for YARD::Server features (gh-207)
690
+ - Fix displaying of collaped method summary lists (gh-204)
691
+ - Fix automatic loading of markup providers (gh-206)
692
+ - Fix keyboard shortcuts for Chrome (gh-203)
693
+ - Disallow `extend self` inside of a class (gh-202)
694
+ - Constants now recognized in C extensions (gh-201)
695
+
696
+ # [0.6.3] - November 21, 2010
697
+
698
+ [0.6.3]: https://github.com/lsegal/yard/compare/v0.6.2...v0.6.3
699
+
700
+ - Fixed regression that caused `yardoc --markup` to silently exit
701
+
702
+ # [0.6.2] - November 15, 2010
703
+
704
+ [0.6.2]: https://github.com/lsegal/yard/compare/v0.6.1...v0.6.2
705
+
706
+ - **Plugins no longer automatically load, use `--plugin` to load a plugin**
707
+ - Added YARD::Config and ~/.yard/config YAML configuration file
708
+ - Added `yard config` command to view/edit YARD configuration file
709
+ - Fixes for YARD in 1.8.6 (gh-178)
710
+ - Various HTML template adjustments and fixes (gh-198,199,200)
711
+ - Improved `yard server -m` multi-project stability (gh-193)
712
+ - Fixed handling of `yardoc --no-private` with missing class definitions (gh-197)
713
+ - Added support for constants defined in C extensions (gh-177)
714
+ - Added support for Structs defined as "Klass = Struct.new(...)" (gh-187)
715
+ - Improved parsing support for third-party gems (gh-174,180)
716
+ - Improved support for JRuby 1.6.4+. YARD now passes all specs in JRuby (gh-185)
717
+ - Improved YARD documentation (gh-172,191,196)
718
+
719
+ # [0.6.1] - September 06, 2010
720
+
721
+ [0.6.1]: https://github.com/lsegal/yard/compare/v0.6.0...v0.6.1
722
+
723
+ - Fixed TOC showing on top of class/method list in no-frames view
724
+ - A message now displays when running `yard server` with Rack/Mongrel installed
725
+ - Improved performance of JS inline search for large class/method lists
726
+ - Improved link titles for relative object links
727
+ - Removed `String#camelcase` and `String#underscore` for better Rails compat.
728
+ - Fixed support for loading .yardoc files under Windows
729
+ - Fixed inheritance tree arrows not displaying in certain environments
730
+
731
+ # [0.6.0] - August 29, 2010
732
+
733
+ [0.6.0]: https://github.com/lsegal/yard/compare/v0.5.8...v0.6.0
734
+
735
+ - Added dynamic local documentation server
736
+ - Added @group/@endgroup declarations to organize methods into groups
737
+ - Added `yard` executable to serve as main CLI tool with pluggable commands
738
+ - Added `--asset` switch to `yardoc` to copy files/dirs to output dir
739
+ - Added ability to register/manipulate tags via CLI (`--tag`, etc.)
740
+ - Added `yard diff` command
741
+ - Added statistics to `yardoc` output (and `yard stats` command)
742
+ - Added Javascript generated Table of Contents to file pages
743
+ - Updated various APIs
744
+ - Removed `yard-graph` executable
745
+ - See more changes in the {file:docs/WhatsNew.md what's new document}
746
+
747
+ # [0.5.8] - June 22, 2010
748
+
749
+ [0.5.8]: https://github.com/lsegal/yard/compare/v0.5.7...v0.5.8
750
+
751
+ - Merge fix from 0.6 branch for --no-private visibility checking
752
+
753
+ # [0.5.7] - June 21, 2010
754
+
755
+ [0.5.7]: https://github.com/lsegal/yard/compare/v0.5.6...v0.5.7
756
+
757
+ - Fixed visibility flag parsing in `yardoc`
758
+ - Updated Parser Architecture documentation with new SourceParser API
759
+ - Improved Registry documentation for new load commands
760
+ - Fix loading of .yardoc file as cache (and preserving aliases)
761
+ - Fix "lib" directory missing when running YARD on installed gems
762
+
763
+ # [0.5.6] - June 12, 2010
764
+
765
+ [0.5.6]: https://github.com/lsegal/yard/compare/v0.5.5...v0.5.6
766
+
767
+ - Bug fixes for RubyGems plugin, `has_rdoc=false` should now work
768
+ - New API for registering custom parsers. See {file:docs/WhatsNew.md}
769
+
770
+ # [0.5.5] - May 22, 2010
771
+
772
+ [0.5.5]: https://github.com/lsegal/yard/compare/v0.5.4...v0.5.5
773
+
774
+ - Various bug fixes
775
+
776
+ # [0.5.4] - March 22, 2010
777
+
778
+ [0.5.4]: https://github.com/lsegal/yard/compare/v0.5.3...v0.5.4
779
+
780
+ - See {file:docs/WhatsNew.md what's new document} for changes
781
+
782
+ # [0.5.3] - January 11, 2010
783
+
784
+ [0.5.3]: https://github.com/lsegal/yard/compare/v0.5.2...v0.5.3
785
+
786
+ - See {file:docs/WhatsNew.md what's new document} for changes
787
+
788
+ # [0.5.2] - December 16, 2009
789
+
790
+ [0.5.2]: https://github.com/lsegal/yard/compare/v0.5.1...v0.5.2
791
+
792
+ - See {file:docs/WhatsNew.md what's new document} for changes
793
+
794
+ # [0.5.1] - December 15, 2009
795
+
796
+ [0.5.1]: https://github.com/lsegal/yard/compare/v0.5.0...v0.5.1
797
+
798
+ - See {file:docs/WhatsNew.md what's new document} for changes
799
+
800
+ # [0.5.0] - December 13, 2009
801
+
802
+ [0.5.0]: https://github.com/lsegal/yard/compare/v0.4.0...v0.5.0
803
+
804
+ - See {file:docs/WhatsNew.md what's new document} for changes
805
+
806
+ # [0.4.0] - November 15, 2009
807
+
808
+ [0.4.0]: https://github.com/lsegal/yard/compare/v0.2.3.5...v0.4.0
809
+
810
+ - Added new templating engine based on [tadpole](http://github.com/lsegal/tadpole)
811
+ - Added YARD queries (`--query` CLI argument to yardoc)
812
+ - Greatly expanded YARD documentation
813
+ - Added plugin support
814
+ - New `@abstract` and `@private` tags
815
+ - Changed default rake task to `rake yard`
816
+ - Read about changes in {file:docs/WhatsNew.md}
817
+
818
+ # [0.2.3.5] - August 13, 2009
819
+
820
+ [0.2.3.5]: https://github.com/lsegal/yard/compare/v0.2.3.4...v0.2.3.5
821
+
822
+ - Minor bug fixes.
823
+
824
+ # [0.2.3.4] - August 07, 2009
825
+
826
+ [0.2.3.4]: https://github.com/lsegal/yard/compare/v0.2.3.3...v0.2.3.4
827
+
828
+ - Minor bug fixes.
829
+
830
+ # [0.2.3.3] - July 26, 2009
831
+
832
+ [0.2.3.3]: https://github.com/lsegal/yard/compare/v0.2.3.2...v0.2.3.3
833
+
834
+ - Minor bug fixes.
835
+
836
+ # [0.2.3.2] - July 06, 2009
837
+
838
+ [0.2.3.2]: https://github.com/lsegal/yard/compare/v0.2.3.1...v0.2.3.2
839
+
840
+ - Fix Textile hard-break issues
841
+ - Add description for @see tag to use as link title in HTML docs.
842
+ - Add --title CLI option to specify a title for HTML doc files.
843
+ - Add custom.css file that can be overridden with various custom
844
+ styelsheet declarations. To use this, simply add `default/fulldoc/html/custom.css`
845
+ inside your code directory and use the `-t` template directory yardoc CLI
846
+ option to point to that template directory (the dir holding 'default').
847
+ - Add support in `yardoc` CLI to specify extra files (formerly --files)
848
+ by appending "- extra files here" after regular source files. Example:
849
+
850
+ yardoc --private lib/**/*.rb - FAQ LICENSE
851
+
852
+ # [0.2.3.1] - June 13, 2009
853
+
854
+ [0.2.3.1]: https://github.com/lsegal/yard/compare/v0.2.3...v0.2.3.1
855
+
856
+ - Add a RubyGems 1.3.2+ plugin to generate YARD documentation instead of
857
+ RDoc. To take advantage of this plugin, set `has_rdoc = 'yard'` in your
858
+ .gemspec file.
859
+
860
+ # [0.2.3] - June 07, 2009
861
+
862
+ [0.2.3]: https://github.com/lsegal/yard/compare/v0.2.2...v0.2.3
863
+
864
+ - See the {file:docs/WhatsNew.md} file for a list of important new features.
865
+
866
+ # [0.2.2] - Jun 16, 2008
867
+
868
+ [0.2.2]: https://github.com/lsegal/yard/compare/v0.2.1...v0.2.2
869
+
870
+ - This is the largest changset since yard's conception and involves a complete
871
+ overhaul of the parser and API to make it more robust and far easier to
872
+ extend and use for the developer.
873
+
874
+ # [0.2.1] - February 20, 2008
875
+
876
+ [0.2.1]: https://github.com/lsegal/yard/compare/v0.1a...v0.2.1
877
+
878
+ - See the {file:docs/WhatsNew.md} file for a list of important new features.
879
+
880
+ # 0.1a - February 24, 2007
881
+
882
+ - Released 0.1a experimental version for testing. The goal here is
883
+ to get people testing YARD on their code because there are too many possible
884
+ code styles to fit into a sane amount of test cases. It also demonstrates the
885
+ power of YARD and what to expect from the syntax (Yardoc style meta tags).
@@ -303,6 +303,7 @@ module YARD
303
303
  # definitions with docstrings first.
304
304
  #
305
305
  # @return [String] a filename
306
+ # @return [nil] if there is no file associated with the object
306
307
  def file
307
308
  @files.first ? @files.first[0] : nil
308
309
  end
@@ -476,9 +476,8 @@ module YARD
476
476
  content.force_encoding('binary')
477
477
  ENCODING_BYTE_ORDER_MARKS.each do |encoding, bom|
478
478
  bom.force_encoding('binary')
479
- if content[0, bom.size] == bom
480
- content.force_encoding(encoding)
481
- return content
479
+ if content.start_with?(bom)
480
+ return content.sub(bom, '').force_encoding(encoding)
482
481
  end
483
482
  end
484
483
  content.force_encoding('utf-8') # UTF-8 is default encoding
@@ -94,16 +94,16 @@ module YARD
94
94
  end
95
95
 
96
96
  def call_with_fork(request, &block)
97
- reader, writer = IO.pipe
97
+ IO.pipe(:binmode => true) do |reader, writer|
98
+ fork do
99
+ log.debug "[pid=#{Process.pid}] fork serving: #{request.path}"
100
+ reader.close
101
+ writer.print(Marshal.dump(call_without_fork(request, &block)))
102
+ end
98
103
 
99
- fork do
100
- log.debug "[pid=#{Process.pid}] fork serving: #{request.path}"
101
- reader.close
102
- writer.print(Marshal.dump(call_without_fork(request, &block)))
104
+ writer.close
105
+ Marshal.load(reader.read)
103
106
  end
104
-
105
- writer.close
106
- Marshal.load(reader.read)
107
107
  end
108
108
 
109
109
  def can_fork?
data/lib/yard/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module YARD
5
- VERSION = '0.9.33'
5
+ VERSION = '0.9.35'
6
6
  end
@@ -5,10 +5,10 @@
5
5
  <title><%= options.title %></title>
6
6
  </head>
7
7
  <script type="text/javascript">
8
- var match = unescape(window.location.hash).match(/^#!(.+)/);
8
+ var match = decodeURIComponent(window.location.hash).match(/^#!(.+)/);
9
9
  var name = match ? match[1] : '<%= url_for_main %>';
10
- name = name.replace(/^(\w+):\/\//, '').replace(/^\/\//, '');
11
- window.top.location = name;
10
+ name = name.replace(/^((\w*):)?[\/\\]*/gm, '').trim();
11
+ window.top.location.replace(name)
12
12
  </script>
13
13
  <noscript>
14
14
  <h1>Oops!</h1>
@@ -1,4 +1,4 @@
1
- <% if object.has_tag?(:option) %>
1
+ <% if object.has_tag?(:option) && object.respond_to?(:parameters) %>
2
2
  <% object.parameters.each do |param, default| %>
3
3
  <% tags = object.tags(:option).select {|x| x.name.to_s == param.to_s.sub(/^\*+|:$/, '') } %>
4
4
  <% next if tags.empty? %>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.33
4
+ version: 0.9.35
5
5
  platform: ruby
6
6
  authors:
7
7
  - Loren Segal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-12 00:00:00.000000000 Z
11
+ date: 2024-02-28 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |2
14
14
  YARD is a documentation generation tool for the Ruby programming language.
@@ -26,6 +26,7 @@ files:
26
26
  - ".yardopts"
27
27
  - ".yardopts_guide"
28
28
  - ".yardopts_i18n"
29
+ - CHANGELOG.md
29
30
  - LEGAL
30
31
  - LICENSE
31
32
  - README.md