Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (32 sloc) 1.01 KB
desc "Build a gem"
task :gem => [ :gemspec, :build ]
Version = '0.0.1'
begin
begin
require 'jeweler'
rescue LoadError
puts "Jeweler not available. Install it with: "
puts "gem install jeweler"
end
Jeweler::Tasks.new do |gemspec|
gemspec.name = "twssbot"
gemspec.summary = "A that's-what-she-said IRCbot"
gemspec.description = %{An IRCbot that makes "That's what she said jokes".
Powered by the twss gem.}
gemspec.email = "bvandenbos@gmail.com"
gemspec.homepage = "http://github.com/bvandenbos/twssbot"
gemspec.authors = ["Ben VandenBos"]
gemspec.version = Version
gemspec.add_dependency "twss", ">= 0.0.1"
gemspec.add_dependency "isaac", ">= 0.2.6"
gemspec.add_development_dependency "jeweler"
end
end
desc "Push a new version to Gemcutter"
task :publish => [ :gemspec, :build ] do
system "git tag v#{Version}"
system "git push origin v#{Version}"
system "git push origin master"
system "gem push pkg/twssbot-#{Version}.gem"
system "git clean -fd"
end