typo in Gitalist.pm and consequently README. I hope no one tried to check out it...
[catagits/Gitalist.git] / lib / Gitalist.pm
index 802e726..7afb8a6 100644 (file)
@@ -13,23 +13,23 @@ use Catalyst qw/
                 StackTrace
 /;
 
-our $VERSION = '0.000003';
+our $VERSION = '0.000005';
 $VERSION = eval $VERSION;
 
 __PACKAGE__->config(
     name => 'Gitalist',
     default_view => 'Default',
-    default_model => 'GitRepos',
+    default_model => 'CollectionOfRepos',
 );
 
 __PACKAGE__->setup();
 
 around uri_for => sub {
   my ($orig, $c) = (shift, shift);
-  my $project_name = $c->stash->{'Project'} && $c->stash->{'Project'}->name;
+  my $repository_name = $c->stash->{'Repository'} && $c->stash->{'Repository'}->name;
   my $hash = ref($_[-1]) eq 'HASH' ? pop @_ : {};
   my $params = Catalyst::Utils::merge_hashes(
-    { p => $hash->{p} || $project_name },
+    { p => $hash->{p} || $repository_name },
     $hash,
   );
   delete $params->{p} unless defined $params->{p} && length $params->{p};
@@ -90,7 +90,7 @@ Alternatively, you can get Gitalist using git.
 
 The canonical repository for the master branch is:
 
-    it://git.shadowcat.co.uk/catagits/Gitalist.git
+    git://git.shadowcat.co.uk/catagits/Gitalist.git
 
 Gitalist is also mirrored to github, and a number of people have active forks
 with branches and/or new features in the master branch.