diff options
Diffstat (limited to 'vendor/plugins/thinking-sphinx/tasks/distribution.rb')
| -rw-r--r-- | vendor/plugins/thinking-sphinx/tasks/distribution.rb | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/vendor/plugins/thinking-sphinx/tasks/distribution.rb b/vendor/plugins/thinking-sphinx/tasks/distribution.rb deleted file mode 100644 index 54ea964..0000000 --- a/vendor/plugins/thinking-sphinx/tasks/distribution.rb +++ /dev/null | |||
| @@ -1,48 +0,0 @@ | |||
| 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 | ||
