[前][次][番号順一覧][スレッド一覧]

ruby-changes:46521

From: naruse <ko1@a...>
Date: Wed, 10 May 2017 02:41:15 +0900 (JST)
Subject: [ruby-changes:46521] naruse:r58642 (trunk): dump stub specifications if nil

naruse	2017-05-10 02:41:10 +0900 (Wed, 10 May 2017)

  New Revision: 58642

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58642

  Log:
    dump stub specifications if nil

  Modified files:
    trunk/lib/rubygems/specification.rb
Index: lib/rubygems/specification.rb
===================================================================
--- lib/rubygems/specification.rb	(revision 58641)
+++ lib/rubygems/specification.rb	(revision 58642)
@@ -723,6 +723,9 @@ class Gem::Specification < Gem::BasicSpe https://github.com/ruby/ruby/blob/trunk/lib/rubygems/specification.rb#L723
   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.

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]