riddle 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/riddle/controller.rb +1 -6
- metadata +1 -1
data/lib/riddle/controller.rb
CHANGED
@@ -12,14 +12,9 @@ module Riddle
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def sphinx_version
|
15
|
-
|
16
|
-
read, write = IO.pipe
|
17
|
-
$stderr.reopen(write)
|
18
|
-
`#{indexer}`[/^Sphinx (\d+\.\d+\.\d+)/, 1]
|
15
|
+
`#{indexer} 2>&1`[/^Sphinx (\d\.\d\.\d)/, 1]
|
19
16
|
rescue
|
20
17
|
nil
|
21
|
-
ensure
|
22
|
-
$stderr.reopen(stderr)
|
23
18
|
end
|
24
19
|
|
25
20
|
def index(*indexes)
|