Sha256: 344e4a852b7fe72e10fa21e787e9044e4cb87f86425db1de89d5dc3d1b0160c6
Contents?: true
Size: 880 Bytes
Versions: 4
Compression:
Stored size: 880 Bytes
Contents
module ThinkingSphinx class AutoVersion def self.detect version = ThinkingSphinx::Configuration.instance.version case version when '0.9.8', '0.9.9' require "riddle/#{version}" when /1.10/ require 'riddle/1.10' when /2.0.1/ require 'riddle/2.0.1' else documentation_link = %Q{ For more information, read the documentation: http://freelancing-god.github.com/ts/en/advanced_config.html } if version.nil? || version.empty? STDERR.puts %Q{ Sphinx cannot be found on your system. You may need to configure the following settings in your config/sphinx.yml file: * bin_path * searchd_binary_name * indexer_binary_name #{documentation_link} } else STDERR.puts %Q{ Unsupported version: #{version} #{documentation_link} } end end end end end
Version data entries
4 entries across 4 versions & 2 rubygems