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.
- data/ChangeLog +341 -0
- data/LICENSE +1 -1
- data/README.md +31 -6
- data/Rakefile +22 -3
- data/docs/Tags.md +5 -1
- data/docs/WhatsNew.md +18 -1
- data/lib/rubygems_plugin.rb +3 -99
- data/lib/yard.rb +1 -1
- data/lib/yard/autoload.rb +37 -35
- data/lib/yard/cli/config.rb +25 -2
- data/lib/yard/cli/graph.rb +1 -1
- data/lib/yard/cli/yardoc.rb +4 -0
- data/lib/yard/code_objects/base.rb +17 -9
- data/lib/yard/code_objects/method_object.rb +0 -9
- data/lib/yard/code_objects/proxy.rb +6 -0
- data/lib/yard/docstring.rb +5 -0
- data/lib/yard/handlers/base.rb +3 -1
- data/lib/yard/handlers/processor.rb +1 -1
- data/lib/yard/handlers/ruby/alias_handler.rb +9 -8
- data/lib/yard/handlers/ruby/class_handler.rb +3 -3
- data/lib/yard/handlers/ruby/legacy/alias_handler.rb +9 -7
- data/lib/yard/handlers/ruby/legacy/method_handler.rb +7 -0
- data/lib/yard/handlers/ruby/legacy/private_constant_handler.rb +21 -0
- data/lib/yard/handlers/ruby/method_condition_handler.rb +1 -1
- data/lib/yard/handlers/ruby/method_handler.rb +7 -0
- data/lib/yard/handlers/ruby/private_constant_handler.rb +36 -0
- data/lib/yard/parser/ruby/ast_node.rb +41 -24
- data/lib/yard/parser/ruby/legacy/ruby_parser.rb +3 -0
- data/lib/yard/parser/ruby/legacy/statement.rb +2 -0
- data/lib/yard/parser/ruby/legacy/statement_list.rb +27 -4
- data/lib/yard/parser/ruby/ruby_parser.rb +71 -36
- data/lib/yard/parser/source_parser.rb +11 -10
- data/lib/yard/registry.rb +62 -24
- data/lib/yard/registry_store.rb +18 -5
- data/lib/yard/rubygems/doc_manager.rb +75 -0
- data/lib/yard/rubygems/specification.rb +23 -0
- data/lib/yard/serializers/process_serializer.rb +1 -1
- data/lib/yard/serializers/yardoc_serializer.rb +7 -2
- data/lib/yard/server/commands/display_object_command.rb +1 -1
- data/lib/yard/server/commands/library_command.rb +2 -2
- data/lib/yard/tags/default_factory.rb +1 -1
- data/lib/yard/tags/library.rb +2 -2
- data/lib/yard/templates/helpers/base_helper.rb +19 -0
- data/lib/yard/templates/helpers/html_helper.rb +22 -9
- data/lib/yard/templates/helpers/html_syntax_highlight_helper.rb +28 -0
- data/lib/yard/templates/helpers/markup_helper.rb +14 -22
- data/lib/yard/templates/template.rb +1 -1
- data/spec/cli/config_spec.rb +20 -0
- data/spec/cli/yardoc_spec.rb +12 -0
- data/spec/code_objects/base_spec.rb +13 -0
- data/spec/code_objects/proxy_spec.rb +9 -0
- data/spec/config_spec.rb +4 -1
- data/spec/docstring_spec.rb +5 -0
- data/spec/handlers/alias_handler_spec.rb +14 -1
- data/spec/handlers/attribute_handler_spec.rb +1 -1
- data/spec/handlers/base_spec.rb +21 -21
- data/spec/handlers/class_condition_handler_spec.rb +1 -1
- data/spec/handlers/class_handler_spec.rb +1 -1
- data/spec/handlers/class_variable_handler_spec.rb +1 -1
- data/spec/handlers/constant_handler_spec.rb +2 -2
- data/spec/handlers/examples/alias_handler_001.rb.txt +14 -0
- data/spec/handlers/examples/method_handler_001.rb.txt +6 -0
- data/spec/handlers/examples/module_handler_001.rb.txt +4 -0
- data/spec/handlers/examples/private_constant_handler_001.rb.txt +8 -0
- data/spec/handlers/exception_handler_spec.rb +1 -1
- data/spec/handlers/extend_handler_spec.rb +1 -1
- data/spec/handlers/method_condition_handler_spec.rb +1 -1
- data/spec/handlers/method_handler_spec.rb +7 -1
- data/spec/handlers/mixin_handler_spec.rb +1 -1
- data/spec/handlers/module_handler_spec.rb +5 -1
- data/spec/handlers/private_constant_handler_spec.rb +24 -0
- data/spec/handlers/process_handler_spec.rb +1 -1
- data/spec/handlers/ruby/base_spec.rb +4 -4
- data/spec/handlers/visibility_handler_spec.rb +1 -1
- data/spec/handlers/yield_handler_spec.rb +1 -1
- data/spec/parser/base_spec.rb +3 -5
- data/spec/parser/c_parser_spec.rb +1 -1
- data/spec/parser/ruby/ast_node_spec.rb +23 -26
- data/spec/parser/ruby/legacy/statement_list_spec.rb +9 -0
- data/spec/parser/ruby/ruby_parser_spec.rb +179 -177
- data/spec/parser/source_parser_spec.rb +41 -7
- data/spec/rake/yardoc_task_spec.rb +3 -3
- data/spec/registry_spec.rb +52 -0
- data/spec/registry_store_spec.rb +71 -1
- data/spec/serializers/yardoc_serializer_spec.rb +18 -7
- data/spec/server/rack_adapter_spec.rb +2 -2
- data/spec/spec_helper.rb +10 -0
- data/spec/tags/default_factory_spec.rb +122 -120
- data/spec/templates/helpers/base_helper_spec.rb +38 -14
- data/spec/templates/helpers/html_helper_spec.rb +19 -0
- data/spec/templates/helpers/html_syntax_highlight_helper_spec.rb +10 -6
- data/spec/templates/helpers/markup_helper_spec.rb +21 -5
- data/templates/default/class/dot/superklass.erb +1 -1
- data/templates/default/docstring/setup.rb +1 -1
- data/templates/default/fulldoc/html/css/style.css +12 -4
- data/templates/default/fulldoc/html/js/app.js +1 -1
- data/templates/default/fulldoc/html/js/jquery.js +5 -143
- data/templates/default/layout/html/files.erb +11 -0
- data/templates/default/layout/html/headers.erb +1 -1
- data/templates/default/layout/html/index.erb +2 -49
- data/templates/default/layout/html/listing.erb +4 -0
- data/templates/default/layout/html/objects.erb +32 -0
- data/templates/default/layout/html/setup.rb +1 -1
- data/templates/default/module/dot/info.erb +1 -1
- data/templates/default/module/dot/setup.rb +1 -1
- metadata +15 -6
- 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
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-
|
9
|
+
**Copyright**: 2007-2011
|
10
10
|
**License**: MIT License
|
11
|
-
**Latest Version**: 0.6.
|
12
|
-
**Release Date**:
|
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
|
-
*
|
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
|
-
*
|
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 © 2007-
|
485
|
+
YARD © 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
|
-
|
24
|
-
|
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
|