Skip to content

Respect the updated NO_COLOR specification#796

Merged
rafaelfranca merged 2 commits into
rails:mainfrom
coderjoe:respect.changed.env.no_color
Aug 10, 2022
Merged

Respect the updated NO_COLOR specification#796
rafaelfranca merged 2 commits into
rails:mainfrom
coderjoe:respect.changed.env.no_color

Conversation

@coderjoe

@coderjoe coderjoe commented Aug 7, 2022

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
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