yard 0.6.4 → 0.6.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.

Files changed (107) hide show
  1. data/ChangeLog +341 -0
  2. data/LICENSE +1 -1
  3. data/README.md +31 -6
  4. data/Rakefile +22 -3
  5. data/docs/Tags.md +5 -1
  6. data/docs/WhatsNew.md +18 -1
  7. data/lib/rubygems_plugin.rb +3 -99
  8. data/lib/yard.rb +1 -1
  9. data/lib/yard/autoload.rb +37 -35
  10. data/lib/yard/cli/config.rb +25 -2
  11. data/lib/yard/cli/graph.rb +1 -1
  12. data/lib/yard/cli/yardoc.rb +4 -0
  13. data/lib/yard/code_objects/base.rb +17 -9
  14. data/lib/yard/code_objects/method_object.rb +0 -9
  15. data/lib/yard/code_objects/proxy.rb +6 -0
  16. data/lib/yard/docstring.rb +5 -0
  17. data/lib/yard/handlers/base.rb +3 -1
  18. data/lib/yard/handlers/processor.rb +1 -1
  19. data/lib/yard/handlers/ruby/alias_handler.rb +9 -8
  20. data/lib/yard/handlers/ruby/class_handler.rb +3 -3
  21. data/lib/yard/handlers/ruby/legacy/alias_handler.rb +9 -7
  22. data/lib/yard/handlers/ruby/legacy/method_handler.rb +7 -0
  23. data/lib/yard/handlers/ruby/legacy/private_constant_handler.rb +21 -0
  24. data/lib/yard/handlers/ruby/method_condition_handler.rb +1 -1
  25. data/lib/yard/handlers/ruby/method_handler.rb +7 -0
  26. data/lib/yard/handlers/ruby/private_constant_handler.rb +36 -0
  27. data/lib/yard/parser/ruby/ast_node.rb +41 -24
  28. data/lib/yard/parser/ruby/legacy/ruby_parser.rb +3 -0
  29. data/lib/yard/parser/ruby/legacy/statement.rb +2 -0
  30. data/lib/yard/parser/ruby/legacy/statement_list.rb +27 -4
  31. data/lib/yard/parser/ruby/ruby_parser.rb +71 -36
  32. data/lib/yard/parser/source_parser.rb +11 -10
  33. data/lib/yard/registry.rb +62 -24
  34. data/lib/yard/registry_store.rb +18 -5
  35. data/lib/yard/rubygems/doc_manager.rb +75 -0
  36. data/lib/yard/rubygems/specification.rb +23 -0
  37. data/lib/yard/serializers/process_serializer.rb +1 -1
  38. data/lib/yard/serializers/yardoc_serializer.rb +7 -2
  39. data/lib/yard/server/commands/display_object_command.rb +1 -1
  40. data/lib/yard/server/commands/library_command.rb +2 -2
  41. data/lib/yard/tags/default_factory.rb +1 -1
  42. data/lib/yard/tags/library.rb +2 -2
  43. data/lib/yard/templates/helpers/base_helper.rb +19 -0
  44. data/lib/yard/templates/helpers/html_helper.rb +22 -9
  45. data/lib/yard/templates/helpers/html_syntax_highlight_helper.rb +28 -0
  46. data/lib/yard/templates/helpers/markup_helper.rb +14 -22
  47. data/lib/yard/templates/template.rb +1 -1
  48. data/spec/cli/config_spec.rb +20 -0
  49. data/spec/cli/yardoc_spec.rb +12 -0
  50. data/spec/code_objects/base_spec.rb +13 -0
  51. data/spec/code_objects/proxy_spec.rb +9 -0
  52. data/spec/config_spec.rb +4 -1
  53. data/spec/docstring_spec.rb +5 -0
  54. data/spec/handlers/alias_handler_spec.rb +14 -1
  55. data/spec/handlers/attribute_handler_spec.rb +1 -1
  56. data/spec/handlers/base_spec.rb +21 -21
  57. data/spec/handlers/class_condition_handler_spec.rb +1 -1
  58. data/spec/handlers/class_handler_spec.rb +1 -1
  59. data/spec/handlers/class_variable_handler_spec.rb +1 -1
  60. data/spec/handlers/constant_handler_spec.rb +2 -2
  61. data/spec/handlers/examples/alias_handler_001.rb.txt +14 -0
  62. data/spec/handlers/examples/method_handler_001.rb.txt +6 -0
  63. data/spec/handlers/examples/module_handler_001.rb.txt +4 -0
  64. data/spec/handlers/examples/private_constant_handler_001.rb.txt +8 -0
  65. data/spec/handlers/exception_handler_spec.rb +1 -1
  66. data/spec/handlers/extend_handler_spec.rb +1 -1
  67. data/spec/handlers/method_condition_handler_spec.rb +1 -1
  68. data/spec/handlers/method_handler_spec.rb +7 -1
  69. data/spec/handlers/mixin_handler_spec.rb +1 -1
  70. data/spec/handlers/module_handler_spec.rb +5 -1
  71. data/spec/handlers/private_constant_handler_spec.rb +24 -0
  72. data/spec/handlers/process_handler_spec.rb +1 -1
  73. data/spec/handlers/ruby/base_spec.rb +4 -4
  74. data/spec/handlers/visibility_handler_spec.rb +1 -1
  75. data/spec/handlers/yield_handler_spec.rb +1 -1
  76. data/spec/parser/base_spec.rb +3 -5
  77. data/spec/parser/c_parser_spec.rb +1 -1
  78. data/spec/parser/ruby/ast_node_spec.rb +23 -26
  79. data/spec/parser/ruby/legacy/statement_list_spec.rb +9 -0
  80. data/spec/parser/ruby/ruby_parser_spec.rb +179 -177
  81. data/spec/parser/source_parser_spec.rb +41 -7
  82. data/spec/rake/yardoc_task_spec.rb +3 -3
  83. data/spec/registry_spec.rb +52 -0
  84. data/spec/registry_store_spec.rb +71 -1
  85. data/spec/serializers/yardoc_serializer_spec.rb +18 -7
  86. data/spec/server/rack_adapter_spec.rb +2 -2
  87. data/spec/spec_helper.rb +10 -0
  88. data/spec/tags/default_factory_spec.rb +122 -120
  89. data/spec/templates/helpers/base_helper_spec.rb +38 -14
  90. data/spec/templates/helpers/html_helper_spec.rb +19 -0
  91. data/spec/templates/helpers/html_syntax_highlight_helper_spec.rb +10 -6
  92. data/spec/templates/helpers/markup_helper_spec.rb +21 -5
  93. data/templates/default/class/dot/superklass.erb +1 -1
  94. data/templates/default/docstring/setup.rb +1 -1
  95. data/templates/default/fulldoc/html/css/style.css +12 -4
  96. data/templates/default/fulldoc/html/js/app.js +1 -1
  97. data/templates/default/fulldoc/html/js/jquery.js +5 -143
  98. data/templates/default/layout/html/files.erb +11 -0
  99. data/templates/default/layout/html/headers.erb +1 -1
  100. data/templates/default/layout/html/index.erb +2 -49
  101. data/templates/default/layout/html/listing.erb +4 -0
  102. data/templates/default/layout/html/objects.erb +32 -0
  103. data/templates/default/layout/html/setup.rb +1 -1
  104. data/templates/default/module/dot/info.erb +1 -1
  105. data/templates/default/module/dot/setup.rb +1 -1
  106. metadata +15 -6
  107. data/lib/yard/templates/helpers/html_syntax_highlight_helper18.rb +0 -25
data/ChangeLog CHANGED
@@ -1,3 +1,341 @@
1
+ 2011-03-13 Loren Segal <lsegal@soen.ca>
2
+
3
+ * ChangeLog, LICENSE, README.md, docs/WhatsNew.md, lib/yard.rb, yard.gemspec:
4
+ Update to 0.6.5
5
+
6
+ 2011-03-11 Loren Segal <lsegal@soen.ca>
7
+
8
+ * spec/parser/c_parser_spec.rb: Gracefully continue if continuation is not
9
+ present (for non-MRI 1.9 implementations)
10
+
11
+ * lib/yard/parser/ruby/ast_node.rb, lib/yard/parser/ruby/ruby_parser.rb: Add
12
+ KeywordNode, LiteralNode and improve RubyParser (ripper) support in 1.8.7
13
+
14
+ * Rakefile: Run ruby18 through test suite with ripper
15
+
16
+ * lib/yard/handlers/ruby/alias_handler.rb,
17
+ lib/yard/handlers/ruby/legacy/alias_handler.rb,
18
+ lib/yard/handlers/ruby/legacy/method_handler.rb,
19
+ lib/yard/handlers/ruby/method_handler.rb,
20
+ spec/handlers/alias_handler_spec.rb,
21
+ spec/handlers/examples/alias_handler_001.rb.txt,
22
+ spec/handlers/examples/method_handler_001.rb.txt,
23
+ spec/handlers/method_handler_spec.rb: Splice any alias references on method
24
+ (re-)definitions into separate methods You can add extra documentation
25
+ information for the alias itself as comments in the alias (or alias_method)
26
+ statement. For instance, # Foo Bar def foo; "Hello" end # @deprecated alias
27
+ bar foo # NOT FOO! def foo; 2 end Will turn 'bar' into its own method with
28
+ docstring 'Foo Bar' *and* a @deprecated tag. 'foo' will be redefined to have
29
+ the docstring 'NOT FOO!'. The alias information will be removed, and the
30
+ methods will be considered separate. Closes #247
31
+
32
+ * lib/yard/parser/ruby/legacy/statement_list.rb,
33
+ spec/parser/ruby/legacy/statement_list_spec.rb: Fix registering of
34
+ 'before_last_ns_tk' in StatementList parser and properly handle keywords
35
+ inside alias statements when in blocks
36
+
37
+ * lib/yard/code_objects/base.rb, lib/yard/code_objects/proxy.rb,
38
+ spec/code_objects/proxy_spec.rb,
39
+ spec/handlers/examples/module_handler_001.rb.txt,
40
+ spec/handlers/module_handler_spec.rb: Handle constants used as 'aliases' to
41
+ other namespaces ie. module CONST::Foo; end Closes #248
42
+
43
+ 2011-03-10 Loren Segal <lsegal@soen.ca>
44
+
45
+ * Rakefile: Add 'rake suite' task to run specs across all(?) supported ruby
46
+ versions (and modes)
47
+
48
+ * spec/server/rack_adapter_spec.rb: Fix specs to use proper rack protocol
49
+
50
+ * spec/parser/base_spec.rb, spec/rake/yardoc_task_spec.rb: Fix specs in 1.9.1
51
+
52
+ * lib/yard/parser/ruby/ruby_parser.rb, lib/yard/parser/source_parser.rb: Make
53
+ ruby_parser.rb loadable if Ripper is not available
54
+
55
+ * lib/yard/handlers/base.rb: ensure_loaded! should short circuit with object
56
+ if present (avoid callcc warnings)
57
+
58
+ * lib/yard/templates/helpers/html_helper.rb: Fix fix_typewriter regression
59
+
60
+ * lib/yard/parser/ruby/ruby_parser.rb, lib/yard/parser/source_parser.rb: Fix
61
+ ruby18 support if ripper is not present
62
+
63
+ 2011-03-09 Loren Segal <lsegal@soen.ca>
64
+
65
+ * lib/yard/templates/helpers/markup_helper.rb: Print markup provider in error
66
+ message when it cannot be loaded.
67
+
68
+ 2011-03-07 Loren Segal <lsegal@soen.ca>
69
+
70
+ * lib/yard/handlers/ruby/alias_handler.rb,
71
+ lib/yard/handlers/ruby/legacy/alias_handler.rb,
72
+ spec/handlers/alias_handler_spec.rb,
73
+ spec/handlers/examples/alias_handler_001.rb.txt: Support alias call with
74
+ quoted symbols Closes #262
75
+
76
+ 2011-02-28 Akzhan Abdulin <akzhan.abdulin@gmail.com>
77
+
78
+ * templates/default/fulldoc/html/js/jquery.js: Upgrade jQuery from 1.4.2 to
79
+ 1.5.1
80
+
81
+ 2011-02-27 Loren Segal <lsegal@soen.ca>
82
+
83
+ * lib/yard/templates/helpers/html_helper.rb,
84
+ spec/templates/helpers/html_helper_spec.rb: Fix regression where improved
85
+ RDoc ++ parsing was not being activating inside of tag blocks
86
+
87
+ * templates/default/fulldoc/html/css/style.css: Adjust padding on dt/dd to
88
+ match rest of style
89
+
90
+ * templates/default/fulldoc/html/css/style.css: Minor formatting adjustments
91
+
92
+ * templates/default/fulldoc/html/css/style.css: Fix typo on css declarations
93
+
94
+ 2011-02-28 Guten <ywzhaifei@gmail.com>
95
+
96
+ * templates/default/fulldoc/html/css/style.css: changes css style on list
97
+
98
+ 2011-02-27 Guten <ywzhaifei@gmail.com>
99
+
100
+ * templates/default/fulldoc/html/css/style.css: add css style to list
101
+ support <ul> <dl>
102
+
103
+ 2011-02-26 Loren Segal <lsegal@soen.ca>
104
+
105
+ * lib/yard/templates/helpers/html_helper.rb: Fix regression in templates
106
+ incorrectly loading rdoc ToHtml formatter
107
+
108
+ * lib/yard/parser/ruby/legacy/ruby_parser.rb,
109
+ lib/yard/parser/ruby/legacy/statement_list.rb,
110
+ lib/yard/parser/ruby/ruby_parser.rb, lib/yard/parser/source_parser.rb,
111
+ spec/parser/source_parser_spec.rb: Skip shebang and encoding lines in
112
+ docstrings. Also also expose these comments in RubyParser classes through -
113
+ RubyParser#encoding_line - RubyParser#shebang_line For new and legacy
114
+ parsers. Closes #238
115
+
116
+ * lib/yard/parser/ruby/ruby_parser.rb, spec/parser/ruby/ruby_parser_spec.rb:
117
+ Fix a bug in Ripper that causes string_content tokens with newlines to only
118
+ show the last line as a token in the AST.
119
+
120
+ * Rakefile, lib/yard.rb, lib/yard/autoload.rb,
121
+ lib/yard/parser/source_parser.rb,
122
+ .../helpers/html_syntax_highlight_helper.rb,
123
+ .../helpers/html_syntax_highlight_helper18.rb, spec/handlers/base_spec.rb,
124
+ spec/handlers/ruby/base_spec.rb, spec/spec_helper.rb,
125
+ .../helpers/html_syntax_highlight_helper_spec.rb: Update specs to allow
126
+ toggling on and off of LEGACY environment variable for legacy tests in
127
+ 1.8/1.9 Remove HAVE_RIPPER and LEGACY_PARSER from main YARD code, only use
128
+ in specs.
129
+
130
+ 2011-01-11 Loren Segal <lsegal@soen.ca>
131
+
132
+ * Rakefile, lib/yard.rb, lib/yard/autoload.rb,
133
+ lib/yard/handlers/ruby/class_handler.rb,
134
+ lib/yard/handlers/ruby/method_condition_handler.rb,
135
+ lib/yard/handlers/ruby/private_constant_handler.rb,
136
+ lib/yard/parser/ruby/ast_node.rb, lib/yard/parser/ruby/ruby_parser.rb,
137
+ lib/yard/parser/source_parser.rb, spec/handlers/alias_handler_spec.rb,
138
+ spec/handlers/attribute_handler_spec.rb, spec/handlers/base_spec.rb,
139
+ spec/handlers/class_condition_handler_spec.rb,
140
+ spec/handlers/class_handler_spec.rb,
141
+ spec/handlers/class_variable_handler_spec.rb,
142
+ spec/handlers/constant_handler_spec.rb,
143
+ spec/handlers/exception_handler_spec.rb,
144
+ spec/handlers/extend_handler_spec.rb,
145
+ spec/handlers/method_condition_handler_spec.rb,
146
+ spec/handlers/method_handler_spec.rb, spec/handlers/mixin_handler_spec.rb,
147
+ spec/handlers/module_handler_spec.rb,
148
+ spec/handlers/private_constant_handler_spec.rb,
149
+ spec/handlers/process_handler_spec.rb, spec/handlers/ruby/base_spec.rb,
150
+ spec/handlers/visibility_handler_spec.rb,
151
+ spec/handlers/yield_handler_spec.rb, spec/parser/ruby/ast_node_spec.rb,
152
+ spec/parser/ruby/ruby_parser_spec.rb, spec/parser/source_parser_spec.rb,
153
+ .../helpers/html_syntax_highlight_helper_spec.rb: Backport new-style parser
154
+ to 1.8 compatible syntax (and semantics) for ripper1.8
155
+
156
+ 2011-02-25 Loren Segal <lsegal@soen.ca>
157
+
158
+ * lib/yard/templates/helpers/html_helper.rb,
159
+ lib/yard/templates/helpers/markup_helper.rb,
160
+ spec/templates/helpers/markup_helper_spec.rb: Do not assume RDoc is
161
+ installed. Moves requiring of SimpleMarkup code as a markup provider.
162
+ Installs without rdoc installed will now load YARD properly. Based on
163
+ patches by gioele. Closes #214
164
+
165
+ 2011-01-13 Loren Segal <lsegal@soen.ca>
166
+
167
+ * lib/yard/templates/helpers/base_helper.rb,
168
+ spec/templates/helpers/base_helper_spec.rb: Add {include:file:FILENAME}
169
+ syntax
170
+
171
+ 2011-02-25 Loren Segal <lsegal@soen.ca>
172
+
173
+ * Rakefile, lib/rubygems_plugin.rb, lib/yard/rubygems/doc_manager.rb: Fix
174
+ loading of YARD rubygems plugin in new location, and load gem plugins when
175
+ building the gem
176
+
177
+ 2011-02-25 Postmodern <postmodern.mod3@gmail.com>
178
+
179
+ * lib/rubygems_plugin.rb, lib/yard/rubygems/doc_manager.rb,
180
+ lib/yard/rubygems/specification.rb: Move YARDs extensions to
181
+ Gem::Specification and Gem::DocManager into 'yard/rubygems'. * Since
182
+ RubyGems 1.4 disabled RubyGems Plugin loading for non-gem commands, YARDs
183
+ extensions to RubyGems cannot be loaded by normal Ruby code. Moving these
184
+ extensions into 'lib/yard', allows 'require' to load them again.
185
+
186
+ 2011-02-25 Loren Segal <lsegal@soen.ca>
187
+
188
+ * templates/default/class/dot/superklass.erb: Ignore BasicObject superclass
189
+
190
+ * templates/default/module/dot/info.erb,
191
+ templates/default/module/dot/setup.rb: Fix invalid parsing of modules as
192
+ classes in `yard graph` template Closes #245
193
+
194
+ 2011-02-23 Bob Aman <bobaman@google.com>
195
+
196
+ * templates/default/layout/html/headers.erb: Fixed invalid meta element in
197
+ headers.
198
+
199
+ * spec/parser/source_parser_spec.rb: Added spec to verify docstrings on
200
+ metaclasses get parsed correctly.
201
+
202
+ 2011-02-07 latentflip <phil@latentflip.com>
203
+
204
+ * lib/yard/cli/graph.rb: Fixed a typo in yard-graph help messages: Direclty
205
+ -> Directly
206
+
207
+ 2011-01-26 Loren Segal <lsegal@soen.ca>
208
+
209
+ * lib/yard/code_objects/base.rb, lib/yard/serializers/process_serializer.rb,
210
+ lib/yard/templates/helpers/markup_helper.rb: More spelling corrections
211
+
212
+ * docs/WhatsNew.md, lib/yard/handlers/base.rb,
213
+ lib/yard/handlers/processor.rb, lib/yard/parser/ruby/ast_node.rb,
214
+ lib/yard/server/commands/display_object_command.rb,
215
+ lib/yard/templates/template.rb: Fix typos in docs thanks to yard spellcheck
216
+
217
+ * lib/yard/cli/config.rb, spec/cli/config_spec.rb: Add yard config --as-list
218
+ and yard config --append to force setting of a single value as a list, and to
219
+ append values to an existing list, respectively.
220
+
221
+ 2011-01-23 Loren Segal <lsegal@soen.ca>
222
+
223
+ * docs/Tags.md: Write a note about @api private Closes #223
224
+
225
+ * templates/default/docstring/setup.rb: Show docstring if @api exists (even
226
+ though it is a "hidden tag") Closes #231
227
+
228
+ * lib/yard/code_objects/base.rb, spec/code_objects/base_spec.rb: Fix relative
229
+ object link names removing common object name prefix Closes #232
230
+
231
+ * spec/config_spec.rb: Fix failing spec when ~/.yard/ignored_plugins does not
232
+ exist
233
+
234
+ * spec/templates/helpers/markup_helper_spec.rb: Fix broken spec with changed
235
+ markup provider order
236
+
237
+ * lib/yard/templates/helpers/html_helper.rb,
238
+ spec/templates/helpers/html_helper_spec.rb: Don't process ++ typewriter text
239
+ inside of HTML attributes Closes #244
240
+
241
+ 2011-01-19 Postmodern <postmodern.mod3@gmail.com>
242
+
243
+ * lib/yard/templates/helpers/markup_helper.rb: Prioritize the loading of
244
+ kramdown before maruku.
245
+
246
+ 2011-01-19 Loren Segal <lsegal@soen.ca>
247
+
248
+ * templates/default/fulldoc/html/js/app.js: Generate better ids
249
+
250
+ 2011-01-17 Akzhan Abdulin <akzhan.abdulin@gmail.com>
251
+
252
+ * spec/config_spec.rb: Specs should not broken when plugins installed in
253
+ system
254
+
255
+ * spec/cli/config_spec.rb, spec/config_spec.rb: Fix uninitialized constant
256
+ RSpec::Core::ExampleGroup::Nested_2::Nested_1::YAML error
257
+
258
+ 2011-01-05 Loren Segal <lsegal@soen.ca>
259
+
260
+ * lib/yard/docstring.rb, lib/yard/handlers/base.rb,
261
+ lib/yard/parser/ruby/ast_node.rb, lib/yard/parser/ruby/legacy/statement.rb,
262
+ lib/yard/parser/ruby/legacy/statement_list.rb,
263
+ lib/yard/parser/ruby/ruby_parser.rb, spec/parser/source_parser_spec.rb: Add
264
+ Docstring#hash_flag to denote when a docstring comment started with '##'
265
+ Closes gh-230
266
+
267
+ * lib/yard/tags/default_factory.rb, spec/docstring_spec.rb,
268
+ spec/tags/default_factory_spec.rb: Remove trailing whitespace from freeform
269
+ tags Closes gh-229
270
+
271
+ * spec/tags/default_factory_spec.rb: Update default_factory_spec.rb
272
+ formatting
273
+
274
+ 2011-01-01 Dominik Honnef <dominikh@fork-bomb.org>
275
+
276
+ * templates/default/fulldoc/html/css/style.css: make sure that alternatives
277
+ specified in @deprecated don't get struck through and that they're set using
278
+ a monospace font
279
+
280
+ 2010-12-30 Loren Segal <lsegal@soen.ca>
281
+
282
+ * spec/cli/yardoc_spec.rb, spec/registry_store_spec.rb: Fix broken specs
283
+
284
+ * templates/default/layout/html/files.erb,
285
+ templates/default/layout/html/index.erb,
286
+ templates/default/layout/html/listing.erb,
287
+ templates/default/layout/html/objects.erb,
288
+ templates/default/layout/html/setup.rb: Split index/listing templates into
289
+ listing/files/objects
290
+
291
+ * lib/yard/templates/helpers/html_helper.rb: Add documentation to
292
+ simple_markup_html
293
+
294
+ * lib/yard/templates/helpers/html_helper.rb: Make SimpleMarkupHtml thread
295
+ local, remove constant
296
+
297
+ 2010-12-29 Loren Segal <lsegal@soen.ca>
298
+
299
+ * lib/yard/tags/library.rb: Fix documentation on tag library
300
+
301
+ * lib/yard/registry.rb, lib/yard/registry_store.rb, spec/cli/yardoc_spec.rb,
302
+ spec/registry_store_spec.rb, spec/serializers/yardoc_serializer_spec.rb: Add
303
+ specs to single object db functionality
304
+
305
+ * lib/yard/registry.rb, spec/registry_spec.rb: Add spec for single_object_db
306
+ attribute default value
307
+
308
+ 2010-12-28 Loren Segal <lsegal@soen.ca>
309
+
310
+ * lib/yard/serializers/yardoc_serializer.rb: Add check for empty object db
311
+
312
+ * lib/yard/cli/yardoc.rb: Allow disabling of single_object_db
313
+
314
+ * lib/yard/cli/yardoc.rb, lib/yard/registry.rb, lib/yard/registry_store.rb,
315
+ lib/yard/serializers/yardoc_serializer.rb: Initial single object db
316
+ implementation
317
+
318
+ 2010-12-29 Loren Segal <lsegal@soen.ca>
319
+
320
+ * spec/registry_spec.rb: Fix formatting in spec
321
+
322
+ * lib/yard/registry.rb, spec/registry_spec.rb: Add specs to thread local
323
+ storage code, improve initializations
324
+
325
+ * lib/yard/code_objects/base.rb, spec/code_objects/base_spec.rb: Make sure
326
+ the non-tag form of (see ...) only works at the start of a docstring
327
+
328
+ 2010-12-25 Loren Segal <lsegal@soen.ca>
329
+
330
+ * lib/yard/autoload.rb, lib/yard/code_objects/base.rb,
331
+ lib/yard/code_objects/method_object.rb,
332
+ .../ruby/legacy/private_constant_handler.rb,
333
+ lib/yard/handlers/ruby/private_constant_handler.rb,
334
+ .../examples/private_constant_handler_001.rb.txt,
335
+ spec/handlers/private_constant_handler_spec.rb: Add support for
336
+ `private_constant` class method calls to recognize private class, module and
337
+ constant definitions (proposed for Ruby 1.9.3). Closes gh-219
338
+
1
339
  2010-12-21 Loren Segal <lsegal@soen.ca>
2
340
 
3
341
  * ChangeLog, README.md, lib/yard.rb, yard.gemspec: Bump to version 0.6.4
@@ -73,6 +411,9 @@
73
411
 
74
412
  * spec/cli/yri_spec.rb: Add sanity check tests to YRI specs
75
413
 
414
+ * lib/yard/registry.rb, lib/yard/server/commands/library_command.rb: Use
415
+ threadlocal registries
416
+
76
417
  2010-12-15 Lee Jarvis <lee@jarvis.co>
77
418
 
78
419
  * lib/yard/cli/yri.rb: prepend :: to adhere to rubys class lookup rules for
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2007-2010 Loren Segal
1
+ Copyright (c) 2007-2011 Loren Segal
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person
4
4
  obtaining a copy of this software and associated documentation
data/README.md CHANGED
@@ -6,10 +6,10 @@ YARD: Yay! A Ruby Documentation Tool
6
6
  **Git**: [http://github.com/lsegal/yard](http://github.com/lsegal/yard)
7
7
  **Author**: Loren Segal
8
8
  **Contributors**: See Contributors section below
9
- **Copyright**: 2007-2010
9
+ **Copyright**: 2007-2011
10
10
  **License**: MIT License
11
- **Latest Version**: 0.6.4 (codename "Snowy White Picket Fences")
12
- **Release Date**: December 21st 2010
11
+ **Latest Version**: 0.6.5 (codename "Happy Birthday!")
12
+ **Release Date**: March 13th 2011
13
13
 
14
14
  Synopsis
15
15
  --------
@@ -289,6 +289,28 @@ More options can be seen by typing `yard-graph --help`, but here is an example:
289
289
  Changelog
290
290
  ---------
291
291
 
292
+ - **March.13.11**: 0.6.5 release
293
+ - Support `ripper` gem in Ruby 1.8.7
294
+ - Upgrade jQuery to 1.5.1
295
+ - Fix handling of alias statements with quoted symbols (#262)
296
+ - Add CSS styles (#260)
297
+ - Unhandled exception in YARD::Handlers::Ruby::MixinHandler indexing documentation for eventmachine (#248)
298
+ - Splice any alias references on method re-definitions into separate methods (#247)
299
+ - Fix "yard graph" (#245)
300
+ - Don't process ++ typewriter text inside of HTML attributes (#244)
301
+ - Prioritize loading of Kramdown before Maruku (#241)
302
+ - Skip shebang encoding in docstrings (#238)
303
+ - Fix truncation of references in @deprecated (#232)
304
+ - Show @api private note when no other tags are present (#231)
305
+ - Detect docstrings starting with "##" as `Docstring#hash_flag` (#230)
306
+ - Remove trailing whitespace from freeform tags (#229)
307
+ - Fix line through for deprecated methods (#225)
308
+ - Mistake in Tags.md (#223)
309
+ - Improve database storage by being more efficient with filesystem usage (#222)
310
+ - Make Registry thread local (#221)
311
+ - Support `private_constant` class method for 1.9.3 (#219)
312
+ - Do not assume RDoc is installed (#214)
313
+
292
314
  - **December.21.10**: 0.6.4 release
293
315
  - Fix yri tool crashing with new Config class (gh-217)
294
316
  - Fix support for ::TopLevelConstants (gh-216)
@@ -430,9 +452,10 @@ Special thanks to the following people for submitting patches:
430
452
  * Nathan Weizenbaum
431
453
  * Nick Plante
432
454
  * Michael Edgar
455
+ * Sam Rawlins
433
456
  * Yehuda Katz
434
457
  * Duane Johnson
435
- * Postmodern
458
+ * Hal Brodigan
436
459
  * Edward Muller
437
460
  * Pieter van de Bruggen
438
461
  * Leonid Borisenko
@@ -441,9 +464,11 @@ Special thanks to the following people for submitting patches:
441
464
  * Mark Evans
442
465
  * Lee Jarvis
443
466
  * Franklin Webber
467
+ * Dominik Honnef
444
468
  * David Turnbull
469
+ * Bob Aman
445
470
  * Anthony Thibault
446
- * Sam Rawlins
471
+ * Philip Roberts
447
472
  * Jeff Rafter
448
473
  * Elliottcable
449
474
  * James Rosen
@@ -457,7 +482,7 @@ Special thanks to the following people for submitting patches:
457
482
  Copyright
458
483
  ---------
459
484
 
460
- YARD &copy; 2007-2010 by [Loren Segal](mailto:lsegal@soen.ca). YARD is
485
+ YARD &copy; 2007-2011 by [Loren Segal](mailto:lsegal@soen.ca). YARD is
461
486
  licensed under the MIT license except for some files which come from the
462
487
  RDoc/Ruby distributions. Please see the {file:LICENSE} and {file:LEGAL}
463
488
  documents for more information.
data/Rakefile CHANGED
@@ -9,6 +9,7 @@ task :default => :specs
9
9
 
10
10
  desc "Builds the gem"
11
11
  task :gem do
12
+ Gem.load_plugins # load plugins because they are not autoloaded anymore
12
13
  load 'yard.gemspec'
13
14
  Gem::Builder.new(SPEC).build
14
15
  end
@@ -18,10 +19,26 @@ task :install => :gem do
18
19
  sh "#{SUDO} gem install yard-#{YARD::VERSION}.gem --no-rdoc --no-ri"
19
20
  end
20
21
 
22
+ desc 'Run spec suite'
23
+ task :suite do
24
+ ['ruby186', 'ruby18', 'ruby19', 'ruby192', 'jruby'].each do |ruby|
25
+ 2.times do |legacy|
26
+ next if legacy == 1 && ruby =~ /^jruby|186/
27
+ puts "Running specs with #{ruby}#{legacy == 1 ? ' (in legacy mode)' : ''}"
28
+ cmd = "#{ruby} -S rake specs SUITE=1 #{legacy == 1 ? 'LEGACY=1' : ''}"
29
+ puts cmd
30
+ system(cmd)
31
+ end
32
+ end
33
+ end
34
+
21
35
  begin
22
36
  hide = '_spec\.rb$,spec_helper\.rb$,ruby_lex\.rb$,autoload\.rb$'
23
- hide += ',legacy\/.+_handler,html_syntax_highlight_helper18\.rb$' if RUBY19
24
- hide += ',ruby_parser\.rb$,ast_node\.rb$,handlers\/ruby\/[^\/]+\.rb$,html_syntax_highlight_helper\.rb$' if RUBY18
37
+ if YARD::Parser::SourceParser.parser_type == :ruby
38
+ hide += ',legacy\/.+_handler'
39
+ else
40
+ hide += ',ruby_parser\.rb$,ast_node\.rb$,handlers\/ruby\/[^\/]+\.rb$'
41
+ end
25
42
 
26
43
  require 'rspec'
27
44
  require 'rspec/core/rake_task'
@@ -29,9 +46,11 @@ begin
29
46
  desc "Run all specs"
30
47
  RSpec::Core::RakeTask.new("specs") do |t|
31
48
  $DEBUG = true if ENV['DEBUG']
32
- t.rspec_opts = ["--colour", "--format", "documentation"]
49
+ t.rspec_opts = ENV['SUITE'] ? ['--format', 'progress'] : ["--colour", "--format", "documentation"]
33
50
  t.rspec_opts += ["--require", File.join(File.dirname(__FILE__), 'spec', 'spec_helper')]
51
+ t.rspec_opts += ['-I', YARD::ROOT]
34
52
  t.pattern = "spec/**/*_spec.rb"
53
+ t.verbose = $DEBUG ? true : false
35
54
 
36
55
  if ENV['RCOV']
37
56
  t.rcov = true