Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Release tasks

  • Loading branch information...
commit 399570114198e94a69c288a8837a7a8d0af5b9d7 1 parent 279a68d
@lukeredpath authored
Showing with 15 additions and 1 deletion.
  1. +2 −1  .gitignore
  2. +13 −0 Rakefile
View
3  .gitignore
@@ -1 +1,2 @@
-doc
+doc
+pkg
View
13 Rakefile
@@ -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
+
Please sign in to comment.
Something went wrong with that request. Please try again.