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

Comments

The Web is collaborative. Isn't it great?

6af32b5bc70b13b629581509d9833e57?s=50

Chris Carpenter said:

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

Say Your Peace

Textile is allowed. Be polite. Be rude. I don't really give a fuck.

Your email will be kept safe and will never be publicly displayed.

 

Wha...?

11611e595f8866809b075a8e718e7600

Chris Vincent is a 20-something drummer, producer, and engineer from the Bay Area. This is where he writes whatever the hell he wants whenever the hell he wants to write it. Check your expectations at the home page.

Obligatory tag cloud

me san francisco bicycling ruby tdd css tools iphone games rails facebooker queue facebooker facebook arduino activerecord sql css tools development process company culture spam akismet bluepill god

Recent posts

Feed me

Atom is cool.

Get in touch

Questions, comments, ideas?
Let's talk.

Unabashed self-promotion

Recommend Me