summaryrefslogtreecommitdiff
path: root/gem_prelude.rb
blob: f382021ca3d933316e7cddb502c1e6bcdc0e5f30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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)

begin
  require 'syntax_suggest/core_ext'
rescue LoadError
  warn "`syntax_suggest' was not loaded."
end if defined?(SyntaxSuggest)