[rubygems/rubygems] Add a comment to explain default gem activation

https://github.com/rubygems/rubygems/commit/291128268f
This commit is contained in:
David Rodríguez 2024-01-11 23:02:11 +01:00 committed by Hiroshi SHIBATA
parent 74e5665ec1
commit 8044e57907

View File

@ -39,6 +39,9 @@ module Kernel
RUBYGEMS_ACTIVATION_MONITOR.synchronize do
path = File.path(path)
# If +path+ belongs to a default gem, we activate it and then go straight
# to normal require
if spec = Gem.find_unresolved_default_spec(path)
# Ensure -I beats a default gem
resolved_path = begin