diff options
| author | hukl <contact@smyck.org> | 2009-04-28 00:15:53 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-05-01 17:14:02 +0200 |
| commit | 4bd16f053847f2efe347ebda9136ef2233ee0d2c (patch) | |
| tree | f4c11f89455de991c8d87726d5757b752e7129e2 /vendor/plugins/thinking-sphinx/tasks/distribution.rb | |
| parent | d3a9b46ba5c863a0ff377dcffae9a494fe476e02 (diff) | |
added thinking_sphinx plugin for fulltext search on nodes and heads
Diffstat (limited to 'vendor/plugins/thinking-sphinx/tasks/distribution.rb')
| -rw-r--r-- | vendor/plugins/thinking-sphinx/tasks/distribution.rb | 48 |
1 files changed, 48 insertions, 0 deletions
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 @@ | |||
| 1 | require 'rake/rdoctask' | ||
| 2 | require 'rake/gempackagetask' | ||
| 3 | |||
| 4 | $LOAD_PATH.unshift File.dirname(__FILE__) + '/../lib' | ||
| 5 | require 'thinking_sphinx' | ||
| 6 | |||
| 7 | desc 'Generate documentation' | ||
| 8 | Rake::RDocTask.new(:rdoc) do |rdoc| | ||
| 9 | rdoc.rdoc_dir = 'rdoc' | ||
| 10 | rdoc.title = 'Thinking Sphinx - ActiveRecord Sphinx Plugin' | ||
| 11 | rdoc.options << '--line-numbers' << '--inline-source' | ||
| 12 | rdoc.rdoc_files.include('README') | ||
| 13 | rdoc.rdoc_files.include('lib/**/*.rb') | ||
| 14 | end | ||
| 15 | |||
| 16 | spec = Gem::Specification.new do |s| | ||
| 17 | s.name = "thinking-sphinx" | ||
| 18 | s.version = ThinkingSphinx::Version::String | ||
| 19 | s.summary = "A concise and easy-to-use Ruby library that connects ActiveRecord to the Sphinx search daemon, managing configuration, indexing and searching." | ||
| 20 | s.description = "A concise and easy-to-use Ruby library that connects ActiveRecord to the Sphinx search daemon, managing configuration, indexing and searching." | ||
| 21 | s.author = "Pat Allan" | ||
| 22 | s.email = "pat@freelancing-gods.com" | ||
| 23 | s.homepage = "http://ts.freelancing-gods.com" | ||
| 24 | s.has_rdoc = true | ||
| 25 | s.rdoc_options << "--title" << "Thinking Sphinx -- Rails/Merb Sphinx Plugin" << | ||
| 26 | "--line-numbers" | ||
| 27 | s.rubyforge_project = "thinking-sphinx" | ||
| 28 | s.test_files = FileList["spec/**/*_spec.rb"] | ||
| 29 | s.files = FileList[ | ||
| 30 | "lib/**/*.rb", | ||
| 31 | "LICENCE", | ||
| 32 | "README", | ||
| 33 | "tasks/**/*.rb", | ||
| 34 | "tasks/**/*.rake", | ||
| 35 | "vendor/**/*" | ||
| 36 | ] | ||
| 37 | end | ||
| 38 | |||
| 39 | Rake::GemPackageTask.new(spec) do |p| | ||
| 40 | p.gem_spec = spec | ||
| 41 | p.need_tar = true | ||
| 42 | p.need_zip = true | ||
| 43 | end | ||
| 44 | |||
| 45 | desc "Build gemspec file" | ||
| 46 | task :build do | ||
| 47 | File.open('thinking-sphinx.gemspec', 'w') { |f| f.write spec.to_ruby } | ||
| 48 | end | ||
