# Jabber::Simple - Ruby Helper for Faking Web Requests # Copyright 2006 Blaine Cook . # # Jabber::Simple is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # Jabber::Simple is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Jabber::Simple; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA require 'rubygems' Gem::manage_gems require 'rake/gempackagetask' require 'rake/testtask' require 'rake/rdoctask' require 'rcov/rcovtask' spec = Gem::Specification.new do |s| s.add_dependency('xmpp4r', '>= 0.3.0') s.name = "xmpp4r-simple" s.version = "0.8.0" s.author = "Blaine Cook" s.email = "romeda@gmail.com" s.homepage = "http://xmpp4r-simple.rubyforge.org/" s.platform = Gem::Platform::RUBY s.summary = "A simplified Jabber client library." s.description = <<-EOF Jabber::Simple takes the strong foundation laid by xmpp4r and hides the relatively high complexity of maintaining a simple instant messenger bot in Ruby. EOF s.files = FileList["{test,lib}/**/*", '[A-Z]*'].exclude("rdoc", ".svn").to_a s.require_path = "lib" s.test_files = Dir.glob("test/test_*.rb") s.has_rdoc = true s.extra_rdoc_files = ["README", "COPYING"] s.rubyforge_project = "xmpp4r-simple" end Rake::GemPackageTask.new(spec) do |pkg| pkg.gem_spec = spec pkg.need_tar = true pkg.need_zip = true end desc "Default Task" task :default => [:tests] desc "Run All Tests" Rake::TestTask.new :tests do |test| test.test_files = ["test/**/*.rb"] test.verbose = true end desc "Generate Documentation" Rake::RDocTask.new do |rdoc| rdoc.main = "README" rdoc.rdoc_dir = "doc" rdoc.rdoc_files.include("README", "COPYING", "lib/*.rb") rdoc.title = "Jabber::Simple" end Rcov::RcovTask.new do |t| t.test_files = FileList['test/**/test*.rb'] t.rcov_opts << "--sort coverage" end