Sha256: 08594e84738dd0747e813391ef05dd270a2cffa9928450c70a70242f4216d89b

Contents?: true

Size: 422 Bytes

Versions: 2

Compression:

Stored size: 422 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.[^12]/, /2.1.\d/, /2.2.\d/
      require 'riddle/2.1.0'
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
riddle-1.5.12 lib/riddle/auto_version.rb
riddle-1.5.11 lib/riddle/auto_version.rb