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.
- data/.gitignore +2 -0
- data/README.rdoc +172 -18
- data/Rakefile +24 -15
- data/VERSION.yml +1 -1
- data/lib/sphinx.rb +15 -3
- data/lib/sphinx/buffered_io.rb +4 -0
- data/lib/sphinx/client.rb +1472 -666
- data/lib/sphinx/request.rb +2 -0
- data/lib/sphinx/response.rb +2 -0
- data/lib/sphinx/server.rb +4 -1
- data/lib/sphinx/timeout.rb +4 -1
- data/spec/sphinx/sphinx-id64.conf +1 -1
- data/spec/sphinx/sphinx.conf +1 -1
- data/spec/sphinx/sphinx_test.sql +4 -2
- data/sphinx.gemspec +2 -2
- metadata +2 -2
data/lib/sphinx/request.rb
CHANGED
data/lib/sphinx/response.rb
CHANGED
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.
|
data/lib/sphinx/timeout.rb
CHANGED
@@ -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)
|
data/spec/sphinx/sphinx.conf
CHANGED
data/spec/sphinx/sphinx_test.sql
CHANGED
@@ -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
|
-
|
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.
|
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-
|
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.
|
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-
|
12
|
+
date: 2009-11-20 00:00:00 +02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|