Sha256: 14529f9c8664e7a337b9561fce59a18812c1d9970481c426baa5e21cd6bc9144
Contents?: true
Size: 407 Bytes
Versions: 1
Compression:
Stored size: 407 Bytes
Contents
# -*- ruby -*- # special thanks to Pat Eyler, Sean Carley, and Rob Sanheim module Autotest::RedGreen BAR = "=" * 80 Autotest.add_hook :ran_command do |at| output = at.results.join at.results.each do |line| line.gsub!(/^.* (\d+) failures, (\d+) errors$/) { |match| code = ($1 != "0" or $2 != "0") ? 31 : 32 "\e[#{code}m#{BAR}\n#{match}\e[0m\n\n" } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ZenTest-3.5.1 | lib/autotest/redgreen.rb |