From 0067d1e2613e66745721016ad118878c1c641156 Mon Sep 17 00:00:00 2001 From: Alexandre Terrasa Date: Thu, 13 Jun 2024 09:43:01 -0400 Subject: [PATCH] Resolve to the right ERB Signed-off-by: Alexandre Terrasa --- lib/spoom/cli/deadcode.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spoom/cli/deadcode.rb b/lib/spoom/cli/deadcode.rb index 4901ee6d..c35cc04d 100644 --- a/lib/spoom/cli/deadcode.rb +++ b/lib/spoom/cli/deadcode.rb @@ -85,7 +85,7 @@ def deadcode(*paths) $stderr.puts "Indexing #{blue(files.size.to_s)} files..." files.each do |file| content = File.read(file) - content = ERB.new(content).src if file.end_with?(".erb") + content = Spoom::Deadcode::ERB.new(content).src if file.end_with?(".erb") tree = Spoom::Deadcode.parse_ruby(content, file: file) Spoom::Deadcode.index_node(index, tree, content, file: file, plugins: plugins)