riddle 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/riddle.rb +3 -2
  2. data/lib/riddle/controller.rb +1 -1
  3. metadata +2 -2
@@ -19,11 +19,11 @@ module Riddle #:nodoc:
19
19
  end
20
20
 
21
21
  def self.loaded_version
22
- Thread.current[:riddle_sphinx_version]
22
+ @@sphinx_version
23
23
  end
24
24
 
25
25
  def self.loaded_version=(version)
26
- Thread.current[:riddle_sphinx_version] = version
26
+ @@sphinx_version = version
27
27
  end
28
28
 
29
29
  def self.version_warning
@@ -47,4 +47,5 @@ require 'riddle/client'
47
47
  require 'riddle/configuration'
48
48
  require 'riddle/controller'
49
49
 
50
+ Riddle.loaded_version = nil
50
51
  Riddle::AutoVersion.configure
@@ -15,7 +15,7 @@ module Riddle
15
15
  stderr = $stderr.dup
16
16
  read, write = IO.pipe
17
17
  $stderr.reopen(write)
18
- `#{indexer}`[/^Sphinx (\d\.\d\.\d)/, 1]
18
+ `#{indexer}`[/^Sphinx (\d+\.\d+\.\d+)/, 1]
19
19
  rescue
20
20
  nil
21
21
  ensure
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.4
4
+ version: 1.0.5
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-01 00:00:00 +11:00
12
+ date: 2009-12-02 00:00:00 +11:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency