Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Fix colorize stream target #22

Merged
merged 1 commit into from
Feb 16, 2017
Merged

Fix colorize stream target #22

merged 1 commit into from
Feb 16, 2017

Conversation

straight-shoota
Copy link
Contributor

Colorize's surround method uses STDOUT by default, if command's output is a different IO, then ANSI escape codes would still be printed to STDOUT and contents to @output.

Includes updated spec helper capture_lines wich calls uncolorize by default.
Updates Webmock to latest version c673f393 because specs would not run with old version.

Includes updated spec helper capture_lines wich calls uncolorize by default.
Updates Webmock to latest version c673f393
@porras
Copy link
Owner

porras commented Feb 15, 2017

Thanks! I'll give it a quick review and merge it ASAP

@porras porras self-assigned this Feb 15, 2017
@porras porras merged commit d209e42 into porras:master Feb 16, 2017
@porras
Copy link
Owner

porras commented Feb 16, 2017

Good catch! While it didn't cause any real issue because only STDOUT is supported, the bug was there waiting for a -o / --output option to be implemented to show up, so thank you!

@straight-shoota
Copy link
Contributor Author

Your welcome. I was just browsing through some crystal code to get to know the language a bit better and happend to notice a possible error.

If crystal-lang/crystal#3925 gets merged, there might be some changes how colorize works. But there's a spec now ;)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants