require 'spec/rake/spectask' require 'rake/rdoctask' require "rubygems" Gem::manage_gems require "rake/gempackagetask" task :default => :spec desc "Run all specs" Spec::Rake::SpecTask.new(:spec) do |t| t.spec_files = FileList['spec/**/*_spec.rb'] end desc "Build the RDoc" Rake::RDocTask.new { |rdoc| rdoc.rdoc_dir = 'doc' rdoc.title = "exact4r" rdoc.options << '--main' << 'README' << "--inline-source" << "--line-numbers" rdoc.rdoc_files.include('CHANGELOG', 'LICENCE', 'README', 'VERSION', 'lib/**/*.rb') } desc "Build the exact4r gem" spec = Gem::Specification.new do |s| s.name="exact4r" s.author = "E-xact Transactions Ltd." s.homepage = "http://e-xact4r.rubyforge.org/" s.rubyforge_project = "exact4r" s.email = "dredmond@e-xact.com" s.version=`cat VERSION` s.summary = 'E-xact Web Services Client Library.' s.files = FileList["./**/**"].to_a s.has_rdoc = true s.extra_rdoc_files = ['CHANGELOG', 'LICENCE', 'README', 'VERSION'] s.rdoc_options << '--main' << 'README' << '--inline-source' << '--line-numbers' s.add_dependency('activesupport', '>= 2.0.2') s.add_dependency('builder', '>= 2.1.2') end Rake::GemPackageTask.new(spec) do |pkg| pkg.need_tar = true end