Tiny Ruby library: dots
May 11, 2009 - 1 Comment - ruby tools
I love tiny ideas which are well-executed and useful. How many times in a single lifetime will a developer write code to output a progress indicator from a long-running shell script? dots alleviates this once and for all while borrowing the Test::Unit style we all know and love.
Just write this:
And get this output over the course of about 50 seconds:
..................................................
Finished in 50.23425 seconds.
50 total, 50 passed, 0 failed, 0 erred
Simple to add to your code, and nice, familiar output to let you know that, yes, the script is still working (or at least doing something). :)
Kudos to Stephen Celis for sharing this with us! You can git it here: http://github.com/stephencelis/dots/tree/master

Chris Carpenter said:
I have Ruby on my computer. I use it to do stuff sometimes. I am very legit.