Skip to content

Commit a92e514

Browse files
committed
Update Ruby documentation (3.4.1)
1 parent c14d91e commit a92e514

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

lib/docs/filters/rdoc/container.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@ def call
1313
meta = Nokogiri::XML::Node.new 'dl', doc.document
1414
meta['class'] = 'meta'
1515

16-
if parent = at_css('#parent-class-section')
17-
meta << %(<dt>Parent:</dt><dd class="meta-parent">#{parent.at_css('.link').inner_html.strip}</dd>)
16+
parent = at_css('#parent-class-section')
17+
if parent && link = parent.at_css('.link')
18+
meta << %(<dt>Parent:</dt><dd class="meta-parent">#{link.inner_html.strip}</dd>)
19+
elsif parent && link = parent.at_css('a')
20+
meta << %(<dt>Parent:</dt><dd class="meta-parent">#{link.to_html}</dd>)
1821
end
1922

2023
if includes = at_css('#includes-section')

lib/docs/scrapers/rdoc/ruby.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,16 @@ class Ruby < Rdoc
6363
/\AXMP/]
6464

6565
options[:attribution] = <<-HTML
66-
Ruby Core &copy; 1993&ndash;2022 Yukihiro Matsumoto<br>
66+
Ruby Core &copy; 1993&ndash;2024 Yukihiro Matsumoto<br>
6767
Licensed under the Ruby License.<br>
6868
Ruby Standard Library &copy; contributors<br>
6969
Licensed under their own licenses.
7070
HTML
7171

72+
version '3.4' do
73+
self.release = '3.4.1'
74+
end
75+
7276
version '3.3' do
7377
self.release = '3.3.0'
7478
end

0 commit comments

Comments
 (0)