summaryrefslogtreecommitdiff
path: root/lib/bundled_gems.rb
diff options
context:
space:
mode:
authorStan Lo <[email protected]>2024-12-12 12:55:22 +0000
committerPeter Zhu <[email protected]>2024-12-12 16:43:25 -0500
commitff8570b005e552685d518898b866070ff116eab6 ()
treea8f11517e26f9f57b76ae5cd6c5e1eb757726a3c /lib/bundled_gems.rb
parent0bdb38ba6be208064a514c12a9b80328645689f8 (diff)
Fix LoadError's linking issue
Original issue: https://.com/ruby/rdoc/issues/1128 The problem is caused by the `# :stopdoc:` directive in `bundled_gems.rb`, which's scope covers the redefinition of `LoadError`. Since the goal of `# :stopdoc:` is to hide the documentation of `Gem::BUNDLED_GEMS`, we can use `# :nodoc:` on it instead.
Notes: Merged: https://.com/ruby/ruby/pull/12317
-rw-r--r--lib/bundled_gems.rb8
1 files changed, 2 insertions, 6 deletions
@@ -1,8 +1,6 @@
# -*- frozen-string-literal: true -*-
-# :stopdoc:
-
-module Gem::BUNDLED_GEMS
SINCE = {
"matrix" => "3.1.0",
"net-ftp" => "3.1.0",
@@ -247,7 +245,7 @@ end
# for RubyGems without Bundler environment.
# If loading library is not part of the default gems and the bundled gems, warn it.
class LoadError
- def message
return super unless path
name = path.tr("/", "-")
@@ -257,5 +255,3 @@ class LoadError
super
end
end
-
-# :startdoc: