ku1ik / rainbow

Ruby gem for colorizing printed text on ANSI terminals
MIT License
813 stars 68 forks source link

Fixed Windows support #3

Closed aef closed 13 years ago

aef commented 13 years ago

After rainbow didn't work on some of my Windows based ruby environments I started investigating. The major reason for the problem was that some of of the environments returned mingw32 instead of mswin32 because they are built in a minimal unix compatibility framework. Apart of that I think depending on the architecture the Windows system runs upon isn't really necessary most of the time, so i got rid of the 32 part. Finally, even though it seems JRuby currently doesn't seem to provide an windows ANSI library, JRuby's RUBY_PLATFORM always returns 'java'. Therefore the use of Config::CONFIG['host_os'] is highly recommended to be compatible with a wide range of Ruby implementations.

ku1ik commented 13 years ago

Merged, closing.