From 01b734e7cd8ae99e9791780ca565dc13161b248c Mon Sep 17 00:00:00 2001 From: Adam Meehan Date: Fri, 17 Sep 2010 15:13:33 +1000 Subject: [PATCH] add package task --- Rakefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index ad3bdcd..0bcc7b8 100644 --- a/Rakefile +++ b/Rakefile @@ -49,7 +49,11 @@ Rake::RDocTask.new(:rdoc) do |rdoc| rdoc.rdoc_files.include('lib/**/*.rb') end -desc "install the gem locally" +Rake::GemPackageTask.new(spec) do |pkg| + pkg.gem_spec = spec +end + +desc "Install the gem locally" task :install => [:package] do sh %{gem install pkg/#{GEM_NAME}-#{GEM_VERSION}} end