Permalink
Browse files

Added rake tasks for managing the gem

  • Loading branch information...
1 parent 50f04fc commit ad7ffd5e1984ebcac5d81cf5fa71f0f69e3555aa @jferris jferris committed Mar 10, 2011
Showing with 12 additions and 0 deletions.
  1. +12 −0 Rakefile
View
@@ -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.