#!/usr/bin/env rake require 'bundler' Bundler::GemHelper.install_tasks desc "Bundle the gem" task :bundle => [:bundle_install] do sh 'gem build *.gemspec' sh 'gem install *.gem' sh 'rm *.gem' end desc "Runs bundle install" task :bundle_install do sh('bundle install') end task(:default).clear task :default => :bundle