yard 0.9.21 → 0.9.26

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.

Files changed (250) hide show
  1. checksums.yaml +4 -4
  2. data/.dockerignore +0 -0
  3. data/.gitattributes +4 -0
  4. data/.github/FUNDING.yml +3 -0
  5. data/.github/ISSUE_TEMPLATE.md +6 -6
  6. data/.github/PULL_REQUEST_TEMPLATE.md +5 -5
  7. data/.github/workflows/ci.yml +42 -0
  8. data/.github/workflows/gem.yml +27 -0
  9. data/.gitignore +0 -0
  10. data/.rspec +0 -0
  11. data/.rubocop.yml +37 -24
  12. data/.travis.yml +0 -3
  13. data/.yardopts +0 -0
  14. data/.yardopts_guide +0 -0
  15. data/.yardopts_i18n +0 -0
  16. data/CHANGELOG.md +47 -4
  17. data/CONTRIBUTING.md +2 -2
  18. data/Gemfile +4 -3
  19. data/README.md +97 -102
  20. data/Rakefile +2 -0
  21. data/lib/yard/cli/diff.rb +4 -1
  22. data/lib/yard/cli/server.rb +22 -13
  23. data/lib/yard/code_objects/method_object.rb +1 -1
  24. data/lib/yard/code_objects/namespace_mapper.rb +30 -3
  25. data/lib/yard/code_objects/proxy.rb +2 -1
  26. data/lib/yard/globals.rb +1 -1
  27. data/lib/yard/handlers/c/base.rb +35 -0
  28. data/lib/yard/handlers/ruby/mixin_handler.rb +4 -1
  29. data/lib/yard/parser/ruby/legacy/irb/slex.rb +1 -1
  30. data/lib/yard/parser/ruby/ruby_parser.rb +6 -4
  31. data/lib/yard/parser/ruby/token_resolver.rb +3 -1
  32. data/lib/yard/parser/source_parser.rb +1 -1
  33. data/lib/yard/registry_resolver.rb +10 -24
  34. data/lib/yard/registry_store.rb +1 -1
  35. data/lib/yard/serializers/yardoc_serializer.rb +1 -1
  36. data/lib/yard/server/commands/base.rb +2 -2
  37. data/lib/yard/templates/helpers/html_helper.rb +10 -3
  38. data/lib/yard/templates/helpers/html_syntax_highlight_helper.rb +1 -1
  39. data/lib/yard/templates/helpers/markup/rdoc_markup.rb +5 -4
  40. data/lib/yard/templates/section.rb +1 -3
  41. data/lib/yard/version.rb +1 -1
  42. data/samus.json +15 -46
  43. data/tasks/update_error_map.rake +53 -0
  44. data/templates/default/fulldoc/html/css/style.css +1 -0
  45. data/templates/default/fulldoc/html/js/jquery.js +4 -2
  46. data/yard.gemspec +1 -2
  47. metadata +9 -206
  48. data/spec/cli/command_parser_spec.rb +0 -43
  49. data/spec/cli/command_spec.rb +0 -36
  50. data/spec/cli/config_spec.rb +0 -148
  51. data/spec/cli/diff_spec.rb +0 -254
  52. data/spec/cli/display_spec.rb +0 -30
  53. data/spec/cli/gems_spec.rb +0 -81
  54. data/spec/cli/graph_spec.rb +0 -18
  55. data/spec/cli/help_spec.rb +0 -22
  56. data/spec/cli/i18n_spec.rb +0 -107
  57. data/spec/cli/list_spec.rb +0 -8
  58. data/spec/cli/markup_types_spec.rb +0 -22
  59. data/spec/cli/server_spec.rb +0 -324
  60. data/spec/cli/stats_spec.rb +0 -96
  61. data/spec/cli/yard_on_yard_spec.rb +0 -38
  62. data/spec/cli/yardoc_spec.rb +0 -896
  63. data/spec/cli/yri_spec.rb +0 -101
  64. data/spec/code_objects/base_spec.rb +0 -485
  65. data/spec/code_objects/class_object_spec.rb +0 -226
  66. data/spec/code_objects/code_object_list_spec.rb +0 -36
  67. data/spec/code_objects/constants_spec.rb +0 -116
  68. data/spec/code_objects/extra_file_object_spec.rb +0 -161
  69. data/spec/code_objects/macro_object_spec.rb +0 -150
  70. data/spec/code_objects/method_object_spec.rb +0 -184
  71. data/spec/code_objects/module_object_spec.rb +0 -142
  72. data/spec/code_objects/namespace_object_spec.rb +0 -171
  73. data/spec/code_objects/proxy_spec.rb +0 -147
  74. data/spec/code_objects/spec_helper.rb +0 -3
  75. data/spec/config_spec.rb +0 -171
  76. data/spec/core_ext/array_spec.rb +0 -13
  77. data/spec/core_ext/file_spec.rb +0 -72
  78. data/spec/core_ext/hash_spec.rb +0 -14
  79. data/spec/core_ext/insertion_spec.rb +0 -37
  80. data/spec/core_ext/module_spec.rb +0 -9
  81. data/spec/core_ext/string_spec.rb +0 -42
  82. data/spec/core_ext/symbol_hash_spec.rb +0 -89
  83. data/spec/docstring_parser_spec.rb +0 -280
  84. data/spec/docstring_spec.rb +0 -373
  85. data/spec/handlers/alias_handler_spec.rb +0 -82
  86. data/spec/handlers/attribute_handler_spec.rb +0 -96
  87. data/spec/handlers/base_spec.rb +0 -216
  88. data/spec/handlers/c/alias_handler_spec.rb +0 -34
  89. data/spec/handlers/c/attribute_handler_spec.rb +0 -41
  90. data/spec/handlers/c/class_handler_spec.rb +0 -78
  91. data/spec/handlers/c/constant_handler_spec.rb +0 -71
  92. data/spec/handlers/c/init_handler_spec.rb +0 -48
  93. data/spec/handlers/c/method_handler_spec.rb +0 -327
  94. data/spec/handlers/c/mixin_handler_spec.rb +0 -44
  95. data/spec/handlers/c/module_handler_spec.rb +0 -71
  96. data/spec/handlers/c/override_comment_handler_spec.rb +0 -47
  97. data/spec/handlers/c/path_handler_spec.rb +0 -36
  98. data/spec/handlers/c/spec_helper.rb +0 -23
  99. data/spec/handlers/c/struct_handler_spec.rb +0 -16
  100. data/spec/handlers/class_condition_handler_spec.rb +0 -87
  101. data/spec/handlers/class_handler_spec.rb +0 -247
  102. data/spec/handlers/class_method_handler_shared_examples.rb +0 -133
  103. data/spec/handlers/class_variable_handler_spec.rb +0 -12
  104. data/spec/handlers/constant_handler_spec.rb +0 -112
  105. data/spec/handlers/decorator_handler_methods_spec.rb +0 -393
  106. data/spec/handlers/dsl_handler_spec.rb +0 -226
  107. data/spec/handlers/examples/alias_handler_001.rb.txt +0 -46
  108. data/spec/handlers/examples/attribute_handler_001.rb.txt +0 -32
  109. data/spec/handlers/examples/class_condition_handler_001.rb.txt +0 -69
  110. data/spec/handlers/examples/class_handler_001.rb.txt +0 -120
  111. data/spec/handlers/examples/class_variable_handler_001.rb.txt +0 -10
  112. data/spec/handlers/examples/constant_handler_001.rb.txt +0 -35
  113. data/spec/handlers/examples/dsl_handler_001.rb.txt +0 -156
  114. data/spec/handlers/examples/exception_handler_001.rb.txt +0 -59
  115. data/spec/handlers/examples/extend_handler_001.rb.txt +0 -19
  116. data/spec/handlers/examples/method_condition_handler_001.rb.txt +0 -10
  117. data/spec/handlers/examples/method_handler_001.rb.txt +0 -128
  118. data/spec/handlers/examples/mixin_handler_001.rb.txt +0 -40
  119. data/spec/handlers/examples/module_handler_001.rb.txt +0 -29
  120. data/spec/handlers/examples/private_constant_handler_001.rb.txt +0 -8
  121. data/spec/handlers/examples/process_handler_001.rb.txt +0 -11
  122. data/spec/handlers/examples/visibility_handler_001.rb.txt +0 -36
  123. data/spec/handlers/examples/yield_handler_001.rb.txt +0 -54
  124. data/spec/handlers/exception_handler_spec.rb +0 -49
  125. data/spec/handlers/extend_handler_spec.rb +0 -28
  126. data/spec/handlers/legacy_base_spec.rb +0 -128
  127. data/spec/handlers/method_condition_handler_spec.rb +0 -15
  128. data/spec/handlers/method_handler_spec.rb +0 -214
  129. data/spec/handlers/mixin_handler_spec.rb +0 -60
  130. data/spec/handlers/module_function_handler_spec.rb +0 -106
  131. data/spec/handlers/module_handler_spec.rb +0 -35
  132. data/spec/handlers/private_class_method_handler_spec.rb +0 -11
  133. data/spec/handlers/private_constant_handler_spec.rb +0 -25
  134. data/spec/handlers/processor_spec.rb +0 -35
  135. data/spec/handlers/public_class_method_handler_spec.rb +0 -11
  136. data/spec/handlers/ruby/base_spec.rb +0 -95
  137. data/spec/handlers/ruby/legacy/base_spec.rb +0 -84
  138. data/spec/handlers/spec_helper.rb +0 -33
  139. data/spec/handlers/visibility_handler_spec.rb +0 -44
  140. data/spec/handlers/yield_handler_spec.rb +0 -52
  141. data/spec/i18n/locale_spec.rb +0 -81
  142. data/spec/i18n/message_spec.rb +0 -52
  143. data/spec/i18n/messages_spec.rb +0 -67
  144. data/spec/i18n/pot_generator_spec.rb +0 -295
  145. data/spec/i18n/text_spec.rb +0 -184
  146. data/spec/logging_spec.rb +0 -44
  147. data/spec/options_spec.rb +0 -171
  148. data/spec/parser/base_spec.rb +0 -24
  149. data/spec/parser/c_parser_spec.rb +0 -236
  150. data/spec/parser/examples/array.c.txt +0 -6267
  151. data/spec/parser/examples/example1.rb.txt +0 -8
  152. data/spec/parser/examples/extrafile.c.txt +0 -8
  153. data/spec/parser/examples/file.c.txt +0 -28
  154. data/spec/parser/examples/multifile.c.txt +0 -22
  155. data/spec/parser/examples/namespace.cpp.txt +0 -68
  156. data/spec/parser/examples/override.c.txt +0 -424
  157. data/spec/parser/examples/parse_in_order_001.rb.txt +0 -2
  158. data/spec/parser/examples/parse_in_order_002.rb.txt +0 -2
  159. data/spec/parser/examples/tag_handler_001.rb.txt +0 -8
  160. data/spec/parser/ruby/ast_node_spec.rb +0 -33
  161. data/spec/parser/ruby/legacy/statement_list_spec.rb +0 -299
  162. data/spec/parser/ruby/legacy/token_list_spec.rb +0 -79
  163. data/spec/parser/ruby/ruby_parser_spec.rb +0 -508
  164. data/spec/parser/ruby/token_resolver_spec.rb +0 -165
  165. data/spec/parser/source_parser_spec.rb +0 -727
  166. data/spec/parser/tag_parsing_spec.rb +0 -17
  167. data/spec/rake/yardoc_task_spec.rb +0 -118
  168. data/spec/registry_spec.rb +0 -463
  169. data/spec/registry_store_spec.rb +0 -327
  170. data/spec/rubygems/doc_manager_spec.rb +0 -112
  171. data/spec/serializers/data/serialized_yardoc/checksums +0 -1
  172. data/spec/serializers/data/serialized_yardoc/objects/Foo.dat +0 -0
  173. data/spec/serializers/data/serialized_yardoc/objects/Foo/bar_i.dat +0 -0
  174. data/spec/serializers/data/serialized_yardoc/objects/Foo/baz_i.dat +0 -0
  175. data/spec/serializers/data/serialized_yardoc/objects/root.dat +0 -0
  176. data/spec/serializers/data/serialized_yardoc/proxy_types +0 -2
  177. data/spec/serializers/file_system_serializer_spec.rb +0 -145
  178. data/spec/serializers/spec_helper.rb +0 -2
  179. data/spec/serializers/yardoc_serializer_spec.rb +0 -78
  180. data/spec/server/adapter_spec.rb +0 -39
  181. data/spec/server/commands/base_spec.rb +0 -91
  182. data/spec/server/commands/library_command_spec.rb +0 -39
  183. data/spec/server/doc_server_helper_spec.rb +0 -72
  184. data/spec/server/doc_server_serializer_spec.rb +0 -60
  185. data/spec/server/rack_adapter_spec.rb +0 -21
  186. data/spec/server/router_spec.rb +0 -123
  187. data/spec/server/spec_helper.rb +0 -22
  188. data/spec/server/static_caching_spec.rb +0 -47
  189. data/spec/server/webrick_servlet_spec.rb +0 -20
  190. data/spec/server_spec.rb +0 -19
  191. data/spec/spec_helper.rb +0 -212
  192. data/spec/tags/default_factory_spec.rb +0 -168
  193. data/spec/tags/default_tag_spec.rb +0 -11
  194. data/spec/tags/directives_spec.rb +0 -463
  195. data/spec/tags/library_spec.rb +0 -48
  196. data/spec/tags/overload_tag_spec.rb +0 -53
  197. data/spec/tags/ref_tag_list_spec.rb +0 -53
  198. data/spec/tags/types_explainer_spec.rb +0 -203
  199. data/spec/templates/class_spec.rb +0 -45
  200. data/spec/templates/constant_spec.rb +0 -41
  201. data/spec/templates/engine_spec.rb +0 -131
  202. data/spec/templates/examples/class001.html +0 -308
  203. data/spec/templates/examples/class001.txt +0 -36
  204. data/spec/templates/examples/class002.html +0 -39
  205. data/spec/templates/examples/constant001.txt +0 -25
  206. data/spec/templates/examples/constant002.txt +0 -7
  207. data/spec/templates/examples/constant003.txt +0 -11
  208. data/spec/templates/examples/method001.html +0 -137
  209. data/spec/templates/examples/method001.txt +0 -35
  210. data/spec/templates/examples/method002.html +0 -91
  211. data/spec/templates/examples/method002.txt +0 -20
  212. data/spec/templates/examples/method003.html +0 -165
  213. data/spec/templates/examples/method003.txt +0 -45
  214. data/spec/templates/examples/method004.html +0 -48
  215. data/spec/templates/examples/method004.txt +0 -10
  216. data/spec/templates/examples/method005.html +0 -105
  217. data/spec/templates/examples/method005.txt +0 -33
  218. data/spec/templates/examples/method006.html +0 -108
  219. data/spec/templates/examples/method006.txt +0 -20
  220. data/spec/templates/examples/module001.dot +0 -33
  221. data/spec/templates/examples/module001.html +0 -833
  222. data/spec/templates/examples/module001.txt +0 -33
  223. data/spec/templates/examples/module002.html +0 -341
  224. data/spec/templates/examples/module003.html +0 -202
  225. data/spec/templates/examples/module004.html +0 -394
  226. data/spec/templates/examples/module005.html +0 -82
  227. data/spec/templates/examples/tag001.txt +0 -82
  228. data/spec/templates/helpers/base_helper_spec.rb +0 -171
  229. data/spec/templates/helpers/html_helper_spec.rb +0 -687
  230. data/spec/templates/helpers/html_syntax_highlight_helper_spec.rb +0 -65
  231. data/spec/templates/helpers/markup/rdoc_markup_spec.rb +0 -84
  232. data/spec/templates/helpers/markup_helper_spec.rb +0 -136
  233. data/spec/templates/helpers/method_helper_spec.rb +0 -107
  234. data/spec/templates/helpers/module_helper_spec.rb +0 -35
  235. data/spec/templates/helpers/shared_signature_examples.rb +0 -126
  236. data/spec/templates/helpers/text_helper_spec.rb +0 -65
  237. data/spec/templates/markup_processor_integrations/asciidoctor_spec.rb +0 -60
  238. data/spec/templates/markup_processor_integrations/integration_spec_helper.rb +0 -46
  239. data/spec/templates/markup_processor_integrations/rdoc_markdown_spec.rb +0 -59
  240. data/spec/templates/markup_processor_integrations/rdoc_spec.rb +0 -39
  241. data/spec/templates/markup_processor_integrations/redcarpet_spec.rb +0 -59
  242. data/spec/templates/markup_processor_integrations/redcloth_spec.rb +0 -48
  243. data/spec/templates/method_spec.rb +0 -118
  244. data/spec/templates/module_spec.rb +0 -203
  245. data/spec/templates/onefile_spec.rb +0 -66
  246. data/spec/templates/section_spec.rb +0 -144
  247. data/spec/templates/spec_helper.rb +0 -76
  248. data/spec/templates/tag_spec.rb +0 -52
  249. data/spec/templates/template_spec.rb +0 -410
  250. data/spec/verifier_spec.rb +0 -106
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3ce18eac2e64c2f48f33278cf01032c7e36b2ec78cf15eed67a90b126a675ca1
4
- data.tar.gz: e4eb11a4995a2a14207acb50421b16b0d5b760c71141135bf519c402ae182c3c
3
+ metadata.gz: b26148831eae874a1a8f704e19bb86e0f3924ba3482337edfe70d1a1c320a00b
4
+ data.tar.gz: 60d089381ca93b8b7b732317eafe7da0f56fbd727effaca34a52d1040a217e09
5
5
  SHA512:
6
- metadata.gz: f795f923bea85e6de27fa5ddedd7b097c63811e274f90192cca65e0d3c748e1ebf4273fd202857dfd28047445e8a1edd30d270064016cb2d668e7f5e9d5d1eee
7
- data.tar.gz: 1aa66474fd6f00a5d94e85272b223867763378593d093cfed1da7eaaef15954845c1728548e4bc4f868ce4f8f4c7a598be9e8f44fb73954c1577e607414de7fd
6
+ metadata.gz: 6e298247ed74a5db2d7f561feaaa6d84a19914c91bc4b9b7e701fa1e33efd7d07e9284eab6c6aad03b61e89268bb105e01a5dcd88beccaf212507cee794d161d
7
+ data.tar.gz: 9207539dc74b76b2f02a384ed97bafafc13a2b42dab3cb5130d927bc3a6c53976e802856d2be6c6f566f7811ca33eaa5c2c52a1357df8d950402fa2d949d7005
File without changes
@@ -0,0 +1,4 @@
1
+ # Auto detect text files and perform LF normalization
2
+ * text eol=lf
3
+
4
+ *.png binary
@@ -0,0 +1,3 @@
1
+ # These are supported funding model platforms
2
+
3
+ github: lsegal
@@ -22,12 +22,12 @@ visual issues.]
22
22
 
23
23
  ## Environment details:
24
24
 
25
- * OS: [Enter operating system / version here]
26
- * Ruby version (`ruby -v`): [Enter output of `ruby -v`]
27
- * YARD version (`yard -v`): [Enter output of `yard -v`]
28
- * Relevant software dependency/versions:
29
- * [Any 3rd party libs required to reproduce, omit if none]
25
+ - OS: [Enter operating system / version here]
26
+ - Ruby version (`ruby -v`): [Enter output of `ruby -v`]
27
+ - YARD version (`yard -v`): [Enter output of `yard -v`]
28
+ - Relevant software dependency/versions:
29
+ - [Any 3rd party libs required to reproduce, omit if none]
30
30
 
31
31
  I have read the [Contributing Guide][contrib].
32
32
 
33
- [contrib]: https://github.com/lsegal/yard/blob/master/CONTRIBUTING.md
33
+ [contrib]: https://github.com/lsegal/yard/blob/main/CONTRIBUTING.md
@@ -4,9 +4,9 @@ Describe your pull request and problem statement here.
4
4
 
5
5
  # Completed Tasks
6
6
 
7
- * [ ] I have read the [Contributing Guide][contrib].
8
- * [ ] The pull request is complete (implemented / written).
9
- * [ ] Git commits have been cleaned up (squash WIP / revert commits).
10
- * [ ] I wrote tests and ran `bundle exec rake` locally (if code is attached to PR).
7
+ - [ ] I have read the [Contributing Guide][contrib].
8
+ - [ ] The pull request is complete (implemented / written).
9
+ - [ ] Git commits have been cleaned up (squash WIP / revert commits).
10
+ - [ ] I wrote tests and ran `bundle exec rake` locally (if code is attached to PR).
11
11
 
12
- [contrib]: https://github.com/lsegal/yard/blob/master/CONTRIBUTING.md
12
+ [contrib]: https://github.com/lsegal/yard/blob/main/CONTRIBUTING.md
@@ -0,0 +1,42 @@
1
+ name: Unit Tests
2
+
3
+ on: [push, pull_request]
4
+ jobs:
5
+ build:
6
+ name: "Ruby: ${{ matrix.ruby }} OS: ${{ matrix.os }}"
7
+ runs-on: ${{ matrix.os }}
8
+ strategy:
9
+ fail-fast: false
10
+ matrix:
11
+ os: [macos-latest, windows-latest, ubuntu-latest]
12
+ ruby: ["2.4", "2.5", "2.6", "2.7"]
13
+ steps:
14
+ - name: Checkout
15
+ uses: actions/checkout@v2
16
+ - name: Select Ruby Version
17
+ uses: eregon/use-ruby-action@master
18
+ with:
19
+ ruby-version: ${{ matrix.ruby }}
20
+ base: update
21
+ - name: Update RubyGems & Bundler
22
+ run: gem update --system --no-document --conservative
23
+ - name: Install Dependencies
24
+ run: bundle install --jobs=3 --retry=3
25
+ - name: Run Test
26
+ run: |
27
+ ruby -v
28
+ bundle exec rake
29
+ env:
30
+ CI: true
31
+ build_ruby3:
32
+ name: "Ruby: 3.0 OS: Linux"
33
+ runs-on: ubuntu-latest
34
+ container: ruby:3.0-rc-alpine
35
+ steps:
36
+ - uses: actions/checkout@v2
37
+ - run: apk add -U build-base
38
+ - run: gem update --system --no-document --conservative
39
+ - run: bundle install --jobs=3 --retry=3
40
+ - run: ruby -v && bundle exec rake
41
+ env:
42
+ CI: true
@@ -0,0 +1,27 @@
1
+ name: Release Version
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
+
8
+ jobs:
9
+ release_version:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v1
13
+ - id: tag
14
+ run: echo ::set-output name=TAG::$(echo $GITHUB_REF | cut -d / -f 3)
15
+ - run: ruby -e 'tag=ENV["GITHUB_REF"].sub("refs/tags/", "").sub("v", "v?");puts File.read("CHANGELOG.md")[/#\s+#{tag}[^\r\n]+\r?\n(.+?)(^#|\Z)/mi,1].strip' > extracted_changelog.md
16
+ - name: Create Release
17
+ uses: actions/create-release@v1
18
+ env:
19
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20
+ with:
21
+ tag_name: ${{ steps.tag.outputs.TAG }}
22
+ release_name: Release ${{ steps.tag.outputs.TAG }}
23
+ body_path: extracted_changelog.md
24
+ - name: Publish RubyGem
25
+ uses: dawidd6/action-publish-gem@v1
26
+ with:
27
+ api_key: ${{secrets.RUBYGEMS_API_KEY}}
data/.gitignore CHANGED
File without changes
data/.rspec CHANGED
File without changes
@@ -1,13 +1,11 @@
1
1
  #inherit_from:
2
2
  # - .rubocop_todo.yml
3
3
 
4
- AllCops:
5
- TargetRubyVersion: 2.4
6
- Exclude:
7
- - 'vendor/**/*' # need to reset this apparently
8
- - 'lib/yard/parser/ruby/legacy/ruby_lex.rb' # old file, don't touch
9
4
  Metrics:
10
5
  Enabled: false
6
+ Layout/LineLength:
7
+ AutoCorrect: true
8
+ Max: 100
11
9
  Style/Semicolon:
12
10
  AllowAsExpressionSeparator: true
13
11
  Style/Documentation:
@@ -16,23 +14,21 @@ Style/ClassVars:
16
14
  Enabled: false
17
15
  Style/HashSyntax:
18
16
  EnforcedStyle: hash_rockets
19
- Style/SpaceInsideHashLiteralBraces:
17
+ Layout/SpaceInsideHashLiteralBraces:
20
18
  EnforcedStyle: no_space
21
- Style/SpaceInsideBlockBraces:
19
+ Layout/SpaceInsideBlockBraces:
22
20
  SpaceBeforeBlockParameters: false
23
- Style/MultilineMethodCallIndentation:
24
- EnforcedStyle: indented
25
21
  Style/NumericPredicate: # ruby 1.8/1.9 do not have positive?/negative?
26
22
  EnforcedStyle: comparison
27
- Style/MultilineMethodCallIndentation:
23
+ Layout/MultilineMethodCallIndentation:
28
24
  EnforcedStyle: indented
29
- Style/DotPosition:
25
+ Layout/DotPosition:
30
26
  EnforcedStyle: trailing
31
27
  Style/FormatString:
32
28
  EnforcedStyle: percent
33
- Style/IndentArray:
29
+ Layout/FirstArrayElementIndentation:
34
30
  EnforcedStyle: consistent
35
- Style/IndentHash:
31
+ Layout/FirstHashElementIndentation:
36
32
  EnforcedStyle: consistent
37
33
 
38
34
  # Disable these until we know what to do with them
@@ -40,29 +36,31 @@ Style/SafeNavigation:
40
36
  Enabled: false # not supported in 1.8...2.1
41
37
  Style/GuardClause: # does not provide much value
42
38
  Enabled: false
43
- Style/VariableNumber:
39
+ Naming/VariableNumber:
40
+ Enabled: false
41
+ Naming/AccessorMethodName: # this creates breaking changes in the API
44
42
  Enabled: false
45
- Style/AccessorMethodName: # this creates breaking changes in the API
43
+ Naming/PredicateName: # this creates breaking changes in the API
46
44
  Enabled: false
47
- Style/PredicateName: # this creates breaking changes in the API
45
+ Style/MethodMissingSuper: # this doesn't exist in 1.8/1.9
48
46
  Enabled: false
49
- Style/MethodMissing: # this doesn't exist in 1.8/1.9
47
+ Style/MissingRespondToMissing: # this doesn't exist in 1.8/1.9
50
48
  Enabled: false
51
49
  Style/Lambda: # not supported in 1.8
52
50
  Enabled: false
53
51
  Style/EachWithObject: # not supported in 1.8
54
52
  Enabled: false
55
- Style/AlignParameters: # does not work correctly with subsequent block
53
+ Layout/ParameterAlignment: # does not work correctly with subsequent block
56
54
  Enabled: false
57
- Style/AlignArray: # does not support indentation
55
+ Layout/ArrayAlignment: # does not support indentation
58
56
  Enabled: false
59
- Style/AlignHash: # does not support indentation
57
+ Layout/HashAlignment: # does not support indentation
60
58
  Enabled: false
61
59
  Style/MultilineTernaryOperator:
62
60
  Enabled: false
63
61
  Style/ClassAndModuleChildren:
64
62
  Enabled: false
65
- Style/EmptyLineBetweenDefs:
63
+ Layout/EmptyLineBetweenDefs:
66
64
  AllowAdjacentOneLineDefs: true
67
65
  Style/SingleLineMethods:
68
66
  Enabled: false
@@ -91,9 +89,24 @@ Style/GlobalVars:
91
89
  Exclude:
92
90
  - benchmarks/**/*.rb
93
91
  - spec/**/*.rb
94
- Lint/UnneededSplatExpansion:
92
+ Lint/RedundantSplatExpansion:
95
93
  Enabled: false
96
- Lint/Eval:
94
+ Security/Eval:
97
95
  Exclude:
98
96
  - benchmarks/**/*.rb
99
- - spec/**/*.rb
97
+ - spec/**/*.rb
98
+
99
+ Layout/SpaceAroundMethodCallOperator:
100
+ Enabled: false
101
+ Lint/RaiseException:
102
+ Enabled: false
103
+ Lint/StructNewOverride:
104
+ Enabled: false
105
+ Style/ExponentialNotation:
106
+ Enabled: false
107
+ Style/HashEachMethods:
108
+ Enabled: false
109
+ Style/HashTransformKeys:
110
+ Enabled: false
111
+ Style/HashTransformValues:
112
+ Enabled: false
@@ -1,6 +1,3 @@
1
- # Enables Travis to use their new container-based infrastructure
2
- sudo: false
3
-
4
1
  # Build for Ruby
5
2
  language: ruby
6
3
 
data/.yardopts CHANGED
File without changes
File without changes
File without changes
@@ -1,4 +1,47 @@
1
- # master
1
+ # main
2
+
3
+ # 0.9.26 - December 26th, 2020
4
+
5
+ [0.9.26]: https://github.com/lsegal/yard/compare/v0.9.25...v0.9.26
6
+
7
+ - Add support for Ruby 3.0 and fix tests
8
+ - Fix support for `frozen_string_literal: false` magic comments (#1363)
9
+
10
+ # 0.9.25 - May 3rd, 2020
11
+
12
+ [0.9.25]: https://github.com/lsegal/yard/compare/v0.9.24...v0.9.25
13
+
14
+ - Fix parsing issue with conditional blocks mixed with conditional modifiers.
15
+ (#1308, #1324, #1326, #1327)
16
+ - Add table of contents IDs to redcarpet generated markdown. (#1323)
17
+ - Backport fixes for Ruby 1.9 (#1320)
18
+ - Fix parsing of checksums in yard server (#1301)
19
+ - Map Ruby C variable error names to Ruby classes (#1270, #1275)
20
+ - Fix initialization of RDocMarkup across threads (#1318)
21
+ - Remove warning for Kernel#open (#1312)
22
+ - Omit spec files in gem package (#1307)
23
+ - README updates (#1322)
24
+
25
+ # 0.9.24 - January 8th, 2020
26
+
27
+ [0.9.24]: https://github.com/lsegal/yard/compare/v0.9.23...v0.9.24
28
+
29
+ - Add {YARD::CodeObjects::NamespaceMapper.on_invalidate} callback when separator
30
+ cache is changed.
31
+ - Fix issue where Registry fails to resolve first-time lookups on instance methods.
32
+
33
+ # 0.9.23 - January 5th, 2020
34
+
35
+ [0.9.23]: https://github.com/lsegal/yard/compare/v0.9.22...v0.9.23
36
+
37
+ - Fix issues with double encoded code blocks when highlighted from an extra
38
+ file.
39
+
40
+ # 0.9.22 - December 31st, 2019
41
+
42
+ [0.9.22]: https://github.com/lsegal/yard/compare/v0.9.21...v0.9.22
43
+
44
+ - Revert jquery update in last release since it requires more changes. (#1298)
2
45
 
3
46
  # 0.9.21 - December 31st, 2019
4
47
 
@@ -22,9 +65,9 @@
22
65
 
23
66
  - Fix parsing of stringified Symbols in Ruby source (#1256).
24
67
  - Fix path traversal vulnerability in `yard server`. This bug would allow
25
- unsanitized HTTP requests to access arbitrary files on the machine of a
26
- `yard server` host under certain conditions. Thanks to CuongMX from
27
- Viettel Cyber Security for discovering this vulnerability.
68
+ unsanitized HTTP requests to access arbitrary files on the machine of a
69
+ `yard server` host under certain conditions. Thanks to CuongMX from
70
+ Viettel Cyber Security for discovering this vulnerability.
28
71
 
29
72
  # 0.9.19 - April 2nd, 2019
30
73
 
@@ -42,7 +42,7 @@ If you believe you have found a bug, please include a few things in your report:
42
42
  if the behavior is intentional or not.
43
43
 
44
44
  Finally, please **DO NOT** submit a report that states a feature simply
45
- *"does not work"* without any additional information in the report. Consider
45
+ _"does not work"_ without any additional information in the report. Consider
46
46
  the issue from the maintainer's perspective: in order to fix your bug, we
47
47
  need to drill down to the broken line of code, and in order to do this,
48
48
  we must be able to reproduce the issue on our end to find that line of
@@ -132,7 +132,7 @@ help handle day-to-day operations, such as releases, bug fixes, and triage.
132
132
  You can do some of this as a non-maintainer too, but if you like this project,
133
133
  we can always use more hands on deck!
134
134
 
135
- [code]: https://github.com/lsegal/yard/blob/master/CODE_OF_CONDUCT.md
135
+ [code]: https://github.com/lsegal/yard/blob/main/CODE_OF_CONDUCT.md
136
136
  [issues]: http://github.com/lsegal/yard/issues
137
137
  [commit]: http://chris.beams.io/posts/git-commit/
138
138
  [pr]: https://help.github.com/articles/using-pull-requests/
data/Gemfile CHANGED
@@ -7,8 +7,9 @@ group :development do
7
7
  gem 'rdoc'
8
8
  gem 'json'
9
9
  gem 'simplecov'
10
- gem 'samus', '~> 3.0.8', :require => false
10
+ gem 'samus', '~> 3.0.9', :require => false
11
11
  gem 'coveralls', :require => false
12
+ gem 'webrick'
12
13
  end
13
14
 
14
15
  group :asciidoc do
@@ -16,11 +17,11 @@ group :asciidoc do
16
17
  end
17
18
 
18
19
  group :markdown do
19
- gem 'redcarpet', :platforms => [:ruby]
20
+ gem 'redcarpet'
20
21
  end
21
22
 
22
23
  group :textile do
23
- gem 'RedCloth', :platforms => [:ruby]
24
+ gem 'RedCloth'
24
25
  end
25
26
 
26
27
  group :server do
data/README.md CHANGED
@@ -1,23 +1,22 @@
1
1
  # YARD: Yay! A Ruby Documentation Tool
2
2
 
3
- [![Homepage](http://img.shields.io/badge/home-yardoc.org-blue.svg)](http://yardoc.org)
4
- [![GitHub](http://img.shields.io/badge/github-lsegal/yard-blue.svg)](http://github.com/lsegal/yard)
5
- [![Documentation](http://img.shields.io/badge/docs-rdoc.info-blue.svg)](http://rubydoc.org/gems/yard/frames)
3
+ [![Homepage](https://img.shields.io/badge/home-yardoc.org-blue.svg)](http://yardoc.org)
4
+ [![GitHub](https://img.shields.io/badge/github-lsegal/yard-blue.svg)](http://github.com/lsegal/yard)
5
+ [![Documentation](https://img.shields.io/badge/docs-rdoc.info-blue.svg)](http://rubydoc.org/gems/yard/frames)
6
6
 
7
7
  [![Gem Version](https://badge.fury.io/rb/yard.svg)](http://github.com/lsegal/yard/releases)
8
- [![Build Status](https://travis-ci.org/lsegal/yard.svg?branch=master)](https://travis-ci.org/lsegal/yard)
8
+ [![Build Status](https://travis-ci.org/lsegal/yard.svg?branch=main)](https://travis-ci.org/lsegal/yard)
9
9
  [![Coverage Status](https://coveralls.io/repos/github/lsegal/yard/badge.svg)](https://coveralls.io/github/lsegal/yard)
10
- [![License](http://img.shields.io/badge/license-MIT-yellowgreen.svg)](#license)
10
+ [![License](https://img.shields.io/badge/license-MIT-yellowgreen.svg)](#license)
11
11
 
12
12
  ## Synopsis
13
13
 
14
- YARD is a documentation generation tool for the Ruby programming language.
15
- It enables the user to generate consistent, usable documentation that can be
14
+ YARD is a documentation generation tool for the Ruby programming language. It
15
+ enables the user to generate consistent, usable documentation that can be
16
16
  exported to a number of formats very easily, and also supports extending for
17
17
  custom Ruby constructs such as custom class level definitions. Below is a
18
18
  summary of some of YARD's notable features.
19
19
 
20
-
21
20
  ## Feature List
22
21
 
23
22
  **1. RDoc/SimpleMarkup Formatting Compatibility**: YARD is made to be compatible
@@ -25,22 +24,23 @@ with RDoc formatting. In fact, YARD does no processing on RDoc documentation
25
24
  strings, and leaves this up to the output generation tool to decide how to
26
25
  render the documentation.
27
26
 
28
- **2. Yardoc Meta-tag Formatting Like Python, Java, Objective-C and other languages**:
29
- YARD uses a '@tag' style definition syntax for meta tags alongside regular code
30
- documentation. These tags should be able to happily sit side by side RDoc formatted
31
- documentation, but provide a much more consistent and usable way to describe
32
- important information about objects, such as what parameters they take and what types
33
- they are expected to be, what type a method should return, what exceptions it can
34
- raise, if it is deprecated, etc.. It also allows information to be better (and more
35
- consistently) organized during the output generation phase. You can find a list
36
- of tags in the {file:docs/Tags.md#taglist Tags.md} file.
37
-
38
- YARD also supports an optional "types" declarations for certain tags.
39
- This allows the developer to document type signatures for ruby methods and
40
- parameters in a non intrusive but helpful and consistent manner. Instead of
41
- describing this data in the body of the description, a developer may formally
42
- declare the parameter or return type(s) in a single line. Consider the
43
- following method documented with YARD formatting:
27
+ **2. Yardoc Meta-tag Formatting Like Python, Java, Objective-C and other
28
+ languages**: YARD uses a '@tag' style definition syntax for meta tags alongside
29
+ regular code documentation. These tags should be able to happily sit side by
30
+ side RDoc formatted documentation, but provide a much more consistent and usable
31
+ way to describe important information about objects, such as what parameters
32
+ they take and what types they are expected to be, what type a method should
33
+ return, what exceptions it can raise, if it is deprecated, etc.. It also allows
34
+ information to be better (and more consistently) organized during the output
35
+ generation phase. You can find a list of tags in the {file:docs/Tags.md#taglist
36
+ Tags.md} file.
37
+
38
+ YARD also supports an optional "types" declarations for certain tags. This
39
+ allows the developer to document type signatures for ruby methods and parameters
40
+ in a non intrusive but helpful and consistent manner. Instead of describing this
41
+ data in the body of the description, a developer may formally declare the
42
+ parameter or return type(s) in a single line. Consider the following method
43
+ documented with YARD formatting:
44
44
 
45
45
  ```ruby
46
46
  # Reverses the contents of a String or IO object.
@@ -53,13 +53,12 @@ def reverse(contents)
53
53
  end
54
54
  ```
55
55
 
56
- With the above @param tag, we learn that the contents parameter can either be
57
- a String or any object that responds to the 'read' method, which is more
58
- powerful than the textual description, which says it should be an IO object.
59
- This also informs the developer that they should expect to receive a String
60
- object returned by the method, and although this may be obvious for a
61
- 'reverse' method, it becomes very useful when the method name may not be as
62
- descriptive.
56
+ With the above @param tag, we learn that the contents parameter can either be a
57
+ String or any object that responds to the 'read' method, which is more powerful
58
+ than the textual description, which says it should be an IO object. This also
59
+ informs the developer that they should expect to receive a String object
60
+ returned by the method, and although this may be obvious for a 'reverse' method,
61
+ it becomes very useful when the method name may not be as descriptive.
63
62
 
64
63
  **3. Custom Constructs and Extensibility of YARD**: YARD is designed to be
65
64
  extended and customized by plugins. Take for instance the scenario where you
@@ -73,12 +72,12 @@ end
73
72
  ```
74
73
 
75
74
  This custom declaration provides dynamically generated code that is hard for a
76
- documentation tool to properly document without help from the developer. To
77
- ease the pains of manually documenting the procedure, YARD can be extended by
78
- the developer to handle the `cattr_accessor` construct and automatically create
79
- an attribute on the class with the associated documentation. This makes
80
- documenting external API's, especially dynamic ones, a lot more consistent for
81
- consumption by the users.
75
+ documentation tool to properly document without help from the developer. To ease
76
+ the pains of manually documenting the procedure, YARD can be extended by the
77
+ developer to handle the `cattr_accessor` construct and automatically create an
78
+ attribute on the class with the associated documentation. This makes documenting
79
+ external API's, especially dynamic ones, a lot more consistent for consumption
80
+ by the users.
82
81
 
83
82
  YARD is also designed for extensibility everywhere else, allowing you to add
84
83
  support for new programming languages, new data structures and even where/how
@@ -88,21 +87,20 @@ data is stored.
88
87
  dumped Namespace) which can be reloaded to do generation at a later date, or
89
88
  even auditing on code. This means that any developer can use the raw data to
90
89
  perform output generation for any custom format, such as YAML, for instance.
91
- While YARD plans to support XHTML style documentation output as well as
92
- command line (text based) and possibly XML, this may still be useful for those
93
- who would like to reap the benefits of YARD's processing in other forms, such
94
- as throwing all the documentation into a database. Another useful way of
95
- exploiting this raw data format would be to write tools that can auto generate
96
- test cases, for example, or show possible unhandled exceptions in code.
97
-
98
- **5. Local Documentation Server**: YARD can serve documentation for projects
99
- or installed gems (similar to `gem server`) with the added benefit of dynamic
90
+ While YARD plans to support XHTML style documentation output as well as command
91
+ line (text based) and possibly XML, this may still be useful for those who would
92
+ like to reap the benefits of YARD's processing in other forms, such as throwing
93
+ all the documentation into a database. Another useful way of exploiting this raw
94
+ data format would be to write tools that can auto generate test cases, for
95
+ example, or show possible unhandled exceptions in code.
96
+
97
+ **5. Local Documentation Server**: YARD can serve documentation for projects or
98
+ installed gems (similar to `gem server`) with the added benefit of dynamic
100
99
  searching, as well as live reloading. Using the live reload feature, you can
101
100
  document your code and immediately preview the results by refreshing the page;
102
101
  YARD will do all the work in re-generating the HTML. This makes writing
103
102
  documentation a much faster process.
104
103
 
105
-
106
104
  ## Installing
107
105
 
108
106
  To install YARD, use the following command:
@@ -117,14 +115,13 @@ Alternatively, if you've checked the source out directly, you can call
117
115
  `rake install` from the root project directory.
118
116
 
119
117
  **Important Note for Debian/Ubuntu users:** there's a possible chance your Ruby
120
- install lacks RDoc, which is occasionally used by YARD to convert markup to HTML.
121
- If running `which rdoc` turns up empty, install RDoc by issuing:
118
+ install lacks RDoc, which is occasionally used by YARD to convert markup to
119
+ HTML. If running `which rdoc` turns up empty, install RDoc by issuing:
122
120
 
123
121
  ```sh
124
122
  $ sudo apt-get install rdoc
125
123
  ```
126
124
 
127
-
128
125
  ## Usage
129
126
 
130
127
  There are a couple of ways to use YARD. The first is via command-line, and the
@@ -133,8 +130,8 @@ second is the Rake task.
133
130
  **1. yard Command-line Tool**
134
131
 
135
132
  YARD comes packaged with a executable named `yard` which can control the many
136
- functions of YARD, including generating documentation, graphs running the
137
- YARD server, and so on. To view a list of available YARD commands, type:
133
+ functions of YARD, including generating documentation, graphs running the YARD
134
+ server, and so on. To view a list of available YARD commands, type:
138
135
 
139
136
  ```sh
140
137
  $ yard --help
@@ -148,39 +145,36 @@ functionality.
148
145
  <span class="note">The `yardoc` executable is a shortcut for `yard doc`.</span>
149
146
 
150
147
  The most common command you will probably use is `yard doc`, or `yardoc`. You
151
- can type `yardoc --help` to see the options that YARD provides, but the
152
- easiest way to generate docs for your code is to simply type `yardoc` in your
153
- project root. This will assume your files are
154
- located in the `lib/` directory. If they are located elsewhere, you can specify
155
- paths and globs from the commandline via:
148
+ can type `yardoc --help` to see the options that YARD provides, but the easiest
149
+ way to generate docs for your code is to simply type `yardoc` in your project
150
+ root. This will assume your files are located in the `lib/` directory. If they
151
+ are located elsewhere, you can specify paths and globs from the commandline via:
156
152
 
157
153
  ```sh
158
154
  $ yardoc 'lib/**/*.rb' 'app/**/*.rb' ...etc...
159
155
  ```
160
156
 
161
- The tool will generate a `.yardoc` file which will store the cached database
162
- of your source code and documentation. If you want to re-generate your docs
163
- with another template you can simply use the `--use-cache` (or -c)
164
- option to speed up the generation process by skipping source parsing.
157
+ The tool will generate a `.yardoc` file which will store the cached database of
158
+ your source code and documentation. If you want to re-generate your docs with
159
+ another template you can simply use the `--use-cache` (or -c) option to speed up
160
+ the generation process by skipping source parsing.
165
161
 
166
162
  YARD will by default only document code in your public visibility. You can
167
- document your protected and private code by adding `--protected` or
168
- `--private` to the option switches. In addition, you can add `--no-private`
169
- to also ignore any object that has the `@private` meta-tag. This is similar
170
- to RDoc's ":nodoc:" behaviour, though the distinction is important. RDoc
171
- implies that the object with :nodoc: would not be documented, whereas
172
- YARD still recommends documenting private objects for the private API (for
173
- maintainer/developer consumption).
163
+ document your protected and private code by adding `--protected` or `--private`
164
+ to the option switches. In addition, you can add `--no-private` to also ignore
165
+ any object that has the `@private` meta-tag. This is similar to RDoc's ":nodoc:"
166
+ behaviour, though the distinction is important. RDoc implies that the object
167
+ with :nodoc: would not be documented, whereas YARD still recommends documenting
168
+ private objects for the private API (for maintainer/developer consumption).
174
169
 
175
- You can also add extra informative files (README, LICENSE) by separating
176
- the globs and the filenames with '-'.
170
+ You can also add extra informative files (README, LICENSE) by separating the
171
+ globs and the filenames with '-'.
177
172
 
178
173
  ```sh
179
174
  $ yardoc 'app/**/*.rb' - README LICENSE FAQ
180
175
  ```
181
176
 
182
- If no globs precede the '-' argument, the default glob (`lib/**/*.rb`) is
183
- used:
177
+ If no globs precede the '-' argument, the default glob (`lib/**/*.rb`) is used:
184
178
 
185
179
  ```sh
186
180
  $ yardoc - README LICENSE FAQ
@@ -188,18 +182,18 @@ $ yardoc - README LICENSE FAQ
188
182
 
189
183
  Note that the README file can be specified with its own `--readme` switch.
190
184
 
191
- You can also add a `.yardopts` file to your project directory which lists
192
- the switches separated by whitespace (newlines or space) to pass to yardoc
193
- whenever it is run. A full overview of the `.yardopts` file can be found in
185
+ You can also add a `.yardopts` file to your project directory which lists the
186
+ switches separated by whitespace (newlines or space) to pass to yardoc whenever
187
+ it is run. A full overview of the `.yardopts` file can be found in
194
188
  {YARD::CLI::Yardoc}.
195
189
 
196
190
  ### Queries
197
191
 
198
192
  The `yardoc` tool also supports a `--query` argument to only include objects
199
- that match a certain data or meta-data query. The query syntax is Ruby, though
200
- a few shortcuts are available. For instance, to document only objects that have
201
- an "@api" tag with the value "public", all of the following syntaxes would give
202
- the same result:
193
+ that match a certain data or meta-data query. The query syntax is Ruby, though a
194
+ few shortcuts are available. For instance, to document only objects that have an
195
+ "@api" tag with the value "public", all of the following syntaxes would give the
196
+ same result:
203
197
 
204
198
  ```sh
205
199
  --query '@api.text == "public"'
@@ -207,8 +201,8 @@ the same result:
207
201
  --query 'has_tag?(:api) && tag(:api).text == "public"'
208
202
  ```
209
203
 
210
- Note that the "@tag" syntax returns the first tag named "tag" on the object.
211
- To return the array of all tags named "tag", use "@@tag".
204
+ Note that the "@tag" syntax returns the first tag named "tag" on the object. To
205
+ return the array of all tags named "tag", use "@@tag".
212
206
 
213
207
  Multiple `--query` arguments are allowed in the command line parameters. The
214
208
  following two lines both check for the existence of a return and param tag:
@@ -235,12 +229,12 @@ YARD::Rake::YardocTask.new do |t|
235
229
  end
236
230
  ```
237
231
 
238
- All the settings: `files`, `options` and `stats_options` are optional. `files` will default to
239
- `lib/**/*.rb`, `options` will represents any options you might want
240
- to add and `stats_options` will pass extra options to the stats command.
241
- Again, a full list of options is available by typing `yardoc --help`
242
- in a shell. You can also override the options at the Rake command-line with the
243
- OPTS environment variable:
232
+ All the settings: `files`, `options` and `stats_options` are optional. `files`
233
+ will default to `lib/**/*.rb`, `options` will represents any options you might
234
+ want to add and `stats_options` will pass extra options to the stats command.
235
+ Again, a full list of options is available by typing `yardoc --help` in a shell.
236
+ You can also override the options at the Rake command-line with the OPTS
237
+ environment variable:
244
238
 
245
239
  ```sh
246
240
  $ rake yard OPTS='--any --extra --opts'
@@ -272,15 +266,17 @@ directory. `yri` will also cache lookups there.
272
266
 
273
267
  **4. `yard server` Documentation Server**
274
268
 
275
- The `yard server` command serves documentation for a local project or all installed
276
- RubyGems. To serve documentation for a project you are working on, simply run:
269
+ The `yard server` command serves documentation for a local project or all
270
+ installed RubyGems. To serve documentation for a project you are working on,
271
+ simply run:
277
272
 
278
273
  ```sh
279
274
  $ yard server
280
275
  ```
281
276
 
282
277
  And the project inside the current directory will be parsed (if the source has
283
- not yet been scanned by YARD) and served at [http://localhost:8808](http://localhost:8808).
278
+ not yet been scanned by YARD) and served at
279
+ [http://localhost:8808](http://localhost:8808).
284
280
 
285
281
  ### Live Reloading
286
282
 
@@ -297,10 +293,9 @@ To serve documentation for all installed gems, call:
297
293
  $ yard server --gems
298
294
  ```
299
295
 
300
- This will also automatically build documentation for any gems that have not
301
- been previously scanned. Note that in this case there will be a slight delay
302
- between the first request of a newly parsed gem.
303
-
296
+ This will also automatically build documentation for any gems that have not been
297
+ previously scanned. Note that in this case there will be a slight delay between
298
+ the first request of a newly parsed gem.
304
299
 
305
300
  **5. `yard graph` Graphviz Generator**
306
301
 
@@ -309,22 +304,22 @@ requires [Graphviz](http://www.graphviz.org) and the `dot` binary. By default
309
304
  this will generate a graph of the classes and modules in the best UML2 notation
310
305
  that Graphviz can support, but without any methods listed. With the `--full`
311
306
  option, methods and attributes will be listed. There is also a `--dependencies`
312
- option to show mixin inclusions. You can output to stdout or a file, or pipe directly
313
- to `dot`. The same public, protected and private visibility rules apply to `yard graph`.
314
- More options can be seen by typing `yard graph --help`, but here is an example:
307
+ option to show mixin inclusions. You can output to stdout or a file, or pipe
308
+ directly to `dot`. The same public, protected and private visibility rules apply
309
+ to `yard graph`. More options can be seen by typing `yard graph --help`, but
310
+ here is an example:
315
311
 
316
312
  ```sh
317
313
  $ yard graph --protected --full --dependencies
318
314
  ```
319
315
 
320
-
321
316
  ## Changelog
322
317
 
323
318
  See {file:CHANGELOG.md} for a list of changes.
324
319
 
325
320
  ## License
326
321
 
327
- YARD &copy; 2007-2018 by [Loren Segal](mailto:lsegal@soen.ca). YARD is
328
- licensed under the MIT license except for some files which come from the
329
- RDoc/Ruby distributions. Please see the {file:LICENSE} and {file:LEGAL}
330
- documents for more information.
322
+ YARD &copy; 2007-2020 by [Loren Segal](mailto:lsegal@soen.ca). YARD is licensed
323
+ under the MIT license except for some files which come from the RDoc/Ruby
324
+ distributions. Please see the {file:LICENSE} and {file:LEGAL} documents for more
325
+ information.