Sha256: 0d22f97733dccb4c4e0a2ede8fe9a755ad6ef9f33e267535046385817ad68fb7

Contents?: true

Size: 724 Bytes

Versions: 26

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

26 entries across 26 versions & 7 rubygems

Version Path
DrMark-thinking-sphinx-1.1.14 vendor/riddle/lib/riddle.rb
DrMark-thinking-sphinx-1.1.15 vendor/riddle/lib/riddle.rb
DrMark-thinking-sphinx-1.1.6 vendor/riddle/lib/riddle.rb
dpickett-thinking-sphinx-1.1.12 vendor/riddle/lib/riddle.rb
dpickett-thinking-sphinx-1.1.4 vendor/riddle/lib/riddle.rb
freelancing-god-riddle-0.9.8.1533.4 lib/riddle.rb
freelancing-god-thinking-sphinx-1.1.10 vendor/riddle/lib/riddle.rb
freelancing-god-thinking-sphinx-1.1.11 vendor/riddle/lib/riddle.rb
freelancing-god-thinking-sphinx-1.1.12 vendor/riddle/lib/riddle.rb
freelancing-god-thinking-sphinx-1.1.14 vendor/riddle/lib/riddle.rb
freelancing-god-thinking-sphinx-1.1.15 vendor/riddle/lib/riddle.rb
freelancing-god-thinking-sphinx-1.1.16 vendor/riddle/lib/riddle.rb
freelancing-god-thinking-sphinx-1.1.17 vendor/riddle/lib/riddle.rb
freelancing-god-thinking-sphinx-1.1.4 vendor/riddle/lib/riddle.rb
freelancing-god-thinking-sphinx-1.1.5 vendor/riddle/lib/riddle.rb
freelancing-god-thinking-sphinx-1.1.6 vendor/riddle/lib/riddle.rb
freelancing-god-thinking-sphinx-1.1.7 vendor/riddle/lib/riddle.rb
freelancing-god-thinking-sphinx-1.1.8 vendor/riddle/lib/riddle.rb
freelancing-god-thinking-sphinx-1.1.9 vendor/riddle/lib/riddle.rb
lostboy-thinking-sphinx-1.1.5.1 vendor/riddle/lib/riddle.rb