require 'rake' require 'rake/testtask' require 'rake/rdoctask' require 'rcov/rcovtask' begin require 'jeweler' Jeweler::Tasks.new do |s| s.name = "xmpp4r" s.summary = %Q{Builds on XMPP4R, specifically with a view to an Ejabberd implementation.} s.email = "ed@jivatechnology.net" s.homepage = "http://github.com/edavey/xmpp4r" s.description = "TODO" s.authors = ["Ed Davey"] end rescue LoadError puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com" end Rake::TestTask.new do |t| t.libs << 'lib' t.pattern = 'test/**/*_test.rb' t.verbose = false end Rake::RDocTask.new do |rdoc| rdoc.rdoc_dir = 'rdoc' rdoc.title = 'xmpp4r' rdoc.options << '--line-numbers' << '--inline-source' rdoc.rdoc_files.include('README*') rdoc.rdoc_files.include('lib/**/*.rb') end Rcov::RcovTask.new do |t| t.libs << 'test' t.test_files = FileList['test/**/*_test.rb'] t.verbose = true end task :default => :rcov