summaryrefslogtreecommitdiff
path: root/gem_prelude.rb
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-09 07:57:31 (GMT)
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-09 07:57:31 (GMT)
commit40f304e025dbaeb954e2c324836ab4cf23f12053 (patch)
tree027859c0cf4423991ea9aa7cbb89f6a78f39faee /gem_prelude.rb
parentabd5b8e1db39b9d3714fb491013ff8a156dcdf27 (diff)
* ruby.c (usage, enable_option, disable_option, process_options): new
option `--disable_did_you_mean`. * gem_prelude.rb: now requires did_you_mean gem by default if available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gem_prelude.rb')
-rw-r--r--gem_prelude.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/gem_prelude.rb b/gem_prelude.rb
index 3d4516f..3f171d1 100644
--- a/gem_prelude.rb
+++ b/gem_prelude.rb
@@ -1 +1,7 @@
-require 'rubygems.rb' if defined?(Gem)
+if defined?(Gem)
+ require 'rubygems.rb'
+ begin
+ require 'did_you_mean'
+ rescue LoadError
+ end if defined?(DidYouMean)
+end