From a92e5144e50fe7d44c3216704357519a0a69b41f Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Wed, 25 Dec 2024 16:53:37 +0100 Subject: [PATCH] Update Ruby documentation (3.4.1) --- lib/docs/filters/rdoc/container.rb | 7 +++++-- lib/docs/scrapers/rdoc/ruby.rb | 6 +++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/lib/docs/filters/rdoc/container.rb b/lib/docs/filters/rdoc/container.rb index aea2b0f5..4732b02a 100644 --- a/lib/docs/filters/rdoc/container.rb +++ b/lib/docs/filters/rdoc/container.rb @@ -13,8 +13,11 @@ module Docs meta = Nokogiri::XML::Node.new 'dl', doc.document meta['class'] = 'meta' - if parent = at_css('#parent-class-section') - meta << %(
Parent:
#{parent.at_css('.link').inner_html.strip}
) + parent = at_css('#parent-class-section') + if parent && link = parent.at_css('.link') + meta << %(
Parent:
#{link.inner_html.strip}
) + elsif parent && link = parent.at_css('a') + meta << %(
Parent:
#{link.to_html}
) end if includes = at_css('#includes-section') diff --git a/lib/docs/scrapers/rdoc/ruby.rb b/lib/docs/scrapers/rdoc/ruby.rb index eef26f41..630cb81e 100644 --- a/lib/docs/scrapers/rdoc/ruby.rb +++ b/lib/docs/scrapers/rdoc/ruby.rb @@ -63,12 +63,16 @@ module Docs /\AXMP/] options[:attribution] = <<-HTML - Ruby Core © 1993–2022 Yukihiro Matsumoto
+ Ruby Core © 1993–2024 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
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