Skip to content

Commit

Permalink
Update Ruby documentation (3.4.1)
Browse files Browse the repository at this point in the history
  • Loading branch information
simon04 committed Dec 25, 2024
1 parent c14d91e commit a92e514
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 5 additions & 2 deletions lib/docs/filters/rdoc/container.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ def call
meta = Nokogiri::XML::Node.new 'dl', doc.document
meta['class'] = 'meta'

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

if includes = at_css('#includes-section')
Expand Down
6 changes: 5 additions & 1 deletion lib/docs/scrapers/rdoc/ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,16 @@ class Ruby < Rdoc
/\AXMP/]

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

version '3.4' do
self.release = '3.4.1'
end

version '3.3' do
self.release = '3.3.0'
end
Expand Down

0 comments on commit a92e514

Please sign in to comment.