Skip to content

Commit

Permalink
Added build/install/release rake tasks.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnunemaker committed May 18, 2010
1 parent dc44aaa commit d365da1
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion Rakefile
Original file line number Original file line Diff line number Diff line change
@@ -1,6 +1,7 @@
require 'rubygems' require 'rubygems'
require 'rake' require 'rake'
require 'rake/testtask' require 'rake/testtask'
require File.expand_path('../lib/plucky/version', __FILE__)


Rake::TestTask.new(:test) do |test| Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test' test.libs << 'lib' << 'test'
Expand All @@ -9,4 +10,16 @@ Rake::TestTask.new(:test) do |test|
test.verbose = true test.verbose = true
end end


task :default => :test task :default => :test

task :build do
sh "gem build plucky.gemspec"
end

task :install => :build do
sh "gem install plucky-#{Plucky::Version}"
end

task :release => :build do
sh "gem push plucky-#{Plucky::Version}"
end

0 comments on commit d365da1

Please sign in to comment.