-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validate on all pod commands that the user is using a terminal in utf-8 #1570
Conversation
Great! Some questions:
|
|
Is that since the introduction of the new style tool? Although a quick look through the sources does not seem to indicate they are being used in any |
@alloy Actually you're right. I prefer to use the parenthesis though when there is more than one condition tested (i.e. a logic operator is used like |
Btw, @kapin don't forget about the changelog 😄 |
@irrationalfab of course. Could you help me look into why travis is breaking? It appears that one of the builders is not using utf-8 encoding :) |
@kapin ah, it looks like your deduction is correct. You could further investigate it with a test commit :-/ it by printing the value of |
@irrationalfab, fair enough on that point. I'll convert it to a warning. |
👍 |
Updated copy as well to be a little bit more useful.
Wasn't sure the best way of doing the yellow so I improvised. I know we do it elsewhere but I didn't want to start pulling in dependencies all over the place. Once again copy is up for debate but it is better than last time. |
@kapin In this specific case, as it would not be appropriate to import dependencies, as you say, I use a solution similar to yours. However instead of monkey patching the string class (with the same method that later on will be overridden by the puts "\e[33mWARNING: blah blah.\e[0m" |
Aceness looks great to me! |
@irrationalfab merge as is or would you prefer I squash? |
As a general rule we prioritize getting things done on keeping a clean history. However in this case I think that a nice squash would be sweet. |
@irrationalfab closing this and going to open a squashed one and merge it. |
@kapin Actually I was wrong :-/ the recommendation, which sounds reasonable to me, from the Ruby Style Guide is:
|
When finished this should fix #1542. I'm not sure if this is the best way to handle this and what to do with the 1.8.7 case but I think it's a start at least.