begin require 'jeweler' require 'jeweler/rubyforge_tasks' require 'jeweler/gemcutter_tasks' Jeweler::Tasks.new do |s| s.name = 'sunspot' s.executables = ['sunspot-solr', 'sunspot-configure-solr'] s.email = 'mat@patch.com' s.homepage = 'http://outoftime.github.com/sunspot' s.summary = 'Library for expressive, powerful interaction with the Solr search engine' s.description = <= 0.9.6', '<= 0.10.1' s.add_dependency 'daemons', '~> 1.0' s.add_development_dependency 'rspec', '~> 1.1' s.add_development_dependency 'ruby-debug', '~> 0.10' s.add_development_dependency 'technicalpickles-jeweler', '1.2.1' s.extra_rdoc_files = ['README.rdoc'] s.rdoc_options << '--webcvs=http://github.com/outoftime/sunspot/tree/master/%s' << '--title' << 'Sunspot - Solr-powered search for Ruby objects - API Documentation' << '--main' << 'README.rdoc' end Jeweler::RubyforgeTasks.new Jeweler::GemcutterTasks.new end namespace :release do task :tag do version = Jeweler::VersionHelper.new(File.join(File.dirname(__FILE__), '..')).to_s `git tag -a -m "Version #{version}" v#{version}` `git push origin v#{version}:v#{version}` end desc "Release gem to RubyForge and GitHub" task :all => [:gemspec, :tag, :"rubyforge:release:gem", :"gemcutter:release"] end