From 7379daad1c73bd3610ed296436250b417ac3673d Mon Sep 17 00:00:00 2001 From: hukl Date: Thu, 10 Feb 2011 14:19:00 +0100 Subject: removed thinking_sphinx plugin and replaced it with gem. also tuned dependencies --- .../features/support/post_database.rb | 37 ---------------------- 1 file changed, 37 deletions(-) delete mode 100644 vendor/plugins/thinking-sphinx/features/support/post_database.rb (limited to 'vendor/plugins/thinking-sphinx/features/support/post_database.rb') diff --git a/vendor/plugins/thinking-sphinx/features/support/post_database.rb b/vendor/plugins/thinking-sphinx/features/support/post_database.rb deleted file mode 100644 index 51cefb5..0000000 --- a/vendor/plugins/thinking-sphinx/features/support/post_database.rb +++ /dev/null @@ -1,37 +0,0 @@ -$:.unshift File.dirname(__FILE__) + '/../../lib' - -require 'lib/thinking_sphinx' - -%w( tmp/config tmp/log tmp/db/sphinx/development ).each do |path| - FileUtils.mkdir_p "#{Dir.pwd}/#{path}" -end - -Kernel.const_set :RAILS_ROOT, "#{Dir.pwd}/tmp" unless defined?(RAILS_ROOT) - -at_exit do - ThinkingSphinx::Configuration.instance.controller.stop - sleep(1) # Ensure Sphinx has shut down completely - FileUtils.rm_r "#{Dir.pwd}/tmp" -end - -# Add log file -ActiveRecord::Base.logger = Logger.new open("tmp/active_record.log", "a") - -ThinkingSphinx.deltas_enabled = false - -# Load Models -Dir["features/support/models/*.rb"].sort.each do |file| - require file.gsub(/\.rb$/, '') -end - -# Set up database tables and records -Dir["features/support/db/migrations/*.rb"].each do |file| - require file.gsub(/\.rb$/, '') -end - -ThinkingSphinx.deltas_enabled = true -ThinkingSphinx.suppress_delta_output = true - -ThinkingSphinx::Configuration.instance.build -ThinkingSphinx::Configuration.instance.controller.index -ThinkingSphinx::Configuration.instance.controller.start -- cgit v1.3