riddle 1.0.5 → 1.0.6

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 +1 -6
  2. metadata +1 -1
@@ -12,14 +12,9 @@ module Riddle
12
12
  end
13
13
 
14
14
  def sphinx_version
15
- stderr = $stderr.dup
16
- read, write = IO.pipe
17
- $stderr.reopen(write)
18
- `#{indexer}`[/^Sphinx (\d+\.\d+\.\d+)/, 1]
15
+ `#{indexer} 2>&1`[/^Sphinx (\d\.\d\.\d)/, 1]
19
16
  rescue
20
17
  nil
21
- ensure
22
- $stderr.reopen(stderr)
23
18
  end
24
19
 
25
20
  def index(*indexes)
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.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pat Allan