From db0c48f72e1d982e3aee4aa7d96c16edcc95a1b9 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Fri, 30 Oct 2009 09:55:57 -0700 Subject: [PATCH] add publish and gem tasks --- Rakefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Rakefile b/Rakefile index d9fb399..9cd3e18 100644 --- a/Rakefile +++ b/Rakefile @@ -31,3 +31,16 @@ begin rescue LoadError puts "sdoc support not enabled. Please gem install sdoc-helpers." end + +desc "Build a gem" +task :gem => [ :gemspec, :build ] + +desc "Push a new version to Gemcutter" +task :publish => [ :test, :gemspec, :build ] do + system "git tag v#{FakeFS::Version}" + system "git push origin v#{FakeFS::Version}" + system "git push origin master" + system "gem push pkg/fakefs-#{FakeFS::Version}.gem" + system "git clean -fd" + exec "rake pages" +end