RSpec 1.1.2, --colour and Windows

Hello RSpec’ers :slight_smile:

In reply to this message:

http://rubyforge.org/pipermail/rspec-users/2008-January/005477.html

I provided a patch against CURRENT for fixing the latest issue
introduced in 1.1.2 regarding colour and Windows.

http://rspec.lighthouseapp.com/projects/5645/tickets/244-no-coloured-output-on-windows-due-missing-rubyopt

just-warn-about-windows-no-colour.patch

The patch just warn the user about the lack of win32console gem (prior
trying to load rubygems) and then revert the color decision to false
to avoid garbled output.

Since I lack the time to recreate all the scenario (pre_commit and
everything) to run the specs, I assume will not affect any other place
(since is just for windows).

This fix problems when using rake tasks, script/spec and ‘spec’ script
installed by rubygems.

Looking forward for this made into the next version.

Regards,


Luis L.
Multimedia systems

A common mistake that people make when trying to design
something completely foolproof is to underestimate
the ingenuity of complete fools.
Douglas Adams