yard 0.9.3 → 0.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of yard might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/yard/parser/ruby/ruby_parser.rb +1 -1
- data/lib/yard/version.rb +1 -1
- data/spec/parser/ruby/ruby_parser_spec.rb +14 -0
- data/templates/default/fulldoc/html/css/style.css +8 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 994e4c83b93e9b6c520138f2d8a221b25ab95ca4
|
4
|
+
data.tar.gz: 82668951125bfa84bb79b636c130af43a6daf772
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f41d5b06ef5224e1f4ebdc2278323df57e8c70ccd13105827905494c1e4ea81e170c20d9fe797e362dd45e045f4a17c700818e0cba2503fbf8c9178ffdac6392
|
7
|
+
data.tar.gz: 99e47e1a3ea86721d389ee3215d6adf643e0e1becc851f2ea0e4c1f7e26224d9d61e30530533c776c094d5e9035b5e43f45241e72e9f76cf59ca362526730f07
|
data/CHANGELOG.md
CHANGED
@@ -249,7 +249,7 @@ module YARD
|
|
249
249
|
@last_ns_token = [token, data]
|
250
250
|
@charno += data.length
|
251
251
|
@ns_charno = charno
|
252
|
-
@newline = [:semicolon, :comment, :kw, :op].include?(token)
|
252
|
+
@newline = [:semicolon, :comment, :kw, :op, :lparen, :lbrace].include?(token)
|
253
253
|
if ast_token
|
254
254
|
AstNode.new(token, [data], :line => lineno..lineno, :char => ch..charno-1, :token => true)
|
255
255
|
end
|
data/lib/yard/version.rb
CHANGED
@@ -403,6 +403,20 @@ eof
|
|
403
403
|
expect(Registry.at("Foo::Bar#foo").docstring).to eq "Docstring2"
|
404
404
|
end
|
405
405
|
|
406
|
+
it "can handle complex non-modifier '#{type}' statements" do
|
407
|
+
Registry.clear
|
408
|
+
YARD.parse_string <<-eof
|
409
|
+
class Foo
|
410
|
+
def initialize(data, options = Hash.new)
|
411
|
+
#{type} true; raise "error" end
|
412
|
+
@x = ( #{type} 1; true end ) # This line should not blow up
|
413
|
+
end
|
414
|
+
end
|
415
|
+
eof
|
416
|
+
|
417
|
+
expect(Registry.at('Foo#initialize')).not_to eq nil
|
418
|
+
end
|
419
|
+
|
406
420
|
it "does not add comment blocks to #{type}_mod nodes" do
|
407
421
|
Registry.clear
|
408
422
|
ast = YARD.parse_string(<<-eof).enumerator
|
@@ -215,7 +215,14 @@ p.inherited {
|
|
215
215
|
|
216
216
|
ul.toplevel { list-style: none; padding-left: 0; font-size: 1.1em; }
|
217
217
|
.index_inline_list { padding-left: 0; font-size: 1.1em; }
|
218
|
-
|
218
|
+
|
219
|
+
.index_inline_list li {
|
220
|
+
list-style: none;
|
221
|
+
display: inline-block;
|
222
|
+
padding: 0 12px;
|
223
|
+
line-height: 30px;
|
224
|
+
margin-bottom: 5px;
|
225
|
+
}
|
219
226
|
|
220
227
|
dl.constants { margin-left: 10px; }
|
221
228
|
dl.constants dt { font-weight: bold; font-size: 1.1em; margin-bottom: 5px; }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Loren Segal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |2
|
14
14
|
YARD is a documentation generation tool for the Ruby programming language.
|