Skip to content
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

Respect the updated NO_COLOR specification #796

Merged
merged 2 commits into from
Aug 10, 2022
Merged

Respect the updated NO_COLOR specification #796

merged 2 commits into from
Aug 10, 2022

Conversation

coderjoe
Copy link
Contributor

@coderjoe coderjoe commented Aug 7, 2022

Since implementation the NO_COLOR specification has changed. Previously
if NO_COLOR was set in the environment it should be respected regardless
of value. In the new updated specification NO_COLOR should only be
respected if set to any non-empty string.

See this comment thread on the original commit for more information.
21e6568#r80414525

Fixes #795

coderjoe referenced this pull request Aug 7, 2022
Respect the declaration of the of the NO_COLOR environment variable as a sign
that color output should be suppressed in he tool. This informal
standard is described at https://no-color.org
Since implementation the NO_COLOR specification has changed. Previously
if NO_COLOR was set in the environment it should be respected regardless
of value. In the new updated specification NO_COLOR should only be
respected if set to any non-empty string.

See this comment thread on the original commit for more information.
21e6568#r80414525

Fixes #795
New versions of webmock released within the last month have adopted the
ruby 2.4 method invocation syntax of &. but the tested ruby versions do
not support it.

This commit resolves the problem by conditionally bundling either the
older version of webmock or newer versions based on the current ruby
version.
@rafaelfranca
Copy link
Member

I think it is fine to merge this. I'll make sure this is included in the changelog.

@rafaelfranca rafaelfranca merged commit e4907fd into rails:main Aug 10, 2022
@coderjoe
Copy link
Contributor Author

Thank you very much for your help @rafaelfranca :)

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

Successfully merging this pull request may close these issues.

Update thor's implementation of the NO_COLOR spec to match the updated specification.
2 participants