Sha256: e45ec120d55f02ee98662ee86ed72c8cca3884e8ea1427351f0077b1dc9e3b27

Contents?: true

Size: 724 Bytes

Versions: 17

Compression:

Stored size: 724 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    = 8
    # Revision number for RubyForge's sake, taken from what Sphinx
    # outputs to the command line.
    Rev     = 1533
    # Release number to mark my own fixes, beyond feature parity with
    # Sphinx itself.
    Release = 7
    
    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

17 entries across 17 versions & 7 rubygems

Version Path
DrMark-thinking-sphinx-1.2.5 vendor/riddle/lib/riddle.rb
DrMark-thinking-sphinx-1.2.6 vendor/riddle/lib/riddle.rb
bterlson-thinking-sphinx-1.2.8 vendor/riddle/lib/riddle.rb
ebeigarts-thinking-sphinx-1.2.10 vendor/riddle/lib/riddle.rb
factorylabs-thinking-sphinx-1.2.7 vendor/riddle/lib/riddle.rb
freelancing-god-riddle-0.9.8.1533.7 lib/riddle.rb
freelancing-god-thinking-sphinx-1.2.10 vendor/riddle/lib/riddle.rb
freelancing-god-thinking-sphinx-1.2.11 vendor/riddle/lib/riddle.rb
freelancing-god-thinking-sphinx-1.2.2 vendor/riddle/lib/riddle.rb
freelancing-god-thinking-sphinx-1.2.3 vendor/riddle/lib/riddle.rb
freelancing-god-thinking-sphinx-1.2.4 vendor/riddle/lib/riddle.rb
freelancing-god-thinking-sphinx-1.2.5 vendor/riddle/lib/riddle.rb
freelancing-god-thinking-sphinx-1.2.6 vendor/riddle/lib/riddle.rb
freelancing-god-thinking-sphinx-1.2.7 vendor/riddle/lib/riddle.rb
freelancing-god-thinking-sphinx-1.2.8 vendor/riddle/lib/riddle.rb
freelancing-god-thinking-sphinx-1.2.9 vendor/riddle/lib/riddle.rb
moneypools-thinking-sphinx-1.2.11 vendor/riddle/lib/riddle.rb