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

ruby-changes:72495

From: Nobuyoshi <ko1@a...>
Date: Mon, 11 Jul 2022 13:14:22 +0900 (JST)
Subject: [ruby-changes:72495] 86df6f4bb3 (master): [ruby/rdoc] Fix an exception class name

https://git.ruby-lang.org/ruby.git/commit/?id=86df6f4bb3

From 86df6f4bb3b380ad536b102675d7fa452b01549f Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Mon, 11 Jul 2022 13:04:11 +0900
Subject: [ruby/rdoc] Fix an exception class name

https://github.com/ruby/rdoc/commit/87301da71b
---
 lib/rdoc/known_classes.rb       | 2 +-
 test/rdoc/test_rdoc_parser_c.rb | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/rdoc/known_classes.rb b/lib/rdoc/known_classes.rb
index 3cccff623f..bdda96ae0e 100644
--- a/lib/rdoc/known_classes.rb
+++ b/lib/rdoc/known_classes.rb
@@ -36,7 +36,7 @@ module RDoc https://github.com/ruby/ruby/blob/trunk/lib/rdoc/known_classes.rb#L36
     "rb_cTime"             => "Time",
     "rb_cTrueClass"        => "TrueClass",
 
-    "rb_eArgError"         => "ArgError",
+    "rb_eArgError"         => "ArgumentError",
     "rb_eEOFError"         => "EOFError",
     "rb_eException"        => "Exception",
     "rb_eFatal"            => "fatal",
diff --git a/test/rdoc/test_rdoc_parser_c.rb b/test/rdoc/test_rdoc_parser_c.rb
index 7cd04b52ef..8125f5def6 100644
--- a/test/rdoc/test_rdoc_parser_c.rb
+++ b/test/rdoc/test_rdoc_parser_c.rb
@@ -115,6 +115,8 @@ class TestRDocParserC < RDoc::TestCase https://github.com/ruby/ruby/blob/trunk/test/rdoc/test_rdoc_parser_c.rb#L115
 
     parser = RDoc::Parser::C.new @top_level, @fn, '', @options, @stats
 
+    assert_equal "ArgumentError", parser.known_classes["rb_eArgError"]
+
     expected = { 'cSomeExt' => some_ext }
     assert_equal expected, parser.classes
 
-- 
cgit v1.2.1


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

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