Permalink
Browse files

Release tasks

  • Loading branch information...
lukeredpath committed Jan 30, 2012
1 parent 279a68d commit 399570114198e94a69c288a8837a7a8d0af5b9d7
Showing with 15 additions and 1 deletion.
  1. +2 −1 .gitignore
  2. +13 −0 Rakefile
View
@@ -1 +1,2 @@
-doc
+doc
+pkg
View
@@ -165,3 +165,16 @@ desc "Bundle the gems from the gemspec"
task :bundle => :gemspec do
system "bundle install"
end
+
+desc 'Build and release to Rubygems.org'
+task :release => :package do
+ gem_path = File.join('pkg', spec.file_name)
+ system "gem push #{gem_path}"
+end
+
+desc 'Build and install the gem'
+task :install => :package do
+ gem_path = File.join('pkg', spec.file_name)
+ system("gem install #{gem_path}")
+end
+

0 comments on commit 3995701

Please sign in to comment.