ruby/gem_prelude.rb
Vít Ondruch 55c9a95ac8 Don't fail when 'did_you_mean' is not available.
Although 'did_you_mean' is always available in upstream Ruby, it might
not be available when speed, memory, disk or network bandwidth is a
concern. This is typically the case for production environment, where
'did_you_mean' is of limited usage.

Also it might not be available optionally when Ruby is delivered via
packaging systems. E.g. Linux distributions.
2020-12-02 12:46:17 +09:00

6 lines
116 B
Ruby

require 'rubygems.rb' if defined?(Gem)
begin
require 'did_you_mean'
rescue LoadError
end if defined?(DidYouMean)