riddle 1.0.7 → 1.0.8

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/riddle/controller.rb +2 -1
  2. metadata +2 -2
@@ -18,11 +18,12 @@ module Riddle
18
18
  end
19
19
 
20
20
  def index(*indexes)
21
+ options = indexes.last.is_a?(Hash) ? indexes.pop : {}
21
22
  indexes << '--all' if indexes.empty?
22
23
 
23
24
  cmd = "#{indexer} --config #{@path} #{indexes.join(' ')}"
24
25
  cmd << " --rotate" if running?
25
- `#{cmd}`
26
+ options[:verbose] ? system(cmd) : `#{cmd}`
26
27
  end
27
28
 
28
29
  def start
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riddle
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pat Allan
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-12-08 00:00:00 +11:00
12
+ date: 2009-12-10 00:00:00 +11:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency