mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
0b7969b6a3
Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net> Co-authored-by: Hiroshi SHIBATA <hsbt@ruby-lang.org>
19 lines
388 B
Ruby
19 lines
388 B
Ruby
begin
|
|
require 'rubygems'
|
|
rescue LoadError => e
|
|
raise unless e.path == 'rubygems'
|
|
|
|
warn "`RubyGems' were not loaded."
|
|
end if defined?(Gem)
|
|
|
|
begin
|
|
require 'error_highlight'
|
|
rescue LoadError
|
|
warn "`error_highlight' was not loaded."
|
|
end if defined?(ErrorHighlight)
|
|
|
|
begin
|
|
require 'did_you_mean'
|
|
rescue LoadError
|
|
warn "`did_you_mean' was not loaded."
|
|
end if defined?(DidYouMean)
|