[前][次][番号順一覧][スレッド一覧]

ruby-changes:71397

From: Nobuyoshi <ko1@a...>
Date: Sun, 13 Mar 2022 19:56:59 +0900 (JST)
Subject: [ruby-changes:71397] 0bcc3bd6ab (master): [ruby/rdoc] Clean documents for backwards compatibility

https://git.ruby-lang.org/ruby.git/commit/?id=0bcc3bd6ab

From 0bcc3bd6abd881cb3985a6cd776e94a8ebd5b6ff Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sun, 13 Mar 2022 19:51:50 +0900
Subject: [ruby/rdoc] Clean documents for backwards compatibility

https://github.com/ruby/rdoc/commit/23e61a208e
---
 lib/rdoc/ri/driver.rb | 6 ++----
 lib/rdoc/task.rb      | 2 +-
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/lib/rdoc/ri/driver.rb b/lib/rdoc/ri/driver.rb
index 082fcc7e81..48a625c6cd 100644
--- a/lib/rdoc/ri/driver.rb
+++ b/lib/rdoc/ri/driver.rb
@@ -14,10 +14,8 @@ end https://github.com/ruby/ruby/blob/trunk/lib/rdoc/ri/driver.rb#L14
 
 require_relative '../../rdoc'
 
-##
-# For RubyGems backwards compatibility
-
-require_relative 'formatter'
+require_relative 'formatter' # For RubyGems backwards compatibility
+# TODO: Fix wierd documentation with `require_relative`
 
 ##
 # The RI driver implements the command-line ri tool.
diff --git a/lib/rdoc/task.rb b/lib/rdoc/task.rb
index 8890419db2..8ea2d0588c 100644
--- a/lib/rdoc/task.rb
+++ b/lib/rdoc/task.rb
@@ -323,7 +323,7 @@ module Rake https://github.com/ruby/ruby/blob/trunk/lib/rdoc/task.rb#L323
   ##
   # For backwards compatibility
 
-  RDocTask = RDoc::Task
+  RDocTask = RDoc::Task # :nodoc:
 
 end
 # :startdoc:
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]