Files
news.gitea.happylizard.me/bin/gems/facets-3.1.0/lib/standard/facets/load_monitor.rb
T
pizza2d1 4cee170d66
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9s
Add bin and edit workflow
2026-09-16 13:11:16 -06:00

27 lines
654 B
Ruby

module ::Kernel
class << self
alias_method :require_without_monitor, :require
alias_method :load_without_monitor, :load
end
alias_method :require_without_monitor, :require
alias_method :load_without_monitor, :load
# Require script and print what is being require.
def require(file)
$stderr.puts "monitor require: #{file}\n#{caller.inspect}\n\n"
require_without_monitor(file)
end
module_function :require
# Load script and print what is being loaded.
def load(file, wrap=false)
$stderr.puts "monitor load: #{file}\n#{caller.inspect}\n\n"
load_without_monitor(file, wrap)
end
module_function :load
end