lib/packwerk/formatters/progress_formatter.rb in packwerk-2.2.0 vs lib/packwerk/formatters/progress_formatter.rb in packwerk-2.2.1
- old
+ new
@@ -18,13 +18,13 @@
files_size = target_files.size
files_string = "file".pluralize(files_size)
@out.puts("📦 Packwerk is inspecting #{files_size} #{files_string}")
end
- def started_validation
+ def started_validation(&block)
@out.puts("📦 Packwerk is running validation...")
- execution_time = Benchmark.realtime { yield }
+ execution_time = Benchmark.realtime(&block)
finished(execution_time)
@out.puts("✅ Packages are valid. Use `packwerk check` to run static checks.")
end