diff options
author | David RodrÃguez <[email protected]> | 2024-07-23 18:52:03 +0200 |
---|---|---|
committer | git <[email protected]> | 2024-07-30 14:01:43 +0000 |
commit | 1164b6a7baeddade88b9eb01c3ac00f83d2066c6 (patch) | |
tree | 33bbcf537524d17c7eacf6e72e5f4b0e2fa99e5f /lib | |
parent | 3d248b2eb3d2b10f9d2ddf614485ceb35089f924 (diff) |
[rubygems/rubygems] Fix `gem list` regression when a regular gem shadows a default one
Previously, if you have bundler installed both as a regular gem and a
default gem, the default gem would be displayed by `gem list`.
https://github.com/rubygems/rubygems/commit/10a6b1736e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rubygems/query_utils.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/query_utils.rb b/lib/rubygems/query_utils.rb index a95a759401..ea05969422 100644 --- a/lib/rubygems/query_utils.rb +++ b/lib/rubygems/query_utils.rb @@ -132,7 +132,7 @@ module Gem::QueryUtils version_matches = show_prereleases? || !s.version.prerelease? name_matches && version_matches - end + end.uniq(&:full_name) spec_tuples = specs.map do |spec| [spec.name_tuple, spec] |