Minimalist way to build and publish gems using Rake. Also build tarballs.
In your Rakefile:
require "mg"
MG.new("project.gemspec")
The following tasks are now available:
rake gem
Build gem into dist/
rake gem:publish
Push the gem to RubyGems.org
rake gem:install
Build and install as local gem
rake package
Build gem and tarball into dist/
Written by Ryan Tomayko, extracted by Simon Rozet.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2009 Ryan Tomayko and Simon Rozet
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.