lib/eye/controller/show_history.rb in eye-0.3 vs lib/eye/controller/show_history.rb in eye-0.3.1
- old
+ new
@@ -37,10 +37,10 @@
return if history.empty?
res = "\033[1m#{name}\033[0m:\n"
history = history.reverse
- history.chunk{|h| [h[:state], h[:reason]] }.each do |_, hist|
+ history.chunk{|h| [h[:state], h[:reason].to_s] }.each do |_, hist|
if hist.size >= 3
res << detail_process_info_string(hist[0])
res << detail_process_info_string(:state => "... #{hist.size - 2} times", :reason => '...', :at => hist[-1][:at])
res << detail_process_info_string(hist[-1])
else
\ No newline at end of file