Sha256: db095113279e56f31118276f75e542e1b411a292eadee0dbcedbae13e2c06027

Contents?: true

Size: 417 Bytes

Versions: 1

Compression:

Stored size: 417 Bytes

Contents

class Riddle::AutoVersion
  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'
    when /2.0.3/, /2.0.4/, /2.1.\d/
      require 'riddle/2.1.0'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
riddle-1.5.2 lib/riddle/auto_version.rb