From 9a89f325e436460c87e58a1b25009aad79f247df Mon Sep 17 00:00:00 2001 From: yugui Date: Mon, 31 Jan 2011 05:46:50 +0000 Subject: * lib/irb/locale.rb (IRB::Locale::#search_file): Gem might be undefined if --disable-gems. [ruby-core:34990] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/irb/locale.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/irb/locale.rb') diff --git a/lib/irb/locale.rb b/lib/irb/locale.rb index 142b9a5951..77cc06ed30 100644 --- a/lib/irb/locale.rb +++ b/lib/irb/locale.rb @@ -147,7 +147,7 @@ module IRB 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 -- cgit v1.2.3