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

ruby-changes:38110

From: nobu <ko1@a...>
Date: Thu, 9 Apr 2015 15:07:10 +0900 (JST)
Subject: [ruby-changes:38110] nobu:r50191 (trunk): ignore rake load error

nobu	2015-04-09 15:06:56 +0900 (Thu, 09 Apr 2015)

  New Revision: 50191

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

  Log:
    ignore rake load error
    
    rake is not available until installation now, so skip rake
    packagetask even if it cannot load until it is actually needed.

  Modified files:
    trunk/lib/rubygems/test_case.rb
Index: lib/rubygems/test_case.rb
===================================================================
--- lib/rubygems/test_case.rb	(revision 50190)
+++ lib/rubygems/test_case.rb	(revision 50191)
@@ -1439,7 +1439,10 @@ begin https://github.com/ruby/ruby/blob/trunk/lib/rubygems/test_case.rb#L1439
 rescue Gem::LoadError
 end
 
-require 'rake/packagetask'
+begin
+  require 'rake/packagetask'
+rescue LoadError
+end
 
 begin
   gem 'rdoc'

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

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