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.
- data/VERSION +1 -1
- data/lib/flying_sphinx/rails.rb +8 -6
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.2
|
data/lib/flying_sphinx/rails.rb
CHANGED
@@ -1,10 +1,12 @@
|
|
1
1
|
require 'action_controller/dispatcher'
|
2
2
|
|
3
|
-
|
4
|
-
|
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
|
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:
|
4
|
+
hash: 11
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
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-
|
18
|
+
date: 2011-01-29 00:00:00 +11:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|