Sha256: 604e323bda0a4b987ebc0ed2105ce80e868770933d95c12f109419c3ee09950e

Contents?: true

Size: 1.64 KB

Versions: 10

Compression:

Stored size: 1.64 KB

Contents

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.textile",
    "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

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
DrMark-thinking-sphinx-1.1.14 tasks/distribution.rb
DrMark-thinking-sphinx-1.1.15 tasks/distribution.rb
dpickett-thinking-sphinx-1.1.12 tasks/distribution.rb
freelancing-god-thinking-sphinx-1.1.10 tasks/distribution.rb
freelancing-god-thinking-sphinx-1.1.11 tasks/distribution.rb
freelancing-god-thinking-sphinx-1.1.12 tasks/distribution.rb
freelancing-god-thinking-sphinx-1.1.14 tasks/distribution.rb
freelancing-god-thinking-sphinx-1.1.15 tasks/distribution.rb
freelancing-god-thinking-sphinx-1.1.16 tasks/distribution.rb
freelancing-god-thinking-sphinx-1.1.17 tasks/distribution.rb