diff options
| author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2024-09-26 11:22:19 +0200 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2024-09-30 05:07:57 +0000 |
| commit | d4ac5c573b3b57dc4e62b684be297269defceba2 (patch) | |
| tree | 406f2521573f340130e2322fecef382b7ac37c4f /lib | |
| parent | 73d60df6e015d20b418d6307965251cbaec18e68 (diff) | |
[rubygems/rubygems] Don't add duplicated specs to unresolved specs
This could happen when a regular gem shadows a default gem.
https://github.com/rubygems/rubygems/commit/9ef70dd1f7
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/rubygems/specification.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb index d05df9cf04..e5541e57b1 100644 --- a/lib/rubygems/specification.rb +++ b/lib/rubygems/specification.rb @@ -1412,7 +1412,7 @@ class Gem::Specification < Gem::BasicSpecification end begin - specs = spec_dep.to_specs + specs = spec_dep.to_specs.uniq(&:full_name) rescue Gem::MissingSpecError => e raise Gem::MissingSpecError.new(e.name, e.requirement, "at: #{spec_file}") end |
