CapnKernul/minitest-reporters — pull request #23 by armhold (2012-07-05 16:54:43+00:00)
Title: move ProgressBar class under MiniTest module

Hi,

I ran into a conflict using minitest-reporters because it pulls in ruby-progressbar, which defines a top-level class "ProgressBar". Since my project also depends on Sunspot, which depends on progress_bar, which also defines a top-level "ProgressBar" class, I had a collision.

I created this patch which effectively copies in the ProgressBar implementation from ruby-progressbar and namespaces it under the MiniTest module. I realize that this is a gross DRY violation via copy/paste. But consider that:

1. ruby-progressbar's github repo is 404. There are copies floating around, but I'm not sure if any are canonical.
2. The progress bar code is pretty fundamental to minitest-reporters; might make sense to make it a direct part of the lib anyway.

I'm new to Ruby, so feel free to tell me I've done something horrible, or tell me there's a Better Way, or ignore my patch altogether and I'll take no offense. :-)