From 1a3fd7369d298fffee80918039df02f218115efb Mon Sep 17 00:00:00 2001 From: Seth Thomas Rasmussen Date: Thu, 4 Feb 2010 22:12:11 -0500 Subject: [PATCH] quick task for installing dev version of gem --- Rakefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index a132d30..1345fb0 100644 --- a/Rakefile +++ b/Rakefile @@ -7,7 +7,7 @@ rescue LoadError puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler" end -version = if ENV["DEV"] +VEGAS_VERSION = if ENV["DEV"] "#{Vegas::VERSION}.#{Time.new.to_i}" else Vegas::VERSION @@ -15,7 +15,7 @@ end Jeweler::Tasks.new do |s| s.name = %q{vegas} - s.version = version + s.version = VEGAS_VERSION s.authors = ["Aaron Quint"] s.date = %q{2009-08-30} s.summary = "Vegas aims to solve the simple problem of creating executable versions of Sinatra/Rack apps." @@ -41,3 +41,7 @@ end task :package => :build task :default => :test + +task "install:dev" => :build do + system "gem install pkg/vegas-#{VEGAS_VERSION}.gem" +end