X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FGitalist.pm;h=5d4739cddf5efda529bc302c8b9e5fb049b10d4c;hb=2819375187cb00d50556d1e16d25df6c0f9f7bb5;hp=84a99808ee5e694cb3be44410528022c6a6d90f6;hpb=fac828e08613444971c761277d9eb387125d3099;p=catagits%2FGitalist.git diff --git a/lib/Gitalist.pm b/lib/Gitalist.pm index 84a9980..5d4739c 100644 --- a/lib/Gitalist.pm +++ b/lib/Gitalist.pm @@ -1,8 +1,8 @@ package Gitalist; use Moose; -use namespace::autoclean; - +BEGIN { require 5.008006; } use Catalyst::Runtime 5.80; +use namespace::autoclean; extends 'Catalyst'; @@ -13,20 +13,15 @@ use Catalyst qw/ StackTrace /; -our $VERSION = '0.01'; - -# Bring in the libified gitweb.cgi. -use gitweb; +our $VERSION = '0.000001'; +$VERSION = eval $VERSION; __PACKAGE__->config( name => 'Gitalist', default_view => 'Default', default_model => 'GitRepos', - # Set to 1 to make your fcgi die the request after you push :) - exit_at_end_of_request_if_updated => 0, ); -# Start the application __PACKAGE__->setup(); around uri_for => sub { @@ -43,15 +38,18 @@ around uri_for => sub { return $uri; }; +1; + +__END__ + =head1 NAME -Gitalist - Transitional project to convert gitweb.cgi to a Catalyst app +Gitalist - A modern git web viewer =head1 SYNOPSIS script/gitalist_server.pl - =head1 INSTALL As Gitalist follows the usual Perl module format the usual approach @@ -63,14 +61,12 @@ for installation should work e.g make install If you're running a git checkout of Gitalist then you'll additionally -need the author modules. I. +need the author modules. =head1 DESCRIPTION Gitalist is a web frontend for git repositories based on gitweb.cgi -and backed by Catalyst. It doesn't yet have the full functionality of -gitweb.cgi but it does have a few small additions at this stage. +and backed by Catalyst. =head2 History @@ -106,5 +102,3 @@ L Licensed under GNU GPL v2 =cut - -1;