friendlyfashion-thinking-sphinx 2.0.13.2 → 2.0.13.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -424,24 +424,24 @@ module ThinkingSphinx
424
424
 
425
425
  begin
426
426
  retry_on_stale_index do
427
- begin
428
- retry_on_index_not_preread do
427
+ retry_on_index_not_preread do
428
+ begin
429
429
  log query do
430
430
  @results = client.query query, indexes, comment
431
431
  end
432
- end
433
- total = @results[:total_found].to_i
434
- log "Found #{total} result#{'s' unless total == 1}"
432
+ total = @results[:total_found].to_i
433
+ log "Found #{total} result#{'s' unless total == 1}"
435
434
 
436
- log "Sphinx Daemon returned warning: #{warning}" if warning?
435
+ log "Sphinx Daemon returned warning: #{warning}" if warning?
437
436
 
438
- if error?
439
- log "Sphinx Daemon returned error: #{error}"
440
- raise SphinxError.new(error, @results) unless options[:ignore_errors]
437
+ if error?
438
+ log "Sphinx Daemon returned error: #{error}"
439
+ raise SphinxError.new(error, @results) unless options[:ignore_errors]
440
+ end
441
+ rescue Errno::ECONNREFUSED => err
442
+ raise ThinkingSphinx::ConnectionError,
443
+ 'Connection to Sphinx Daemon (searchd) failed.'
441
444
  end
442
- rescue Errno::ECONNREFUSED => err
443
- raise ThinkingSphinx::ConnectionError,
444
- 'Connection to Sphinx Daemon (searchd) failed.'
445
445
  end
446
446
 
447
447
  compose_results
@@ -1,3 +1,3 @@
1
1
  module ThinkingSphinx
2
- Version = '2.0.13.2'
2
+ Version = '2.0.13.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: friendlyfashion-thinking-sphinx
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.13.2
4
+ version: 2.0.13.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-24 00:00:00.000000000 Z
12
+ date: 2012-10-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord