Skip to content
This repository
tag: 1.0011
Fetching contributors…

Cannot retrieve contributors at this time

file 20 lines (16 sloc) 0.475 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
name 'github';
description 'Install distributions from github';
synopsis 'cpanm github:miyagawa/Plack';
author 'Tatsuhiko Miyagawa';

api_version 0.1;

hook locate_dist => sub {
    my $args = shift;

    if ($args->{module} =~ s/^github://) {
        my($who, $what, $tag) = split '/', $args->{module};
        if ($who && $what) {
            $tag ||= 'master';
            return "http://github.com/$who/$what/tarball/$tag";
        }
    }

    return;
};
Something went wrong with that request. Please try again.