Skip to content

Conversation

@mattbrictson
Copy link
Owner

Until now update-interactive has been displaying gems exactly as they are emitted by Bundler, without any explicit sorting. Since Bundler's output and lock file are generally sorted alphabetically, this works out fine. However, this is more of a coincidence than a guarantee.

This PR makes the desired behavior explicit by sorting the names of gems when rendering the multi-select menu, with a corresponding unit test.

@mattbrictson mattbrictson added the 🐛 Bug Fix Fixes a bug label Nov 29, 2024
@mattbrictson mattbrictson changed the title Ensure gems are shown sorted, regardless of Bundler output Ensure gem list is sorted, regardless of Bundler output Nov 29, 2024
@mattbrictson mattbrictson merged commit 9234776 into main Nov 29, 2024
8 checks passed
@mattbrictson mattbrictson deleted the features/sort branch November 29, 2024 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛 Bug Fix Fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants