sphinx 0.9.10.2043 → 0.9.10.2091

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,8 @@
1
1
  module Sphinx
2
2
  # Pack ints, floats, strings, and arrays to internal representation
3
3
  # needed by Sphinx search engine.
4
+ #
5
+ # @private
4
6
  class Request
5
7
  # Initialize new request.
6
8
  def initialize
@@ -1,6 +1,8 @@
1
1
  module Sphinx
2
2
  # Unpack internal Sphinx representation of ints, floats, strings, and arrays.
3
3
  # needed by Sphinx search engine.
4
+ #
5
+ # @private
4
6
  class Response
5
7
  # Initialize new request.
6
8
  def initialize(response)
data/lib/sphinx/server.rb CHANGED
@@ -1,3 +1,6 @@
1
+ # Represents an instance of searchd server.
2
+ #
3
+ # @private
1
4
  class Sphinx::Server
2
5
  # The host the Sphinx server is running on
3
6
  attr_reader :host
@@ -66,7 +69,7 @@ class Sphinx::Server
66
69
  error << "errno=#{e.class::Errno}, "
67
70
  end
68
71
  error << "msg=#{e.message})"
69
- raise SphinxConnectError, error
72
+ raise Sphinx::SphinxConnectError, error
70
73
  end
71
74
 
72
75
  # Closes previously opened socket.
@@ -17,7 +17,10 @@ module Sphinx
17
17
  require 'timeout'
18
18
  Timeout = ::Timeout
19
19
  end
20
-
20
+
21
+ # Executes specified block respecting timeout passed.
22
+ #
23
+ # @private
21
24
  def self.safe_execute(timeout = 5, &block)
22
25
  if timeout > 0
23
26
  Sphinx::Timeout.timeout(timeout, &block)
@@ -57,7 +57,7 @@ indexer
57
57
 
58
58
  searchd
59
59
  {
60
- port = 3312
60
+ port = 9312
61
61
  log = /opt/sphinx-0.9.9-id64/var/log/searchd.log
62
62
  query_log = /opt/sphinx-0.9.9-id64/var/log/query.log
63
63
  read_timeout = 5
@@ -57,7 +57,7 @@ indexer
57
57
 
58
58
  searchd
59
59
  {
60
- port = 3312
60
+ port = 9312
61
61
  log = /opt/sphinx-0.9.9/var/log/searchd.log
62
62
  query_log = /opt/sphinx-0.9.9/var/log/query.log
63
63
  read_timeout = 5
@@ -3,13 +3,15 @@ SQLyog Enterprise - MySQL GUI v5.20
3
3
  Host - 5.0.27-community-nt : Database - sphinx_test
4
4
  *********************************************************************
5
5
  Server version : 5.0.27-community-nt
6
- */
6
+ */
7
+
7
8
 
8
9
  SET NAMES utf8;
9
10
 
10
11
  SET SQL_MODE='';
11
12
 
12
- CREATE database IF NOT EXISTS `sphinx_test`;
13
+ DROP database `sphinx_test`;
14
+ CREATE database `sphinx_test`;
13
15
 
14
16
  USE `sphinx_test`;
15
17
 
data/sphinx.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{sphinx}
8
- s.version = "0.9.10.2043"
8
+ s.version = "0.9.10.2091"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Dmytro Shteflyuk"]
12
- s.date = %q{2009-11-16}
12
+ s.date = %q{2009-11-20}
13
13
  s.description = %q{An easy interface to Sphinx standalone full-text search engine. It is implemented as plugin for Ruby on Rails, but can be easily used as standalone library.}
14
14
  s.email = %q{kpumuk@kpumuk.info}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sphinx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.10.2043
4
+ version: 0.9.10.2091
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmytro Shteflyuk
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-16 00:00:00 +02:00
12
+ date: 2009-11-20 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies: []
15
15