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 | df592c754d7b4006e26d3a53309f5457baf501d0 (patch) | |
tree | 4ce93922728eba793601ea03a27b423a7cfe6999 | |
parent | 177f6d7839dfb64df19260d384cc28cab87c1077 (diff) | |
download | ruby-df592c754d7b4006e26d3a53309f5457baf501d0.tar.gz |
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
-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 |