summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJean Boussier <byroot@ruby-lang.org>2024-03-25 08:45:02 +0100
committerTakashi Kokubun <takashikkbn@gmail.com>2024-05-28 13:29:22 -0700
commit0b3a2cf5d33688378a0d947f1623879838fb9c4c (patch)
tree7a5fd56b977784867895be082b11c91f882e0cbc /lib
parentb6c07acedb3ca56471754a082b3db20bb863c92e (diff)
lib/bundled_gems.rb: dynamically ignore Kernel.require decorators
Followup: https://github.com/ruby/ruby/pull/10347 This avoid directly referencing bootsnap and zeitwerk, and also handle other gems that may decorate `require`.
Diffstat (limited to 'lib')
-rw-r--r--lib/bundled_gems.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundled_gems.rb b/lib/bundled_gems.rb
index e756af61ea..a8ea9fe211 100644
--- a/lib/bundled_gems.rb
+++ b/lib/bundled_gems.rb
@@ -147,7 +147,7 @@ module Gem::BUNDLED_GEMS
next
end
- unless cl.path.match?(/bootsnap|zeitwerk/)
+ if cl.base_label != "require"
location = cl.path
break
end