Sha256: 3016fb2d96954c9e3e00edb3a6db2921632d46400c074dc88e260b59b350b7b5
Contents?: true
Size: 1.16 KB
Versions: 2
Compression:
Stored size: 1.16 KB
Contents
require 'socket' require 'timeout' module Riddle #:nodoc: @@mutex = Mutex.new @@escape_pattern = /[\(\)\|\-!@~"&\/]/ class ConnectionError < StandardError #:nodoc: # end def self.mutex @@mutex end def self.escape_pattern @@escape_pattern end def self.escape_pattern=(pattern) mutex.synchronize do @@escape_pattern = pattern end end def self.escape(string) string.gsub(escape_pattern) { |char| "\\#{char}" } end def self.loaded_version @@sphinx_version end def self.loaded_version=(version) @@sphinx_version = version end def self.version_warning return if loaded_version STDERR.puts %Q{ Riddle cannot detect Sphinx on your machine, and so can't determine which version of Sphinx you are planning on using. Please use one of the following lines after "require 'riddle'" to avoid this warning. require 'riddle/0.9.8' # or require 'riddle/0.9.9' # or require 'riddle/1.10' } end end require 'riddle/auto_version' require 'riddle/client' require 'riddle/configuration' require 'riddle/controller' Riddle.loaded_version = nil Riddle::AutoVersion.configure
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
riddle-1.3.2 | lib/riddle.rb |
riddle-1.3.1 | lib/riddle.rb |