flying-sphinx 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.3
@@ -0,0 +1,5 @@
1
+ class FlyingSphinx::HerokuSharedAdapter < ThinkingSphinx::PostgreSQLAdapter
2
+ def setup
3
+ create_array_accum_function
4
+ end
5
+ end
@@ -5,4 +5,6 @@ ActionController::Dispatcher.to_prepare :flying_sphinx do
5
5
 
6
6
  ThinkingSphinx::Configuration.instance.address = config.host
7
7
  ThinkingSphinx::Configuration.instance.port = config.port
8
+
9
+ ThinkingSphinx.database_adapter = FlyingSphinx::HerokuSharedAdapter
8
10
  end unless Rails.env.development? || Rails.env.test?
@@ -8,5 +8,7 @@ class FlyingSphinx::Railtie < Rails::Railtie
8
8
 
9
9
  ThinkingSphinx::Configuration.instance.address = config.host
10
10
  ThinkingSphinx::Configuration.instance.port = config.port
11
+
12
+ ThinkingSphinx.database_adapter = FlyingSphinx::HerokuSharedAdapter
11
13
  end unless Rails.env.development? || Rails.env.test?
12
14
  end
@@ -1,14 +1,20 @@
1
1
  namespace :fs do
2
2
  task :index => :environment do
3
+ puts "Starting Index Request"
3
4
  FlyingSphinx::IndexRequest.new FlyingSphinx::Configuration.new
5
+ puts "Index Request has completed"
4
6
  end
5
7
 
6
8
  task :start => :environment do
9
+ puts "Starting Sphinx..."
7
10
  FlyingSphinx::Configuration.new.start_sphinx
11
+ puts "Started Sphinx"
8
12
  end
9
13
 
10
14
  task :stop => :environment do
15
+ puts "Stopping Sphinx..."
11
16
  FlyingSphinx::Configuration.new.stop_sphinx
17
+ puts "Stopped Sphinx"
12
18
  end
13
19
 
14
20
  task :restart => [:environment, :stop, :start]
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: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.2.2
9
+ - 3
10
+ version: 0.2.3
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: 2010-12-21 00:00:00 +11:00
18
+ date: 2010-12-26 00:00:00 +11:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -177,6 +177,7 @@ files:
177
177
  - lib/flying_sphinx.rb
178
178
  - lib/flying_sphinx/api.rb
179
179
  - lib/flying_sphinx/configuration.rb
180
+ - lib/flying_sphinx/heroku_shared_adapter.rb
180
181
  - lib/flying_sphinx/index_request.rb
181
182
  - lib/flying_sphinx/rails.rb
182
183
  - lib/flying_sphinx/railtie.rb