rt_sphinx 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,11 +3,11 @@
3
3
  module RtSphinx
4
4
  class Manager
5
5
  def self.start
6
- kill_daemon_if_needed
7
- puts `searchd`
6
+ stop
7
+ puts `searchd --config ./sphinx.conf`
8
8
  end
9
9
 
10
- def self.kill_daemon_if_needed
10
+ def self.stop
11
11
  `pid=$(lsof -i :9327 -t); if [ $pid ] ; then kill -TERM $pid || kill -KILL $pid; fi;`
12
12
  sleep(1)
13
13
  end
data/rt_sphinx.gemspec CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path('../lib', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'rt_sphinx'
6
- s.version = '0.0.6'
6
+ s.version = '0.0.7'
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.license = 'MIT'
9
9
  s.authors = ['Dmitry Koprov']
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rt_sphinx
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.6
5
+ version: 0.0.7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Dmitry Koprov