lib/require_bench.rb in require_bench-1.0.4.pre.alpha.4 vs lib/require_bench.rb in require_bench-1.0.4.pre.alpha.5
- old
+ new
@@ -106,11 +106,11 @@
Timeout.timeout(RequireBench::TIMEOUT) do
Kernel.send("#{type}_without_timing", file)
end
end
end
- PRINTER.p(seconds, file, short_type)
+ PRINTER.out_consume(seconds, file, short_type)
if prefix.nil? && (NO_GROUP_PATTERN.nil? || !NO_GROUP_PATTERN.match?(file))
# This results in grouping all files with the same leading path part (e.g. "models", or "lib")
# into the same timing bucket.
# requires that were fully qualified paths probably need to be identified
# by the full path
@@ -155,15 +155,15 @@
return send("#{type}_without_timing", file_path) if $require_bench_semaphore
short_type = type[0]
measure = RequireBench::INCLUDE_PATTERN && file_path.match?(RequireBench::INCLUDE_PATTERN)
skippy = RequireBench::SKIP_PATTERN && file_path.match?(RequireBench::SKIP_PATTERN)
- RequireBench::PRINTER.p(file, short_type) if RequireBench::LOG_START
+ RequireBench::PRINTER.out_start(file, short_type) if RequireBench::LOG_START
if RequireBench::RESCUED_CLASSES.any?
begin
_require_bench_file(type, measure, skippy, file_path)
rescue *RequireBench::RESCUED_CLASSES => e
- RequireBench::PRINTER.e(e, file, short_type)
+ RequireBench::PRINTER.out_error(e, file, short_type)
end
else
_require_bench_file(type, measure, skippy, file_path)
end
end