Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 05e8a27659
Fetching contributors…

Cannot retrieve contributors at this time

64 lines (45 sloc) 1.592 kb

mg

A a minimalist way to create gems and publish them to Rubyforge using Rake.

Usage

In your Rakefile:

begin
  require "mg"
  MG.new("foo.gemspec")
rescue
  def abort_without_mg; abort "To use this task: gem install sr-mg";end
  task :install do; abort_without_mg; end
  task :package do; abort_without_mg; end
  task :rubyforge do; abort_without_mg; end
  namespace :rubyforge do
    task :gem do; abort_without_mg; end
    task :git do; abort_without_mg; end
  end
end

The following tasks are now available:

rake install
  Build and install as local gem

rake package
  Build gem tarball into dist/

rake rubyforge
  Publish the current release on Rubyforge

rake rubyforge:gem
  Publish gem and tarball to rubyforge

rake rubyforge:git
  Push to gitosis@rubyforge.org:foo.git

Licence

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.
Jump to Line
Something went wrong with that request. Please try again.