summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Rodríguez <[email protected]>2024-10-10 20:50:48 +0200
committergit <[email protected]>2024-10-14 14:51:20 +0000
commit57404e4369df11f77f089d5d11d310679b2e749f (patch)
treee13fd561a5ccd99c73e8feec83e1610b19ba2f27 /lib
parent1001ea9606fd9bbbce70deaab0e6a31c5af1a20c (diff)
[rubygems/rubygems] Fix duplicated specs when they have been previously activated
https://github.com/rubygems/rubygems/commit/b44bf2ac74
Diffstat (limited to 'lib')
-rw-r--r--lib/rubygems/specification_record.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/specification_record.rb b/lib/rubygems/specification_record.rb
index d838fcea26..195a355496 100644
--- a/lib/rubygems/specification_record.rb
+++ b/lib/rubygems/specification_record.rb
@@ -30,7 +30,7 @@ module Gem
# Returns the list of all specifications in the record
def all
- @all ||= Gem.loaded_specs.values + stubs.map(&:to_spec)
+ @all ||= stubs.map(&:to_spec)
end
##