diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-09 07:47:28 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-09 07:47:28 +0000 |
commit | cc3042a79303a293218eb900745db9c4a2118a52 (patch) | |
tree | 4ce93922728eba793601ea03a27b423a7cfe6999 /lib/rubygems | |
parent | 7469699dce3f33f8ef6c83ddd3fe65a1b0e730fc (diff) |
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
Diffstat (limited to 'lib/rubygems')
-rw-r--r-- | lib/rubygems/specification.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb index 8d35a0efcf..e387ada2b3 100644 --- a/lib/rubygems/specification.rb +++ b/lib/rubygems/specification.rb @@ -943,6 +943,7 @@ class Gem::Specification < Gem::BasicSpecification # -- wilsonb def self.all= specs + raise "nil spec!" if specs.any?(&:nil?) # TODO: remove once we're happy @@stubs_by_name = specs.group_by(&:name) @@all = @@stubs = specs end |