Sha256: f53fce1b972bc6c63866c1a850906a62bf24c4486bfdf96c8b8b909893e73633

Contents?: true

Size: 731 Bytes

Versions: 3

Compression:

Stored size: 731 Bytes

Contents

require 'socket'
require 'timeout'

require 'riddle/client'
require 'riddle/configuration'
require 'riddle/controller'

module Riddle #:nodoc:
  class ConnectionError < StandardError #:nodoc:
  end
  
  module Version #:nodoc:
    Major   = 0
    Minor   = 9
    Tiny    = 9
    # Revision number for RubyForge's sake, taken from what Sphinx
    # outputs to the command line.
    Rev     = 1785
    # Release number to mark my own fixes, beyond feature parity with
    # Sphinx itself.
    Release = 6
    
    String      = [Major, Minor, Tiny].join('.')
    GemVersion  = [Major, Minor, Tiny, Rev, Release].join('.')
  end
  
  def self.escape(string)
    string.gsub(/[\(\)\|\-!@~"&\/\\\^\$=]/) { |char| "\\#{char}" }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
thinking-sphinx-099-1.3.0 vendor/riddle/lib/riddle.rb
thinking-sphinx-099-1.2.13 vendor/riddle/lib/riddle.rb
thinking-sphinx-099-1.2.12 vendor/riddle/lib/riddle.rb