From 7310d7a0a5b1d5b15e4ee2f434e2f6c595cc7768 Mon Sep 17 00:00:00 2001 From: Peter Vandenberk Date: Sat, 7 Dec 2024 17:02:21 +0000 Subject: [PATCH] Use `$LOADED_FEATURES` built-in instead of `$"` --- lib/rake/application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rake/application.rb b/lib/rake/application.rb index 33ca872dd..b1b780a23 100644 --- a/lib/rake/application.rb +++ b/lib/rake/application.rb @@ -691,7 +691,7 @@ def handle_options(argv) # :nodoc: # Similar to the regular Ruby +require+ command, but will check # for *.rake files in addition to *.rb files. - def rake_require(file_name, paths=$LOAD_PATH, loaded=$") # :nodoc: + def rake_require(file_name, paths=$LOAD_PATH, loaded=$LOADED_FEATURES) # :nodoc: fn = file_name + ".rake" return false if loaded.include?(fn) paths.each do |path|