1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Add one more guard to avoid mixing nil into latest_specs

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2017-05-09 07:47:28 +00:00
parent 7469699dce
commit cc3042a793

View file

@ -943,6 +943,7 @@ class Gem::Specification < Gem::BasicSpecification
# -- wilsonb # -- wilsonb
def self.all= specs def self.all= specs
raise "nil spec!" if specs.any?(&:nil?) # TODO: remove once we're happy
@@stubs_by_name = specs.group_by(&:name) @@stubs_by_name = specs.group_by(&:name)
@@all = @@stubs = specs @@all = @@stubs = specs
end end