require File.join(File.dirname(__FILE__), '..', '..', 'tools', 'gem_tasks') Sunspot::GemTasks.new(:build => :copy_rdoc) do |s| s.name = 'sunspot' s.version = Sunspot::VERSION s.executables = ['sunspot-solr', 'sunspot-installer'] 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 = < 1.1' s.extra_rdoc_files = ['README.rdoc'] s.test_files = FileList['spec/**/*_spec.rb'] 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 task :copy_rdoc do sunspot_root = File.join(File.dirname(__FILE__), '..') FileUtils.cp( File.join(sunspot_root, '..', 'README.rdoc'), sunspot_root ) end