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

Use a less ambiguous separator for the version update suggestions #327

Merged

Conversation

andriusm
Copy link
Contributor

Suggesting a change to the separator of multiple patched versions in the Solution: line. The reason being that the output for some CVEs may look very misleading. An example case is this advisory which uses a comma in the suggested constraint of the gem version. Currently, this leads the auditor to print out this line:

Solution: upgrade to ~> 5.2.6, >= 5.2.6.2, ~> 6.0.4, >= 6.0.4.6, ~> 6.1.4, >= 6.1.4.6, >= 7.0.2.2

This may trick the reader into thinking that either one can be chosen when really the suggestions are joined using a comma making it harder to discern them. This change uses the word or as the separator which should be more obvious to the reader.

Solution: upgrade to ~> 5.2.6, >= 5.2.6.2 or ~> 6.0.4, >= 6.0.4.6 or ~> 6.1.4, >= 6.1.4.6 or >= 7.0.2.2

@andriusm
Copy link
Contributor Author

andriusm commented Mar 1, 2022

No acknowledgment for 2 weeks. Is it normal for this repo's contribution process?

@reedloden @postmodern

@postmodern postmodern merged commit 9cb6320 into rubysec:master Mar 1, 2022
Copy link
Member

@postmodern postmodern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@postmodern
Copy link
Member

Thoughts on also wrapping each patched version in quotes?

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.

None yet

2 participants