2019-12-18 14:55:25 +01:00
|
|
|
begin
|
2020-12-02 13:32:43 +09:00
|
|
|
require 'rubygems'
|
2021-08-08 23:15:40 +10:00
|
|
|
rescue LoadError => e
|
|
|
|
raise unless e.path == 'rubygems'
|
|
|
|
|
2019-12-18 15:03:38 +01:00
|
|
|
warn "`RubyGems' were not loaded."
|
2019-12-18 14:55:25 +01:00
|
|
|
end if defined?(Gem)
|
2019-12-18 14:29:17 +01:00
|
|
|
|
2021-06-18 17:11:39 +09:00
|
|
|
begin
|
2021-06-28 13:27:35 +09:00
|
|
|
require 'error_highlight'
|
2021-06-18 17:11:39 +09:00
|
|
|
rescue LoadError
|
2021-06-28 13:27:35 +09:00
|
|
|
warn "`error_highlight' was not loaded."
|
|
|
|
end if defined?(ErrorHighlight)
|
2021-06-18 17:11:39 +09:00
|
|
|
|
2019-12-18 14:29:17 +01:00
|
|
|
begin
|
|
|
|
require 'did_you_mean'
|
|
|
|
rescue LoadError
|
2019-12-18 15:02:31 +01:00
|
|
|
warn "`did_you_mean' was not loaded."
|
2019-12-18 14:29:17 +01:00
|
|
|
end if defined?(DidYouMean)
|