From 46c9418c36243d686e971c3e5789ad7ceabfbbb5 Mon Sep 17 00:00:00 2001 From: Aanand Prasad Date: Tue, 16 Jul 2013 21:35:15 +0100 Subject: [PATCH] rake gem task --- Rakefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Rakefile b/Rakefile index d49d0bb..c07d859 100644 --- a/Rakefile +++ b/Rakefile @@ -1,5 +1,12 @@ task :default => :test +task :gem do + sh "rm -r pkg/*" + sh "gem build git-up.gemspec" + sh "mv git-up-*.gem pkg" + puts "Built " + Dir.glob("pkg/*.gem")[0] +end + require 'rdoc/task' Rake::RDocTask.new do |rdoc| version = File.exist?('VERSION') ? File.read('VERSION') : ""