Skip to content

Commit 714456b

Browse files
authored
Fixed bug with erb files not being processed in a directory (#14)
1 parent 37b0299 commit 714456b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ruby_ast_gen.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def self.process_directory(dir_path, output_dir, exclude_regex, max_threads = 10
8787
queue = Queue.new
8888

8989
Dir.glob("#{dir_path}/**/*").each do |path|
90-
next unless File.file?(path) && ruby_file?(path)
90+
next unless File.file?(path) && (ruby_file?(path) || erb_file?(path))
9191
relative_dir = path.sub("#{dir_path}/", '')
9292
next if exclude_regex.match?(relative_dir)
9393

0 commit comments

Comments
 (0)