moneypools-thinking-sphinx 1.2.12 → 1.2.13

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.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 1
3
3
  :minor: 2
4
- :patch: 12
4
+ :patch: 13
@@ -6,11 +6,13 @@ module Riddle
6
6
  end
7
7
 
8
8
  def index
9
- cmd = "indexer --config #{@path} --all"
10
- cmd << " --rotate" if running?
11
- `#{cmd}`
9
+ run_index('--all')
12
10
  end
13
-
11
+
12
+ def partially_index(indexes)
13
+ run_index(indexes.join(" "))
14
+ end
15
+
14
16
  def start
15
17
  return if running?
16
18
 
@@ -49,5 +51,12 @@ module Riddle
49
51
  rescue
50
52
  false
51
53
  end
54
+
55
+ private
56
+ def run_index(name)
57
+ cmd = "indexer --config #{@path} #{name}"
58
+ cmd << " --rotate" if running?
59
+ `#{cmd}`
60
+ end
52
61
  end
53
62
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moneypools-thinking-sphinx
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.12
4
+ version: 1.2.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pat Allan