Skip to content

Commit

Permalink
Rake task for building and cleaning gem.
Browse files Browse the repository at this point in the history
  • Loading branch information
hakanai committed Sep 12, 2009
1 parent 4ce9a35 commit 4414132
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,37 @@

require 'rake/clean'
require 'rake/testtask'
require 'rake/gempackagetask'

PKG_VERSION = '0.1.0'

task :default => [ :gem ]
task :gem => [ :test ]

Rake::TestTask.new do |t|
t.test_files = FileList['test/test_*.rb']
t.verbose = true
end

gem_spec = Gem::Specification.new do |s|
s.name = 'irc2html'
s.version = PKG_VERSION
s.author = 'Trejkaz'
s.email = 'trejkaz at trypticon dot org'
#s.homepage
s.platform = Gem::Platform::RUBY
s.summary = "Converts IRC formatting code to HTML."
#s.description = <<EOF
s.requirements << 'none'
s.files = FileList["{lib,test}/**/*"].exclude("rdoc").to_a
s.require_path = 'lib'
end

Rake::GemPackageTask.new(gem_spec) do |pkg|
pkg.need_tar = true
end


CLEAN.include('pkg')


0 comments on commit 4414132

Please sign in to comment.