yard 0.8.7.4 → 0.8.7.5
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 +4 -4
- data/.yardopts +1 -0
- data/README.md +5 -332
- data/lib/yard/cli/gems.rb +0 -1
- data/lib/yard/cli/stats.rb +3 -3
- data/lib/yard/cli/yardoc.rb +6 -2
- data/lib/yard/docstring_parser.rb +0 -3
- data/lib/yard/handlers/c/symbol_handler.rb +1 -1
- data/lib/yard/handlers/ruby/method_handler.rb +34 -6
- data/lib/yard/handlers/ruby/private_class_method_handler.rb +13 -2
- data/lib/yard/i18n/pot_generator.rb +2 -0
- data/lib/yard/logging.rb +1 -1
- data/lib/yard/parser/ruby/ast_node.rb +45 -11
- data/lib/yard/parser/ruby/ruby_parser.rb +24 -12
- data/lib/yard/rake/yardoc_task.rb +8 -1
- data/lib/yard/server/commands/library_command.rb +5 -2
- data/lib/yard/server/templates/default/layout/html/breadcrumb.erb +1 -1
- data/lib/yard/server/templates/doc_server/processing/html/processing.erb +2 -1
- data/lib/yard/tags/library.rb +0 -2
- data/lib/yard/templates/helpers/html_helper.rb +4 -2
- data/lib/yard/templates/template.rb +3 -3
- data/lib/yard/version.rb +1 -1
- data/spec/cli/yardoc_spec.rb +6 -6
- data/spec/handlers/examples/private_class_method_handler_001.rb.txt +2 -0
- data/spec/handlers/examples/private_class_method_handler_002.rb.txt +18 -0
- data/spec/handlers/examples/private_class_method_handler_003.rb.txt +11 -0
- data/spec/handlers/private_class_method_handler_spec.rb +41 -6
- data/spec/i18n/pot_generator_spec.rb +30 -0
- data/spec/parser/c_parser_spec.rb +18 -0
- data/spec/parser/ruby/ruby_parser_spec.rb +42 -1
- data/spec/parser/source_parser_spec.rb +15 -5
- data/spec/rake/yardoc_task_spec.rb +27 -0
- data/spec/spec_helper.rb +2 -0
- data/spec/templates/helpers/html_helper_spec.rb +32 -0
- data/templates/default/fulldoc/html/full_list.erb +5 -1
- data/templates/default/fulldoc/html/js/full_list.js +4 -1
- metadata +43 -42
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 151173449deffaf3fdbd340eb6a69a22466c223c
|
4
|
+
data.tar.gz: 8b91307da66c762b33030303e61b6c9d4b9d8560
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8e924c4fff9c343cf135f38782f1d22e494691c9bf078d808a2934a6f66623d9d50c7aae30bbc388bab517a027d38f54c2e5985259790f408ebc5896c96197e
|
7
|
+
data.tar.gz: 086c4616eb199f1322f0ab004d276ee0018fc437d9a81cf2d8c9c17bbdca106fe9ce93ad151a5b3f889f4d8b1798027d9d3e75abac356f3a2f88fe5cff8ae1a6
|
data/.yardopts
CHANGED
data/README.md
CHANGED
@@ -5,10 +5,10 @@
|
|
5
5
|
**Git**: http://github.com/lsegal/yard
|
6
6
|
**Author**: Loren Segal
|
7
7
|
**Contributors**: http://github.com/lsegal/yard/contributors
|
8
|
-
**Copyright**: 2007-
|
8
|
+
**Copyright**: 2007-2014
|
9
9
|
**License**: MIT License
|
10
|
-
**Latest Version**: 0.8.7.
|
11
|
-
**Release Date**:
|
10
|
+
**Latest Version**: 0.8.7.5
|
11
|
+
**Release Date**: October 26, 2014
|
12
12
|
|
13
13
|
## Synopsis
|
14
14
|
|
@@ -283,338 +283,11 @@ More options can be seen by typing `yard graph --help`, but here is an example:
|
|
283
283
|
|
284
284
|
## Changelog
|
285
285
|
|
286
|
-
|
287
|
-
- Handle Unicode method/class/file names in server URL encoding (lsegal/rubydoc.info#69).
|
288
|
-
- Style keyword style hashes with same symbol color in code highlighting (#707).
|
289
|
-
- Fix broken JS when visiting docs in file:// scheme (#706).
|
290
|
-
- Add support for new AsciiDoc file extensions (#704).
|
291
|
-
- Fix issues where non-Ruby code blocks would not display in Ruby 2 (#702).
|
292
|
-
- Add support for extra Ruby 2 symbol types in Ripper (#701).
|
293
|
-
- Ensure config directory exists before saving config file (#700).
|
294
|
-
|
295
|
-
- **September.18.13**: 0.8.7.2 release
|
296
|
-
- Disallow absolute URLs when using frame anchor support.
|
297
|
-
- Support casted functions in CRuby method declarations (#697)
|
298
|
-
|
299
|
-
- **September.11.13**: 0.8.7.1 release
|
300
|
-
- Fix potential XSS issue with frame anchor support.
|
301
|
-
- Add support for gettext 3.x gem.
|
302
|
-
|
303
|
-
- **July.26.13**: 0.8.7 release
|
304
|
-
- Added `--hide-api API` option to hide objects with a given `@api` tag (#685).
|
305
|
-
- Added "Returns ...." prefix to summary when a lone @return tag is used.
|
306
|
-
- Fixed issue that caused ref tags to be added to a docstring twice (#678).
|
307
|
-
- Fixed formatting issue in docstring summaries (#686)
|
308
|
-
|
309
|
-
- **June.27.13**: 0.8.6.2 release
|
310
|
-
- Fixed issue where `yard graph` was not displaying methods
|
311
|
-
|
312
|
-
- **April.14.13**: 0.8.6.1 release
|
313
|
-
- Fixed broken links in File menu on default HTML template
|
314
|
-
- Added --layout switch to `yard display` to wrap output in layout template.
|
315
|
-
- See {file:docs/WhatsNew.md} for more information on added features.
|
316
|
-
|
317
|
-
- **April.13.13**: 0.8.6 release
|
318
|
-
- Various fixes and improved Ruby 2.x compatibility support
|
319
|
-
- Added support for `asciidoc` markup type
|
320
|
-
- Added `yard markups` command to list available markup types
|
321
|
-
- Added `yard display` command to display and format an individual object
|
322
|
-
- See {file:docs/WhatsNew.md} for more information on added features.
|
323
|
-
|
324
|
-
- **February.26.13**: 0.8.5.2 release
|
325
|
-
- Support new keyword argument syntax in method signatures (Ruby 2.x)
|
326
|
-
|
327
|
-
- **February.25.13**: 0.8.5.1 release
|
328
|
-
- Fix `yard diff` of gem files with RubyGems 2.x
|
329
|
-
|
330
|
-
- **February.24.13**: 0.8.5 release
|
331
|
-
- Basic support for Ruby 2.0 (fix compat issues in RDoc 4.0, RubyGems 2.0)
|
332
|
-
- Add CSS styling for tables in default HTML template
|
333
|
-
|
334
|
-
- **February.5.13**: 0.8.4.1 release
|
335
|
-
- Fix regression that broke loading of existing yardoc dbs (#648)
|
336
|
-
|
337
|
-
- **February.4.13**: 0.8.4 release
|
338
|
-
- Add `-B/--bind` switch to yard server (#593, #608)
|
339
|
-
- Add CodeObjects::Base#title for plugins to customize how object
|
340
|
-
links display (#646)
|
341
|
-
- Disable linking objects filtered out by verifiers (#645)
|
342
|
-
- Allow macro expansion on class methods (#632)
|
343
|
-
- Expand newly attached macro on first DSL method call (#631)
|
344
|
-
- Disable RubyGems plugin in Ruby 2.0 (#627)
|
345
|
-
- Fix line range for class/module node bodies (#626)
|
346
|
-
- Search extended modules for attached DSL macros (#553)
|
347
|
-
|
348
|
-
- **October.14.12**: 0.8.3 release
|
349
|
-
- Add `--non-transitive-tag` to disable tag transitivity (#571)
|
350
|
-
- Support --db inside .yardopts for graph/server commands (#583, #586)
|
351
|
-
- Fix handling for =begin/=end docstrings (#577, #578)
|
352
|
-
- Parser only sorts file lists when a glob is provided (#572)
|
353
|
-
- Fix formatting in `{include:Object#method}` syntax (#569)
|
354
|
-
- Fix @option tag inside of module functions (#563)
|
355
|
-
- Fix to `--api` and `--no-api` support (#559)
|
356
|
-
- Fix class nesting issues when path starts with "::" (#552)
|
357
|
-
|
358
|
-
- **June.9.12**: 0.8.2.1 release
|
359
|
-
- Fix a set of regressions in yard server search and dynamic generation
|
360
|
-
|
361
|
-
- **June.7.12**: 0.8.2 release
|
362
|
-
- Added progress style output in tty terminals
|
363
|
-
- Embedded mixins should ignore methods defined on module (#539)
|
364
|
-
- Fixed permalinks for embedded mixins in `yard server` (#540)
|
365
|
-
- Improve parsing in CRuby code (#543)
|
366
|
-
- Ensure Registry.resolve picks module when parsing mixins (#545)
|
367
|
-
- Fixed regression that caused various commands to not show output (#548)
|
368
|
-
- Respect current visibility when parsing class conditions (#551)
|
369
|
-
|
370
|
-
- **May.2.12**: 0.8.1 release
|
371
|
-
- Added `--[no-]api` switch to generate docs for API sets (see {file:docs/WhatsNew.md} for details) (#532)
|
372
|
-
- The `yard list` command now uses cache by default (#533)
|
373
|
-
- Fix `yardoc` generating incorrectly named method list file (#528)
|
374
|
-
- Fix HTML output occasionally showing trailing mdash on options list (#522)
|
375
|
-
|
376
|
-
- **April.30.12**: 0.8.0 release
|
377
|
-
- See {file:docs/WhatsNew.md} for a list of added features
|
378
|
-
- Over 20 bug fixes:
|
379
|
-
- Properly filter hidden setter/getter attributes (#394)
|
380
|
-
- Fix test failures in Linux environments (#397, #472, #473, #512, #513)
|
381
|
-
- Fix attribute inheritance and @private (#432)
|
382
|
-
- Fix attribute parsing (#435)
|
383
|
-
- Allow aliases for attributes (#436)
|
384
|
-
- Fix namespace fetching in `handle_alias()` (#437)
|
385
|
-
- Fix overwritten attributes marked as inherited (#442)
|
386
|
-
- Fix documenting constants defined from C code with `rb_define_const()` (#443)
|
387
|
-
- Do not escape snippets twice (#445)
|
388
|
-
- Ajax method/class search should not fire when a non-printable character is pressed (#446)
|
389
|
-
- Fix yard server crashing when RDoc is not installed (#456)
|
390
|
-
- Fix tags ignored when `(see #foo)` is used (#457)
|
391
|
-
- Fix three "Returns" for two `@overload` tags (#458)
|
392
|
-
- Do not auto-detect DSL methods as method objects if parameter name is not a valid method name (#464)
|
393
|
-
- Fix attaching of macros to Object (#465)
|
394
|
-
- Fix handling of `%w()` source in `[]/[]=` parsed context. (#461, pull in #468)
|
395
|
-
- Don't add default `@return` if `@overload` has `@return`. (#458, pull in #469)
|
396
|
-
- Don't discard tags by (see ...). (#457, pull in #470)
|
397
|
-
- Fix constants listed as inherited when overwritten (#474)
|
398
|
-
- Fix `yardoc --asset` behaving differently on first and subsequent calls. (#477)
|
399
|
-
- `!!!lang` code blocks should set the lang in `<pre>`'s class. (#478, #479)
|
400
|
-
- Fix "File List" search tab error. (#502)
|
401
|
-
- Fix search bar not redirecting to method page. (#509)
|
402
|
-
- Fix server returning exception message bodies as String (#518)
|
403
|
-
|
404
|
-
- **January.31.12**: 0.7.5 release
|
405
|
-
- Various minor bug fixes
|
406
|
-
|
407
|
-
- **December.2.11**: 0.7.4 release
|
408
|
-
- Redcarpet is now the default Markdown formatting library. GFM now works out-of-box (#404)
|
409
|
-
- Fix server side searching for elements that are marked private (#420)
|
410
|
-
- Add 'textile_strict' and 'pre' markup types, reorganize text and none (#416)
|
411
|
-
- Improve encoding line detection (#415)
|
412
|
-
- Add support for `rb_define_alias` in CRuby code (#413)
|
413
|
-
- Fix rendering of some keywords in source view (#410)
|
414
|
-
- Add support for RDoc 3.10+ (#406, #407)
|
415
|
-
- Fix typewriter text being processed in code blocks (#403)
|
416
|
-
- Improve support for has_rdoc in RubyGems 1.8.x (#401)
|
417
|
-
- See the {file:docs/WhatsNew.md} document for details on added features
|
418
|
-
|
419
|
-
- **October.15.11**: 0.7.3 release
|
420
|
-
- Improve support for parsing under Ruby 1.9.2p290 and 1.9.3 (#365, #370)
|
421
|
-
- Add support for SWIG generated CRuby code (#369)
|
422
|
-
- Add support for `rb_define_attr` calls in CRuby code (#362)
|
423
|
-
- Handle file pointers in CRuby code (#358)
|
424
|
-
|
425
|
-
- **June.14.11**: 0.7.2 release
|
426
|
-
- Fix `yard --help` not showing proper output
|
427
|
-
- YARD now expands path to `.yardoc` file in daemon mode for server (#328)
|
428
|
-
- Fix `@overload` tag linking to wrong method (#330)
|
429
|
-
- Fix incorrect return type when using `@macro` (#334)
|
430
|
-
- YARD now requires 'thread' to support RubyGems 1.7+ (#338)
|
431
|
-
- Fix bug in constant documentation when using `%w()` (#348)
|
432
|
-
- Fix YARD style URL links when using autolinking markdown (#353)
|
433
|
-
|
434
|
-
- **May.18.11**: 0.7.1 release
|
435
|
-
- Fixes a bug in `yard server` not displaying class list properly.
|
436
|
-
|
437
|
-
- **May.17.11**: 0.7.0 release
|
438
|
-
- See the {file:docs/WhatsNew.md} document for details on added features
|
439
|
-
- Make sure that Docstring#line_range is filled when possible (#243)
|
440
|
-
- Set #verifier in YardocTask (#282)
|
441
|
-
- Parse BOM in UTF-8 files (#288)
|
442
|
-
- Fix instance attributes not showing up in method list (#302)
|
443
|
-
- Fix rendering of %w() literals in constants (#306)
|
444
|
-
- Ignore keyboard shortcuts when an input is active (#312)
|
445
|
-
- And more...
|
446
|
-
|
447
|
-
- **April.14.11**: 0.6.8 release
|
448
|
-
- Fix regression in RDoc 1.x markup loading
|
449
|
-
- Fix regression in loading of markup libraries for `yard server`
|
450
|
-
|
451
|
-
- **April.6.11**: 0.6.7 release
|
452
|
-
- Fix has_rdoc gem specification issue with new RubyGems plugin API (oops!)
|
453
|
-
|
454
|
-
- **April.6.11**: 0.6.6 release
|
455
|
-
- Fix error message when RDoc is not present (#270)
|
456
|
-
- Add markup type 'none' to perform basic HTML translation (fallback when RDoc is not present)
|
457
|
-
- Add support for RubyGems 1.7.x (#272)
|
458
|
-
- Fix rendering of `{url description}` syntax when description contains newline
|
459
|
-
|
460
|
-
- **March.13.11**: 0.6.5 release
|
461
|
-
- Support `ripper` gem in Ruby 1.8.7
|
462
|
-
- Upgrade jQuery to 1.5.1
|
463
|
-
- Fix handling of alias statements with quoted symbols (#262)
|
464
|
-
- Add CSS styles (#260)
|
465
|
-
- Unhandled exception in YARD::Handlers::Ruby::MixinHandler indexing documentation for eventmachine (#248)
|
466
|
-
- Splice any alias references on method re-definitions into separate methods (#247)
|
467
|
-
- Fix "yard graph" (#245)
|
468
|
-
- Don't process ++ typewriter text inside of HTML attributes (#244)
|
469
|
-
- Prioritize loading of Kramdown before Maruku (#241)
|
470
|
-
- Skip shebang encoding in docstrings (#238)
|
471
|
-
- Fix truncation of references in @deprecated (#232)
|
472
|
-
- Show @api private note when no other tags are present (#231)
|
473
|
-
- Detect docstrings starting with "##" as `Docstring#hash_flag` (#230)
|
474
|
-
- Remove trailing whitespace from freeform tags (#229)
|
475
|
-
- Fix line through for deprecated methods (#225)
|
476
|
-
- Mistake in Tags.md (#223)
|
477
|
-
- Improve database storage by being more efficient with filesystem usage (#222)
|
478
|
-
- Make Registry thread local (#221)
|
479
|
-
- Support `private_constant` class method for 1.9.3 (#219)
|
480
|
-
- Do not assume RDoc is installed (#214)
|
481
|
-
|
482
|
-
- **December.21.10**: 0.6.4 release
|
483
|
-
- Fix yri tool crashing with new Config class (gh-217)
|
484
|
-
- Fix support for ::TopLevelConstants (gh-216)
|
485
|
-
- YARD's test suite is now RSpec2 compatible (gh-215)
|
486
|
-
- Improved documentation for YARD::Server features (gh-207)
|
487
|
-
- Fix displaying of collaped method summary lists (gh-204)
|
488
|
-
- Fix automatic loading of markup providers (gh-206)
|
489
|
-
- Fix keyboard shortcuts for Chrome (gh-203)
|
490
|
-
- Disallow `extend self` inside of a class (gh-202)
|
491
|
-
- Constants now recognized in C extensions (gh-201)
|
492
|
-
|
493
|
-
- **November.21.10**: 0.6.3 release
|
494
|
-
- Fixed regression that caused `yardoc --markup` to silently exit
|
495
|
-
|
496
|
-
- **November.15.10**: 0.6.2 release
|
497
|
-
- **Plugins no longer automatically load, use `--plugin` to load a plugin**
|
498
|
-
- Added YARD::Config and ~/.yard/config YAML configuration file
|
499
|
-
- Added `yard config` command to view/edit YARD configuration file
|
500
|
-
- Fixes for YARD in 1.8.6 (gh-178)
|
501
|
-
- Various HTML template adjustments and fixes (gh-198,199,200)
|
502
|
-
- Improved `yard server -m` multi-project stability (gh-193)
|
503
|
-
- Fixed handling of `yardoc --no-private` with missing class definitions (gh-197)
|
504
|
-
- Added support for constants defined in C extensions (gh-177)
|
505
|
-
- Added support for Structs defined as "Klass = Struct.new(...)" (gh-187)
|
506
|
-
- Improved parsing support for third-party gems (gh-174,180)
|
507
|
-
- Improved support for JRuby 1.6.4+. YARD now passes all specs in JRuby (gh-185)
|
508
|
-
- Improved YARD documentation (gh-172,191,196)
|
509
|
-
|
510
|
-
- **September.06.10**: 0.6.1 release
|
511
|
-
- Fixed TOC showing on top of class/method list in no-frames view
|
512
|
-
- A message now displays when running `yard server` with Rack/Mongrel installed
|
513
|
-
- Improved performance of JS inline search for large class/method lists
|
514
|
-
- Improved link titles for relative object links
|
515
|
-
- Removed `String#camelcase` and `String#underscore` for better Rails compat.
|
516
|
-
- Fixed support for loading .yardoc files under Windows
|
517
|
-
- Fixed inheritance tree arrows not displaying in certain environments
|
518
|
-
|
519
|
-
- **August.29.10**: 0.6.0 release
|
520
|
-
- Added dynamic local documentation server
|
521
|
-
- Added @group/@endgroup declarations to organize methods into groups
|
522
|
-
- Added `yard` executable to serve as main CLI tool with pluggable commands
|
523
|
-
- Added `--asset` switch to `yardoc` to copy files/dirs to output dir
|
524
|
-
- Added ability to register/manipulate tags via CLI (`--tag`, etc.)
|
525
|
-
- Added `yard diff` command
|
526
|
-
- Added statistics to `yardoc` output (and `yard stats` command)
|
527
|
-
- Added Javascript generated Table of Contents to file pages
|
528
|
-
- Updated various APIs
|
529
|
-
- Removed `yard-graph` executable
|
530
|
-
- See more changes in the {file:docs/WhatsNew.md what's new document}
|
531
|
-
|
532
|
-
- **June.22.10**: 0.5.8 release
|
533
|
-
- Merge fix from 0.6 branch for --no-private visibility checking
|
534
|
-
|
535
|
-
- **June.21.10**: 0.5.7 release
|
536
|
-
- Fixed visibility flag parsing in `yardoc`
|
537
|
-
- Updated Parser Architecture documentation with new SourceParser API
|
538
|
-
- Improved Registry documentation for new load commands
|
539
|
-
- Fix loading of .yardoc file as cache (and preserving aliases)
|
540
|
-
- Fix "lib" directory missing when running YARD on installed gems
|
541
|
-
|
542
|
-
- **June.12.10**: 0.5.6 release
|
543
|
-
- Bug fixes for RubyGems plugin, `has_rdoc=false` should now work
|
544
|
-
- New API for registering custom parsers. See {file:docs/WhatsNew.md}
|
545
|
-
|
546
|
-
- **May.22.10**: 0.5.5 release
|
547
|
-
- Various bug fixes
|
548
|
-
|
549
|
-
- **March.22.10**: 0.5.4 release
|
550
|
-
- See {file:docs/WhatsNew.md what's new document} for changes
|
551
|
-
|
552
|
-
- **January.11.10**: 0.5.3 release
|
553
|
-
- See {file:docs/WhatsNew.md what's new document} for changes
|
554
|
-
|
555
|
-
- **December.16.09**: 0.5.2 release
|
556
|
-
- See {file:docs/WhatsNew.md what's new document} for changes
|
557
|
-
|
558
|
-
- **December.15.09**: 0.5.1 release
|
559
|
-
- See {file:docs/WhatsNew.md what's new document} for changes
|
560
|
-
|
561
|
-
- **December.13.09**: 0.5.0 release
|
562
|
-
- See {file:docs/WhatsNew.md what's new document} for changes
|
563
|
-
|
564
|
-
- **November.15.09**: 0.4.0 release
|
565
|
-
- Added new templating engine based on [tadpole](http://github.com/lsegal/tadpole)
|
566
|
-
- Added YARD queries (`--query` CLI argument to yardoc)
|
567
|
-
- Greatly expanded YARD documentation
|
568
|
-
- Added plugin support
|
569
|
-
- New `@abstract` and `@private` tags
|
570
|
-
- Changed default rake task to `rake yard`
|
571
|
-
- Read about changes in {file:docs/WhatsNew.md}
|
572
|
-
|
573
|
-
- **August.13.09**: 0.2.3.5 release
|
574
|
-
- Minor bug fixes.
|
575
|
-
|
576
|
-
- **August.07.09**: 0.2.3.4 release
|
577
|
-
- Minor bug fixes.
|
578
|
-
|
579
|
-
- **July.26.09**: 0.2.3.3 release
|
580
|
-
- Minor bug fixes.
|
581
|
-
|
582
|
-
- **July.06.09**: 0.2.3.2 release
|
583
|
-
- Fix Textile hard-break issues
|
584
|
-
- Add description for @see tag to use as link title in HTML docs.
|
585
|
-
- Add --title CLI option to specify a title for HTML doc files.
|
586
|
-
- Add custom.css file that can be overridden with various custom
|
587
|
-
styelsheet declarations. To use this, simply add `default/fulldoc/html/custom.css`
|
588
|
-
inside your code directory and use the `-t` template directory yardoc CLI
|
589
|
-
option to point to that template directory (the dir holding 'default').
|
590
|
-
- Add support in `yardoc` CLI to specify extra files (formerly --files)
|
591
|
-
by appending "- extra files here" after regular source files. Example:
|
592
|
-
|
593
|
-
yardoc --private lib/**/*.rb - FAQ LICENSE
|
594
|
-
|
595
|
-
- **Jun.13.09**: 0.2.3.1 release.
|
596
|
-
- Add a RubyGems 1.3.2+ plugin to generate YARD documentation instead of
|
597
|
-
RDoc. To take advantage of this plugin, set `has_rdoc = 'yard'` in your
|
598
|
-
.gemspec file.
|
599
|
-
|
600
|
-
- **Jun.07.09**: 0.2.3 release. See the {file:docs/WhatsNew.md} file for a
|
601
|
-
list of important new features.
|
602
|
-
|
603
|
-
- **Jun.16.08**: 0.2.2 release. This is the largest changset since yard's
|
604
|
-
conception and involves a complete overhaul of the parser and API to make it
|
605
|
-
more robust and far easier to extend and use for the developer.
|
606
|
-
|
607
|
-
- **Feb.20.08**: 0.2.1 release.
|
608
|
-
|
609
|
-
- **Feb.24.07**: Released 0.1a experimental version for testing. The goal here is
|
610
|
-
to get people testing YARD on their code because there are too many possible
|
611
|
-
code styles to fit into a sane amount of test cases. It also demonstrates the
|
612
|
-
power of YARD and what to expect from the syntax (Yardoc style meta tags).
|
613
|
-
|
286
|
+
See {file:CHANGELOG.md} for a list of changes.
|
614
287
|
|
615
288
|
## Copyright
|
616
289
|
|
617
|
-
YARD © 2007-
|
290
|
+
YARD © 2007-2014 by [Loren Segal](mailto:lsegal@soen.ca). YARD is
|
618
291
|
licensed under the MIT license except for some files which come from the
|
619
292
|
RDoc/Ruby distributions. Please see the {file:LICENSE} and {file:LEGAL}
|
620
293
|
documents for more information.
|
data/lib/yard/cli/gems.rb
CHANGED
data/lib/yard/cli/stats.rb
CHANGED
@@ -76,19 +76,19 @@ module YARD
|
|
76
76
|
log.puts
|
77
77
|
log.puts "Undocumented Objects:"
|
78
78
|
|
79
|
-
objects = @undoc_list.sort_by {|o| o.file }
|
79
|
+
objects = @undoc_list.sort_by {|o| o.file.to_s }
|
80
80
|
max = objects.sort_by {|o| o.path.length }.last.path.length
|
81
81
|
if @compact
|
82
82
|
objects.each do |object|
|
83
83
|
log.puts("%-#{max}s (%s)" % [object.path,
|
84
|
-
[object.file, object.line].compact.join(":")])
|
84
|
+
[object.file || "-unknown-", object.line].compact.join(":")])
|
85
85
|
end
|
86
86
|
else
|
87
87
|
last_file = nil
|
88
88
|
objects.each do |object|
|
89
89
|
if object.file != last_file
|
90
90
|
log.puts
|
91
|
-
log.puts "(in file: #{object.file})"
|
91
|
+
log.puts "(in file: #{object.file || "-unknown-"})"
|
92
92
|
end
|
93
93
|
log.puts object.path
|
94
94
|
last_file = object.file
|
data/lib/yard/cli/yardoc.rb
CHANGED
@@ -44,7 +44,11 @@ module YARD
|
|
44
44
|
# @return [CodeObjects::ExtraFileObject] the file object being rendered.
|
45
45
|
# The +object+ key is not used so that a file may be rendered in the context
|
46
46
|
# of an object's namespace (for generating links).
|
47
|
-
|
47
|
+
attr_reader :file
|
48
|
+
def file=(v) @file = v end
|
49
|
+
|
50
|
+
# @return [String] the current locale
|
51
|
+
attr_accessor :locale
|
48
52
|
end
|
49
53
|
|
50
54
|
# Yardoc is the default YARD CLI command (+yard doc+ and historic +yardoc+
|
@@ -274,7 +278,7 @@ module YARD
|
|
274
278
|
# Last minute modifications
|
275
279
|
self.files = ['{lib,app}/**/*.rb', 'ext/**/*.c'] if self.files.empty?
|
276
280
|
self.files.delete_if {|x| x =~ /\A\s*\Z/ } # remove empty ones
|
277
|
-
readme = Dir.glob('README
|
281
|
+
readme = Dir.glob('README{,*[^~]}').first
|
278
282
|
readme ||= Dir.glob(files.first).first if options.onefile
|
279
283
|
options.readme ||= CodeObjects::ExtraFileObject.new(readme) if readme
|
280
284
|
options.files.unshift(options.readme).uniq! if options.readme
|
@@ -296,9 +296,6 @@ module YARD
|
|
296
296
|
after_parse do |parser|
|
297
297
|
next unless parser.object
|
298
298
|
next unless parser.object.is_a?(CodeObjects::MethodObject)
|
299
|
-
next if parser.object.parameters.empty? # method has no params or
|
300
|
-
# YARD couldn't detect any.
|
301
|
-
# but don't warn user (?)
|
302
299
|
names = parser.object.parameters.map {|l| l.first.gsub(/\W/, '') }
|
303
300
|
seen_names = []
|
304
301
|
infile_info = "\n in file `#{parser.object.file}' " +
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# Keeps track of function bodies for symbol lookup during Ruby method declarations
|
2
2
|
class YARD::Handlers::C::SymbolHandler < YARD::Handlers::C::Base
|
3
|
-
MATCH = %r{\A\s*(?:(
|
3
|
+
MATCH = %r{\A\s*(?:(?:\w+)\s+)?(?:intern\s+)?VALUE\s+(\w+)\s*\(}
|
4
4
|
handles MATCH
|
5
5
|
statement_class ToplevelStatement
|
6
6
|
process { symbols[statement.source[MATCH, 1]] = statement }
|