Skip to content

Commit

Permalink
Added rake tasks for managing the gem
Browse files Browse the repository at this point in the history
  • Loading branch information
jferris committed May 4, 2011
1 parent 50f04fc commit ad7ffd5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Rakefile
Expand Up @@ -36,3 +36,15 @@ Rake::GemPackageTask.new($specification) do |package|
package.need_tar = true
end

gem_file = "pkg/#{$specification.name}-#{$specification.version}.gem"

desc "Build and install the latest gem"
task :install => :gem do
sh("gem install --local #{gem_file}")
end

desc "Build and release the latest gem"
task :release => :gem do
sh("gem push #{gem_file}")
end

0 comments on commit ad7ffd5

Please sign in to comment.