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:
parent
7469699dce
commit
cc3042a793
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue