flying-sphinx 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/flying_sphinx/rails.rb +8 -6
  3. metadata +4 -4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.1
1
+ 0.4.2
@@ -1,10 +1,12 @@
1
1
  require 'action_controller/dispatcher'
2
2
 
3
- ActionController::Dispatcher.to_prepare :flying_sphinx do
4
- config = FlyingSphinx::Configuration.new
5
-
6
- ThinkingSphinx::Configuration.instance.address = config.host
7
- ThinkingSphinx::Configuration.instance.port = config.port
3
+ unless Rails.env.development? || Rails.env.test?
4
+ ActionController::Dispatcher.to_prepare :flying_sphinx do
5
+ config = FlyingSphinx::Configuration.new
8
6
 
7
+ ThinkingSphinx::Configuration.instance.address = config.host
8
+ ThinkingSphinx::Configuration.instance.port = config.port
9
+ end
10
+
9
11
  ThinkingSphinx.database_adapter = FlyingSphinx::HerokuSharedAdapter
10
- end unless Rails.env.development? || Rails.env.test?
12
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flying-sphinx
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 11
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 1
10
- version: 0.4.1
9
+ - 2
10
+ version: 0.4.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Pat Allan
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-24 00:00:00 +11:00
18
+ date: 2011-01-29 00:00:00 +11:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency