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

ruby-changes:18715

From: yugui <ko1@a...>
Date: Mon, 31 Jan 2011 14:48:58 +0900 (JST)
Subject: [ruby-changes:18715] Ruby:r30741 (trunk): * lib/irb/locale.rb (IRB::Locale::#search_file):

yugui	2011-01-31 14:46:50 +0900 (Mon, 31 Jan 2011)

  New Revision: 30741

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

  Log:
    * lib/irb/locale.rb (IRB::Locale::#search_file):
      Gem might be undefined if --disable-gems. [ruby-core:34990]

  Modified files:
    trunk/ChangeLog
    trunk/lib/irb/locale.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 30740)
+++ ChangeLog	(revision 30741)
@@ -1,3 +1,8 @@
+Mon Jan 31 14:45:47 2011  Yuki Sonoda (Yugui)  <yugui@y...>
+
+	* lib/irb/locale.rb (IRB::Locale::#search_file):
+	  Gem might be undefined if --disable-gems. [ruby-core:34990]
+
 Mon Jan 31 12:26:14 2011  NARUSE, Yui  <naruse@r...>
 
 	* addr2line.c: suppressed shorten-64-to-32 warnings.
Index: lib/irb/locale.rb
===================================================================
--- lib/irb/locale.rb	(revision 30740)
+++ lib/irb/locale.rb	(revision 30741)
@@ -147,7 +147,7 @@
           full_path = File.join(libpath, lc_path)
           return full_path if File.readable?(full_path)
         end
-        redo if Gem.try_activate(lc_path)
+        redo if defined?(Gem) and Gem.try_activate(lc_path)
       end
       nil
     end

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

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