gemspec: patchlevel = number of commits since tag
[rbot] / rbot.gemspec
1 Gem::Specification.new do |s|
2   s.name = 'rbot'
3   version = '0.9.14'
4   patchlevel = `git describe | cut -f3 -d-`.to_i
5   version << ".#{patchlevel}" if patchlevel > 0
6   s.version = version
7   s.summary = <<-EOF
8     A modular ruby IRC bot.
9   EOF
10   s.description = <<-EOF
11     A modular ruby IRC bot specifically designed for ease of extension via plugins.
12   EOF
13   s.requirements << 'Ruby, version 1.8.0 (or newer)'
14
15   s.files = Dir[
16           'lib/**/*.rb',
17           'bin/*',
18           'data/rbot/**/*',
19           'AUTHORS',
20           'COPYING',
21           'README',
22           'REQUIREMENTS',
23           'TODO',
24           'ChangeLog',
25           'INSTALL',
26           'Usage_en.txt',
27           'setup.rb',
28           'launch_here.rb',
29           'po/*.pot',
30           'po/**/*.po'
31   ]
32
33   s.bindir = 'bin'
34   s.executables = ['rbot', 'rbot-remote']
35   s.default_executable = 'rbot'
36   s.extensions = 'Rakefile'
37
38 #  s.autorequire = 'rbot/ircbot'
39   s.has_rdoc = true
40   s.rdoc_options = ['--exclude', 'post-install.rb',
41   '--title', 'rbot API Documentation', '--main', 'README', 'README']
42
43   s.author = 'Tom Gilbert'
44   s.email = 'tom@linuxbrit.co.uk'
45   s.homepage = 'http://ruby-rbot.org'
46   s.rubyforge_project = 'rbot'
47 end
48