summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorTom Gilbert <tom@linuxbrit.co.uk>2005-08-02 23:32:05 +0000
committerTom Gilbert <tom@linuxbrit.co.uk>2005-08-02 23:32:05 +0000
commitd8f47b0899f9ba055735250e91ac861e8adde447 (patch)
tree3a575ba7149748fabe7ed5dc53444abc41e31904 /Rakefile
parent5940baa7fb81196925d692d4e4fe6d6cab73d1ed (diff)
Wed Aug 03 00:31:41 BST 2005 Tom Gilbert <tom@linuxbrit.co.uk>
* Added Rakefile, tweaked gemspec
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
new file mode 100644
index 00000000..18c66a06
--- /dev/null
+++ b/Rakefile
@@ -0,0 +1,37 @@
+require 'rubygems'
+require 'rake'
+require 'rake/gempackagetask'
+
+task :default => [:package]
+
+spec = Gem::Specification.new do |s|
+ s.name = 'rbot'
+ s.version = '0.9.9'
+ s.summary = <<-EOF
+ A modular ruby IRC bot.
+ EOF
+ s.description = <<-EOF
+ A modular ruby IRC bot specifically designed for ease of extension via plugins.
+ EOF
+ s.requirements << 'Ruby, version 1.8.0 (or newer)'
+
+ # s.files = Dir.glob("**/*").delete_if { |item| item.include?(".svn") }
+ s.files = FileList['lib/**/*.rb', 'bin/*', 'data/**/*', 'AUTHORS', 'COPYING', 'README', 'REQUIREMENTS', 'TODO', 'ChangeLog', 'INSTALL', 'rbot.gemspec', 'Usage_en.txt', 'setup.rb'].to_a
+ s.executables << 'rbot'
+
+ s.autorequire = 'rbot/ircbot'
+ s.has_rdoc = true
+ s.rdoc_options = ['--exclude', '(post-config.rb|rbotconfig.rb)',
+ '--title', 'rbot API Documentation', '--main', 'README', 'README']
+
+ s.author = 'Tom Gilbert'
+ s.email = 'tom@linuxbrit.co.uk'
+ s.homepage = 'http://linuxbrit.co.uk/rbot/'
+ s.rubyforge_project = 'rbot'
+end
+
+Rake::GemPackageTask.new(spec) do |pkg|
+ pkg.need_zip = true
+ pkg.need_tar = true
+end
+