Closed cobbr2 closed 4 years ago
Happy Birthday #215!
Happy New Year, @007 .
🍰
Happy New Year, @007. Happy 2nd birthday, #215 !
It's on my todo list to sort out ownership and maintenance of this repo - thanks for the ping to remind me to Just Get It Done. And happy birthday #215 indeed. 🍰
This PR fixes #214
Changes proposed in this pull request:
$stdout.tty?
to keep behavior the same as it was previouslyThe first commit uses
rainbow/refinements
to make the code as similar to thecolorize
version as possible, but that breaks Ruby-2.0.0 compatibility. Now uses Rainbow's "presenter" style to support all the versions currently configured in Travis.Using Rainbow introduces a risk for future maintainers: Rainbow colorizes based on a global setting. So if some additional output stream (e.g., a separate warnings output file) were added, and the color refinements were called on it, they would be enabled/disabled based on the same flag as the cli uses.