forked from blaine/xmpp4r-simple
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
75 lines (68 loc) · 2.34 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Jabber::Simple - Ruby Helper for Faking Web Requests
# Copyright 2006 Blaine Cook <romeda@gmail.com>.
#
# 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.add_dependency('rake')
s.add_dependency('rcov')
s.name = "xmpp4r-simple"
s.version = "0.8.7"
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