diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-09 17:41:10 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-09 17:41:10 +0000 |
commit | 8972de9ff7fd8357b172b293b56ec9521d90151b (patch) | |
tree | eacbf5a63b1406833ebfe8d5f4708a23eddf7415 /lib/rubygems | |
parent | 99871095e6b94d4851daec10ccc601bd3b23316f (diff) | |
download | ruby-8972de9ff7fd8357b172b293b56ec9521d90151b.tar.gz |
dump stub specifications if nil
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems')
-rw-r--r-- | lib/rubygems/specification.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb index e387ada2b3..57f0429b56 100644 --- a/lib/rubygems/specification.rb +++ b/lib/rubygems/specification.rb @@ -723,6 +723,9 @@ class Gem::Specification < Gem::BasicSpecification def self._all # :nodoc: unless defined?(@@all) && @@all then @@all = stubs.map(&:to_spec) + if @@all.any?(&:nil?) # TODO: remove once we're happy + raise "nil spec! included in #{stubs.inspect}" + end # After a reset, make sure already loaded specs # are still marked as activated. |