hawkerb-thinking-sphinx 1.3.16 → 1.3.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/thinking_sphinx/tasks.rb +11 -1
  3. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.16
1
+ 1.3.17
@@ -47,7 +47,17 @@ namespace :thinking_sphinx do
47
47
  config = ThinkingSphinx::Configuration.instance
48
48
  pid = sphinx_pid
49
49
  config.controller.stop
50
- puts "Stopped search daemon (pid #{pid})."
50
+ begin
51
+ Timeout.timeout 5 do
52
+ while sphinx_running?
53
+ sleep 0.01
54
+ end
55
+ end
56
+ rescue Timeout::Error
57
+ puts "Could not stop sphinx (pid #{pid})!"
58
+ else
59
+ puts "Stopped search daemon (pid #{pid})."
60
+ end
51
61
  end
52
62
  end
53
63
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hawkerb-thinking-sphinx
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.16
4
+ version: 1.3.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pat Allan
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2010-01-20 00:00:00 +01:00
13
+ date: 2010-01-29 00:00:00 +01:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency