summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-03-28 13:40:53 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-03-28 13:40:53 +0000
commit4ed5cda95148e2a355fb916f21f06e529bf375a2 (patch)
treea9e5d474f922e27de69f386e42ea209cc85d12c1 /lib
parent03a7970e953df23ce4b6c4debb5e2cfe1182dc21 (diff)
merges r30741 from trunk into ruby_1_9_2.
-- * 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/branches/ruby_1_9_2@31201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/irb/locale.rb2
1 files changed, 1 insertions, 1 deletions
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