1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Remove require_path from $LOADED_FEATURES

because some features are already loaded.
This commit is contained in:
Kazuhiro NISHIYAMA 2021-01-28 17:55:26 +09:00
parent 00bd645f09
commit 7cd97a81d1
No known key found for this signature in database
GPG key ID: 262ED8DBB4222F7A

View file

@ -127,6 +127,7 @@ module Spec
code << "exclude_from_load_path = File.expand_path('#{exclude_from_load_path}')" code << "exclude_from_load_path = File.expand_path('#{exclude_from_load_path}')"
code << "$LOAD_PATH.delete_if { |path| File.expand_path(path) == exclude_from_load_path }" code << "$LOAD_PATH.delete_if { |path| File.expand_path(path) == exclude_from_load_path }"
end end
code << "$LOADED_FEATURES.delete_if { |feature| File.basename(feature, '.*') == '#{require_path}' }"
code << "require '#{require_path}.rb'" code << "require '#{require_path}.rb'"
code << "puts #{version_const}" code << "puts #{version_const}"
run code.join("; "), *groups run code.join("; "), *groups