From 4bd16f053847f2efe347ebda9136ef2233ee0d2c Mon Sep 17 00:00:00 2001 From: hukl Date: Tue, 28 Apr 2009 00:15:53 +0200 Subject: added thinking_sphinx plugin for fulltext search on nodes and heads --- .../plugins/thinking-sphinx/tasks/distribution.rb | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 vendor/plugins/thinking-sphinx/tasks/distribution.rb (limited to 'vendor/plugins/thinking-sphinx/tasks/distribution.rb') diff --git a/vendor/plugins/thinking-sphinx/tasks/distribution.rb b/vendor/plugins/thinking-sphinx/tasks/distribution.rb new file mode 100644 index 0000000..54ea964 --- /dev/null +++ b/vendor/plugins/thinking-sphinx/tasks/distribution.rb @@ -0,0 +1,48 @@ +require 'rake/rdoctask' +require 'rake/gempackagetask' + +$LOAD_PATH.unshift File.dirname(__FILE__) + '/../lib' +require 'thinking_sphinx' + +desc 'Generate documentation' +Rake::RDocTask.new(:rdoc) do |rdoc| + rdoc.rdoc_dir = 'rdoc' + rdoc.title = 'Thinking Sphinx - ActiveRecord Sphinx Plugin' + rdoc.options << '--line-numbers' << '--inline-source' + rdoc.rdoc_files.include('README') + rdoc.rdoc_files.include('lib/**/*.rb') +end + +spec = Gem::Specification.new do |s| + s.name = "thinking-sphinx" + s.version = ThinkingSphinx::Version::String + s.summary = "A concise and easy-to-use Ruby library that connects ActiveRecord to the Sphinx search daemon, managing configuration, indexing and searching." + s.description = "A concise and easy-to-use Ruby library that connects ActiveRecord to the Sphinx search daemon, managing configuration, indexing and searching." + s.author = "Pat Allan" + s.email = "pat@freelancing-gods.com" + s.homepage = "http://ts.freelancing-gods.com" + s.has_rdoc = true + s.rdoc_options << "--title" << "Thinking Sphinx -- Rails/Merb Sphinx Plugin" << + "--line-numbers" + s.rubyforge_project = "thinking-sphinx" + s.test_files = FileList["spec/**/*_spec.rb"] + s.files = FileList[ + "lib/**/*.rb", + "LICENCE", + "README", + "tasks/**/*.rb", + "tasks/**/*.rake", + "vendor/**/*" + ] +end + +Rake::GemPackageTask.new(spec) do |p| + p.gem_spec = spec + p.need_tar = true + p.need_zip = true +end + +desc "Build gemspec file" +task :build do + File.open('thinking-sphinx.gemspec', 'w') { |f| f.write spec.to_ruby } +end -- cgit v1.3