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