yard 0.9.19 → 0.9.20
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of yard might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/Rakefile +1 -6
- data/lib/yard/handlers/ruby/alias_handler.rb +5 -4
- data/lib/yard/handlers/ruby/constant_handler.rb +1 -5
- data/lib/yard/parser/ruby/ruby_parser.rb +13 -1
- data/lib/yard/server/commands/static_file_helpers.rb +0 -1
- data/lib/yard/version.rb +1 -1
- data/spec/examples.txt +1676 -1676
- data/spec/handlers/constant_handler_spec.rb +1 -1
- data/spec/templates/helpers/method_helper_spec.rb +2 -2
- metadata +2 -2
@@ -35,7 +35,7 @@ RSpec.describe "YARD::Handlers::Ruby::#{LEGACY_PARSER ? "Legacy::" : ""}Constant
|
|
35
35
|
expect(obj.constants[0].value).to eq "42"
|
36
36
|
expect(obj.constants[1].docstring).to eq 'Special constant (empty symbol)'
|
37
37
|
expect(obj.constants[1].name).to eq :EMPTY
|
38
|
-
expect(obj.constants[1].value).to eq '
|
38
|
+
expect(obj.constants[1].value).to eq ":''"
|
39
39
|
end
|
40
40
|
|
41
41
|
it "turns Const = Struct.new('Name', :sym) into class Const with attr :sym" do
|
@@ -99,9 +99,9 @@ RSpec.describe YARD::Templates::Helpers::MethodHelper do
|
|
99
99
|
foo, bar, baz = %w(Foo Bar Baz).map do |c|
|
100
100
|
Registry.at("TestFmtConst::#{c}").value
|
101
101
|
end
|
102
|
-
expect(format_constant(foo)).to eq "
|
102
|
+
expect(format_constant(foo)).to eq ":''"
|
103
103
|
expect(format_constant(bar)).to eq ':BAR'
|
104
|
-
expect(format_constant(baz)).to eq "
|
104
|
+
expect(format_constant(baz)).to eq ":'B+z'"
|
105
105
|
end
|
106
106
|
end
|
107
107
|
end
|
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.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Loren Segal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-06-27 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.
|