→ Ruby/ProgressBar: A Text Progress Bar Library for Ruby
This nice little Ruby library/gem/plugin is a great helper when you need to execute long running tasks from the terminal.
As the name suggests, it displays the progress of the task and even gives you an ETA for when it thinks it will be done.
Check their examples:
% irb --simple-prompt -r progressbar
>> pbar = ProgressBar.new("test", 100)
=> (ProgressBar: 0/100)
>> 100.times {sleep(0.1); pbar.inc}; pbar.finish
test: 100% |oooooooooooooooooooooooooooooooooooooooo| Time: 00:00:10
=> nil
>> pbar = ProgressBar.new("test", 100)
=> (ProgressBar: 0/100)
>> (1..100).each{|x| sleep(0.1); pbar.set(x)}; pbar.finish
test: 67% |oooooooooooooooooooooooooo | ETA: 00:00:03
I used it a lot for rake tasks that convert/import/export tons of data.