class Riddle::AutoVersion def self.configure controller = Riddle::Controller.new nil, '' version = controller.sphinx_version case version when '0.9.8', '0.9.9' require "riddle/#{version}" when '1.10-beta' require 'riddle/1.10' end end end