Sha256: 913001d6600273b964a924084a7cf2a1716273f261ee7c5d5161af68091fcb5a

Contents?: true

Size: 731 Bytes

Versions: 4

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 = 2
    
    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

4 entries across 4 versions & 1 rubygems

Version Path
hariton-thinking-sphinx-1.2.11.2 vendor/riddle/lib/riddle.rb
hariton-thinking-sphinx-1.2.11 vendor/riddle/lib/riddle.rb
hariton-thinking-sphinx-1.2.7.0 vendor/riddle/lib/riddle.rb
hariton-thinking-sphinx-1.2.7.1 vendor/riddle/lib/riddle.rb