Class: Riddle::AutoVersion
- Inherits:
-
Object
- Object
- Riddle::AutoVersion
- Defined in:
- lib/riddle/auto_version.rb
Class Method Summary collapse
Class Method Details
.configure ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/riddle/auto_version.rb', line 4 def self.configure controller = Riddle::Controller.new nil, '' version = ENV['SPHINX_VERSION'] || controller.sphinx_version case version when '0.9.8', '0.9.9' require "riddle/#{version}" when /1.10/ require 'riddle/1.10' when /2.0.[12]/ require 'riddle/2.0.1' else require 'riddle/2.1.0' end end |