2 def self.discover_extensions
3 if defined?(::Gem) && ::Gem.respond_to?(:find_files)
4 files = ::Gem.find_files('arjdbc/discover')
6 files = $LOAD_PATH.map do |p|
7 discover = File.join(p, 'arjdbc','discover.rb')
8 File.exist?(discover) ? discover : nil
12 puts "Loading #{f}" if $DEBUG