Sha256: 5e5c78180c596bfd27238ea864ef3e4158004a62e2cd80e2e3394ed73913b8ee

Contents?: true

Size: 1.52 KB

Versions: 1

Compression:

Stored size: 1.52 KB

Contents

# Sphinx Client API
#
# Author::    Dmytro Shteflyuk <mailto:kpumuk@kpumuk.info>.
# Copyright:: Copyright (c) 2006 — 2009 Dmytro Shteflyuk
# License::   Distributes under the same terms as Ruby
# Version::   0.9.10-r2122
# Website::   http://kpumuk.info/projects/ror-plugins/sphinx
# Sources::   http://github.com/kpumuk/sphinx
#
# This library is distributed under the terms of the Ruby license.
# You can freely distribute/modify this library.
#
module Sphinx
  VERSION = begin
    config = YAML.load(File.read(File.dirname(__FILE__) + '/../VERSION.yml'))
    "#{config[:major]}.#{config[:minor]}.#{config[:patch]}.#{config[:build]}"
  end

  # Base class for all Sphinx errors
  class SphinxError < StandardError; end

  # Connect error occurred on the API side.
  class SphinxConnectError < SphinxError; end

  # Request error occurred on the API side.
  class SphinxResponseError < SphinxError; end

  # Internal error occurred inside searchd.
  class SphinxInternalError < SphinxError; end

  # Temporary error occurred inside searchd.
  class SphinxTemporaryError < SphinxError; end

  # Unknown error occurred inside searchd.
  class SphinxUnknownError < SphinxError; end
end

require 'net/protocol'
require 'socket'
require 'zlib'

path = File.dirname(__FILE__)
require "#{path}/sphinx/constants"
require "#{path}/sphinx/indifferent_access"
require "#{path}/sphinx/request"
require "#{path}/sphinx/response"
require "#{path}/sphinx/timeout"
require "#{path}/sphinx/buffered_io"
require "#{path}/sphinx/server"
require "#{path}/sphinx/client"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sphinx-0.9.10.2122 lib/sphinx.rb