Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

73 lines (63 sloc) 2.208 kb
begin
require 'spec'
rescue LoadError
require 'rubygems'
require 'spec'
end
require 'rake/rdoctask'
require 'spec/rake/spectask'
require 'rake/gempackagetask'
# allow require of spec/spec_helper
$LOAD_PATH.unshift File.dirname(__FILE__) + '/../'
$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 = 'Riddle - Ruby Sphinx Client'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('lib/**/*.rb')
end
desc "Run the specs under spec"
Spec::Rake::SpecTask.new do |t|
t.spec_files = FileList['spec/**/*_spec.rb']
t.spec_opts << "-c"
end
desc "Generate RCov reports"
Spec::Rake::SpecTask.new(:rcov) do |t|
t.libs << 'lib'
t.spec_files = FileList['spec/**/*_spec.rb']
t.rcov = true
t.rcov_opts = ['--exclude', 'spec', '--exclude', 'gems', '--exclude', 'riddle']
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"
]
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
Jump to Line
Something went wrong with that request. Please try again.