lib/ruote/log/test_logger.rb in ruote-2.1.6 vs lib/ruote/log/test_logger.rb in ruote-2.1.7
- old
+ new
@@ -146,10 +146,15 @@
elsif interest.is_a?(Fixnum)
interest = interest - 1
@waiting = [ @waiting.first, interest ]
+ #@debug ||= {}
+ #c = @debug[action] ||= 0
+ #@debug[action] = c+1
+ #p [ interest, @debug ]
+
(interest < 1)
else # wfid
%w[ terminated ceased error_intercepted ].include?(action) &&
@@ -192,9 +197,10 @@
# 46 Cyan
# 47 White
def color (mod, s, clear=false)
+ return s if Ruote::WIN
return s unless STDOUT.tty?
"[#{mod}m#{s}[0m#{clear ? '' : "[#{@color}m"}"
end