diff options
author | Ellen Marie Dash <[email protected]> | 2025-03-25 18:19:56 -0400 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2025-03-27 13:57:25 +0900 |
commit | af594f5166538d6d7f5c21d26ed824f03730c61a (patch) | |
tree | 399f634ddfd9a34580433844642c25d9fdc58756 /lib/rubygems/commands | |
parent | 9f17a0c7cb4cef10e462fec6a80691b55144853a (diff) |
[rubygems/rubygems] Have "gem exec" sort executable names in error message.
This decouples `gem exec` behavior (and tests) from the sort order of
the gemspec.
https://github.com/rubygems/rubygems/commit/911cd29159
Diffstat (limited to 'lib/rubygems/commands')
-rw-r--r-- | lib/rubygems/commands/exec_command.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/commands/exec_command.rb b/lib/rubygems/commands/exec_command.rb index 82f1734b58..c24ebbf711 100644 --- a/lib/rubygems/commands/exec_command.rb +++ b/lib/rubygems/commands/exec_command.rb @@ -216,7 +216,7 @@ to the same gem path as user-installed gems. if spec.executables.size > 1 alert_error "Ambiguous which executable from gem `#{executable}` should be run: " \ - "the options are #{spec.executables}, specify one via COMMAND, and use `-g` and `-v` to specify gem and version" + "the options are #{spec.executables.sort}, specify one via COMMAND, and use `-g` and `-v` to specify gem and version" terminate_interaction 1 end |