yoomee-mongosphinx 0.1.8 → 0.1.9

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.
Files changed (2) hide show
  1. data/lib/mongo_sphinx/tasks.rb +5 -5
  2. metadata +4 -4
@@ -22,7 +22,7 @@ namespace :mongo_sphinx do
22
22
 
23
23
  desc "Stop if running, then start a Sphinx searchd daemon using Mongo Sphinx's settings"
24
24
  task :running_start => :app_env do
25
- Rake::Task["mongo_sphinx:stop"].invoke if sphinx_running?
25
+ Rake::Task["mongo_sphinx:stop"].invoke if MongoSphinx.sphinx_running?
26
26
  Rake::Task["mongo_sphinx:start"].invoke
27
27
  end
28
28
 
@@ -31,13 +31,13 @@ namespace :mongo_sphinx do
31
31
  config = MongoSphinx::Configuration.instance
32
32
 
33
33
  FileUtils.mkdir_p config.searchd_file_path
34
- raise RuntimeError, "searchd is already running." if sphinx_running?
34
+ raise RuntimeError, "searchd is already running." if MongoSphinx.sphinx_running?
35
35
 
36
36
  Dir["#{config.searchd_file_path}/*.spl"].each { |file| File.delete(file) }
37
37
 
38
38
  config.controller.start
39
39
 
40
- if sphinx_running?
40
+ if MongoSphinx.sphinx_running?
41
41
  puts "Started successfully (pid #{sphinx_pid})."
42
42
  else
43
43
  puts "Failed to start searchd daemon. Check #{config.searchd_log_file}"
@@ -46,7 +46,7 @@ namespace :mongo_sphinx do
46
46
 
47
47
  desc "Stop Sphinx using Mongo Sphinx's settings"
48
48
  task :stop => :app_env do
49
- unless sphinx_running?
49
+ unless MongoSphinx.sphinx_running?
50
50
  puts "searchd is not running"
51
51
  else
52
52
  config = MongoSphinx::Configuration.instance
@@ -87,7 +87,7 @@ namespace :mongo_sphinx do
87
87
 
88
88
  desc "Stop Sphinx (if it's running), rebuild the indexes, and start Sphinx"
89
89
  task :rebuild => :app_env do
90
- Rake::Task["mongo_sphinx:stop"].invoke if sphinx_running?
90
+ Rake::Task["mongo_sphinx:stop"].invoke if MongoSphinx.sphinx_running?
91
91
  Rake::Task["mongo_sphinx:index"].invoke
92
92
  Rake::Task["mongo_sphinx:start"].invoke
93
93
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yoomee-mongosphinx
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 8
10
- version: 0.1.8
9
+ - 9
10
+ version: 0.1.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matt Atkins
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-24 00:00:00 +01:00
18
+ date: 2010-08-25 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies: []
21
21