12 years agoBump version to 0.003004, update Changes. 0.003004
Dan Brook [Tue, 7 Jun 2011 20:23:14 +0000]
Bump version to 0.003004, update Changes.

12 years agoFix dependency typo in Makefile.PL.
Dan Brook [Tue, 7 Jun 2011 20:16:45 +0000]
Fix dependency typo in Makefile.PL.

12 years agoBump version to 0.003003, update Changes. 0.003003
Dan Brook [Mon, 6 Jun 2011 15:06:07 +0000]
Bump version to 0.003003, update Changes.

12 years agoAdd editor temp files to MANIFEST.SKIP.
Dan Brook [Mon, 6 Jun 2011 11:29:48 +0000]
Add editor temp files to MANIFEST.SKIP.

12 years agoChange default local config to not search recursively.
Dan Brook [Mon, 6 Jun 2011 11:15:30 +0000]
Change default local config to not search recursively.

This is non-optimal default behaviour, if repo_dir isn't just a bunch
of repos this could potentially slow things down a lot.

12 years agoDon't attempt to syntax highlight anything big.
Dan Brook [Sun, 5 Jun 2011 21:20:06 +0000]
Don't attempt to syntax highlight anything big.

Basically Syntax::Highlight::Kate is slow and trying to prettify
anything relative big s really slow. So just don't even try. Sad face.

12 years agoFix for infinite loop bug in blame.
Dan Brook [Sun, 5 Jun 2011 21:18:22 +0000]
Fix for infinite loop bug in blame.

Previously blame would get stuck in an infinite loop when processing
an empty file. Conceivably this a bug in git-blame as file content should
begin with a tab, even if it's empty.

Also adding a commit to repo1 involves fiddling lots tests so I won't
be doing that again.

Thanks to autarch for flagging this up in the first place!

12 years agoGive favicon.ico proper transparency.
Dan Brook [Sun, 29 May 2011 17:41:15 +0000]
Give favicon.ico proper transparency.

Previously the icon only looked sane on a white background, anything else and
you could see ugly white splotches. Now the background is fully transparent.
Also cleaned up unused favicon.ico paths.

12 years agoChanged the owner check to only check that *something came back.
Christian Walde [Sun, 29 May 2011 11:26:45 +0000]
Changed the owner check to only check that *something came back.

Since the owner name is retrieved from the system user table and thus can
end up being anything.

12 years agoBump version to 0.003002, update Changes and README. joad 0.003002
Dan Brook [Mon, 23 May 2011 14:09:20 +0000]
Bump version to 0.003002, update Changes and README.

Looks like the latest pod2text now includes the links from the POD in
the resulting text, which is nice.

12 years agoUpdated Changes and made CPAN::Changes compliant.
Dan Brook [Sun, 22 May 2011 17:07:23 +0000]
Updated Changes and made CPAN::Changes compliant.

Will also integrates Test::CPAN::Changes when it is AuthorRequires friendly.

12 years agoProvide .psgi for Plack goodness.
Dan Brook [Sun, 22 May 2011 16:22:01 +0000]
Provide .psgi for Plack goodness.

The .psgi was written by franky (Francoise Dehinbo) and gist-ed by
Ranguard (Leo Lapworth). I've tweaked it to play nice with checkouts
and "make install".

12 years agoExpose serialization via JSON.
Dan Brook [Sat, 7 May 2011 17:02:57 +0000]
Expose serialization via JSON.

The last of Tom's work is now integrated with all URLs that can will
respond with JSON. Unfortuantely browsers (I'm looking at you Chrome)
will cache per URL rather than URL + Content-Type so if one requests
JSON for /repo/sha1/commit then navigates to said commit the browser
will served the cached JSON rather than HTML. As such JSON is also
exposed with the .json extension allowing JS to talk JSON without
messing up certain browsers' (i.e Chrome's) caching.

12 years agoAdd serialization to Gitalist::Git::Object.
Dan Brook [Fri, 6 May 2011 22:45:21 +0000]
Add serialization to Gitalist::Git::Object.

Another first attempt once more based on Tom's earlier work. Much
still to be built on.

12 years agoFirst cut at reintroducing object serialization.
Dan Brook [Fri, 6 May 2011 22:27:28 +0000]
First cut at reintroducing object serialization.

This is very much based on the work t0m did in his json branch (which
was merged into swann to become swann-with-json). The nicely broken up
Git objects created more replicated code than I like but it seems to work
which is enough for now. Next up is the rest of the objects and then onto
a shiny new REST interface.

12 years agoMore template tweaks.
Dan Brook [Mon, 2 May 2011 11:11:54 +0000]
More template tweaks.

Fix other bits that look wonky after the background drop shadow was removed.

13 years agoBump version to 0.003001, update Changes and README. macquart 0.003001
Dan Brook [Sun, 13 Mar 2011 20:55:27 +0000]
Bump version to 0.003001, update Changes and README.

13 years agoSeparate paging for log and history views.
Dan Brook [Sun, 13 Mar 2011 20:41:12 +0000]
Separate paging for log and history views.

Logic isn't quite the same for both, which lead to paging fail, so
I've split them in two.

13 years agoSimplified Repository BUILDARGS logic.
Dan Brook [Sun, 13 Mar 2011 13:36:19 +0000]
Simplified Repository BUILDARGS logic.

My way of understanding things - make them simply enough so they fit
in my brain.

13 years agoReinstate FromDirectory in model.
Dan Brook [Sun, 13 Mar 2011 13:02:16 +0000]
Reinstate FromDirectory in model.

This was dropped when FromDirectoryRecursive was added. But seeing as
how it has been the default behaviour for some time now
search_recursively is enabled by default in gitalist_local.conf.

13 years agoFixed tree view for repos with / in name
Jose Luis Martinez [Wed, 9 Mar 2011 22:41:42 +0000]
Fixed tree view for repos with / in name

The "/" in the name of the repo was not escaped. Use uri_for_action to
generate the link to the fragments URI. That implies deleting the
"around" uri_for_action in Gitalist.pm. That seems to be OK because
tests still pass. Also, didn't find any invocation to uri_for_action
with a /fragments path.

13 years agoMore tests changed when a new repo was added
Jose Luis Martinez [Wed, 9 Mar 2011 22:30:22 +0000]
More tests changed when a new repo was added

Fix model_collectionofrepos.t tests

13 years agoMore DirectoryRecursive testing
Jose Luis Martinez [Wed, 9 Mar 2011 19:05:33 +0000]
More DirectoryRecursive testing

Make sure that two repos with the same name are retrievable, and are
different.

13 years agoAmmend test of DirectoryRecursive
Jose Luis Martinez [Wed, 9 Mar 2011 18:58:13 +0000]
Ammend test of DirectoryRecursive

Now the names of the repos that DirectoryRecursive returns are relative
paths.

Also add two repos with the same name, in different directories to the
test suite.

13 years agoMake get_repository expect already instanced repo
Jose Luis Martinez [Wed, 9 Mar 2011 16:46:05 +0000]
Make get_repository expect already instanced repo

Refactor subclasses to have the _get_repo_from_name as the mandatory
method.

13 years agoDrop unneeded deps in Makefile.PL.
Dan Brook [Thu, 10 Mar 2011 21:26:14 +0000]
Drop unneeded deps in Makefile.PL.

Thanks to Kent Fredric for pointing this out in RT#66525.

13 years agoMake paging work for history
Lian Wan Situ [Tue, 8 Mar 2011 23:01:11 +0000]
Make paging work for history

13 years agoMake use of CSS3 for content shadow.
Dan Brook [Mon, 7 Mar 2011 22:37:07 +0000]
Make use of CSS3 for content shadow.

The current shadows and rounded corners don't quite line up and match
so we just use plain ol' CSS instead.

13 years agoRespect paging.log config settings.
Dan Brook [Sun, 6 Mar 2011 20:15:36 +0000]
Respect paging.log config settings.

Also try to render commit messages faithfully.

13 years agoBe able to override the autodetected repo name
Jose Luis Martinez [Wed, 9 Mar 2011 16:43:05 +0000]
Be able to override the autodetected repo name

Use this capability in Git::CollectionOfRepositories::FromDirectoryRecursive

13 years agoBump version to 0.002009 and update Changes. 0.002009
Dan Brook [Sun, 6 Mar 2011 15:34:50 +0000]
Bump version to 0.002009 and update Changes.

13 years agoAdd CONFIGURATION section to Gitalist POD.
Dan Brook [Sun, 6 Mar 2011 15:32:00 +0000]
Add CONFIGURATION section to Gitalist POD.

Also tidied up existing gitalist.conf and other bits and pieces.

13 years agoAllow enabling recursive repo search in config.
Dan Brook [Sun, 6 Mar 2011 15:27:14 +0000]
Allow enabling recursive repo search in config.

Seemed a shame to have a feature that was only enabled given a
particular directory configuration.

13 years agoAssume UTF8 encoded blobs.
Dan Brook [Sun, 6 Mar 2011 12:36:56 +0000]
Assume UTF8 encoded blobs.

This makes text files that have UTF8 bits in them render
normally. Certainly this is not ideal but it shall suffice.

13 years agoBump version to 0.002008, regen README, update Changes. florent 0.002008
Dan Brook [Sat, 26 Feb 2011 17:36:40 +0000]
Bump version to 0.002008, regen README, update Changes.

13 years agoTweak CSS so nav bit lines up in Chrome.
Dan Brook [Sat, 26 Feb 2011 17:35:55 +0000]
Tweak CSS so nav bit lines up in Chrome.

AFAICT there's no cross browser to line up the header with the
ackground image reliably. Methinks CSS3 shininess is the way forward.

13 years agoFix app-mech-rootpage.t test.
Dan Brook [Sat, 26 Feb 2011 15:44:57 +0000]
Fix app-mech-rootpage.t test.

This was broken as of the Foxtons redesign as I forgot to update the
tests. With the odd tweak here and there it passes again. If I ever
find the tuits I'd like to have this test for the rest of the actions.

13 years agoDrop Catalyst::Action::REST dependency.
Dan Brook [Sat, 26 Feb 2011 15:19:29 +0000]
Drop Catalyst::Action::REST dependency.

It was being used in an earlier branch but for one reason or another it didn't
work out but I forgot to remove the dep. Thanks again to Tom Hukins for
pointing this out!

13 years agoUpdate Changes.
Dan Brook [Sat, 26 Feb 2011 15:18:47 +0000]
Update Changes.

13 years agoAdd cpan-install utility script.
Dan Brook [Sat, 26 Feb 2011 15:15:48 +0000]
Add cpan-install utility script.

This utility script should prove useful to anyone running from a
Gitalist clone. It will allows you to install additional modules into
local-lib5 which can be tricky to do otherwise e.g "./script/env cpanm Module"
doesn't work if Module is already installed outside the local-lib5.

13 years agoOnly use first column in whitelist.
Dan Brook [Mon, 21 Feb 2011 17:47:55 +0000]
Only use first column in whitelist.

In keeping with the format of projects.list.

13 years agoTweak docs to be explicit about gitalist_server.pl invocation.
Dan Brook [Mon, 21 Feb 2011 16:05:32 +0000]
Tweak docs to be explicit about gitalist_server.pl invocation.

In light of the recent shebang changes.

13 years agoUse the correct perl binary we installed against
Tom Hukins [Thu, 29 Jul 2010 14:51:42 +0000]
Use the correct perl binary we installed against

The user might have Gitalist installed against a version of Perl other
than the one that env finds first.

Setting the #! line to use /usr/bin/perl causes perl's build tools to
replace this with the full path to the version of perl that we build
against.

13 years agoAdd the ability to provide a whitelist of repos.
Dan Brook [Sun, 20 Feb 2011 17:31:10 +0000]
Add the ability to provide a whitelist of repos.

Similar to gitweb.cgi and its $project_list this functionality allows
one to specify a whitelist of repos for a given directory.

13 years agoAdd support for export-ok config option.
Dan Brook [Sun, 20 Feb 2011 17:09:02 +0000]
Add support for export-ok config option.

This mimics the gitweb.cgi behaviour of specifying a file in
$export_ok to check for when listing available repos. So if export_ok
is specified in the Model::CollectionOfRepos section of the config
then only repos containing that filename will be visible.

13 years agoIgnore ancient/malformed tags.
Dan Brook [Sun, 20 Feb 2011 12:40:57 +0000]
Ignore ancient/malformed tags.

Previously Gitalist::Git::Tag::BUILDARGS would croak when constructing
DateTime for wonky tags i.e d6602ec5194c87b0fc87103ca4d67251c76f233a
(the first tag in the git repo). Now we just ignore them because I
think it's safe to presume they are very much the exception.

13 years agoBump version to 0.002007, update Changes. 0.002007
Dan Brook [Sat, 19 Feb 2011 19:56:58 +0000]
Bump version to 0.002007, update Changes.

13 years agoClearer error message for get_repository.
Dan Brook [Tue, 11 Jan 2011 22:11:05 +0000]
Clearer error message for get_repository.

This confused me, so I made it clearer. Also added a clarifying comment to
_is_git_repo, although it could certainly be more thorough in its check.

13 years agoAllow top-level directories in the Repo constructor.
Dan Brook [Tue, 11 Jan 2011 22:07:38 +0000]
Allow top-level directories in the Repo constructor.

The problem being that the constructor couldn't handle paths like foo/repo
which is what CollectionOfRepositories considers (rightly) a repo path.

13 years agoRecursive directory lookup now stops when a repo is found.
Dan Brook [Sun, 14 Nov 2010 22:40:35 +0000]
Recursive directory lookup now stops when a repo is found.

Instead of recursing through every possible directory now the lookup
will only recurse into non-repo directories.

13 years agoDrop broken assertions in t/02git_CollectionOfRepositories_FromDirectoryRecursive.t.
Dan Brook [Mon, 1 Nov 2010 22:48:47 +0000]
Drop broken assertions in t/02git_CollectionOfRepositories_FromDirectoryRecursive.t.

The assertions only make sense if Gitalist is operating as a git clone
and is the first repo to be found in its parent directory. This will
be a bit faily for CPAN and would probably make some CPAN testers sad.

This also brings us to 100% test passes on the quenu branch, huzzah!

13 years agoSquash warning in Path::Class::Dir from contains() call.
Dan Brook [Mon, 1 Nov 2010 22:41:04 +0000]
Squash warning in Path::Class::Dir from contains() call.

13 years agoMake FromDirectoryRecursive operate in bootstrap env.
Dan Brook [Mon, 1 Nov 2010 22:42:05 +0000]
Make FromDirectoryRecursive operate in bootstrap env.

Also fixed an assertion in t/model_collectionofrepos.t to reflect the
2 new repos that have been added.

13 years agoJust make sure finds a recursive git directory
Dipesh Patel [Fri, 3 Sep 2010 14:16:30 +0000]
Just make sure finds a recursive git directory

13 years agoAdditional unit test.
Dipesh Patel [Thu, 2 Sep 2010 13:56:18 +0000]
Additional unit test.

Add unit test to check that git repos within git repos are ignored for now.

13 years agoDo proper checking of git directories.
Dipesh Patel [Wed, 1 Sep 2010 17:58:21 +0000]
Do proper checking of git directories.

Tidy up and use callback to resolve the repo path for a recursive directory.

13 years agoFix broken recursive lookup and add unit tests.
Dipesh Patel [Tue, 31 Aug 2010 16:43:13 +0000]
Fix broken recursive lookup and add unit tests.

get_repository needs to have full path as Path::Class::Dir can't resolve from child. Added few new repos to test. Fixed unit tests and added a bit of detail.

13 years agoNo need for addtional variable.
Dipesh Patel [Fri, 20 Aug 2010 09:59:53 +0000]
No need for addtional variable.

Remove repo dir variable and loop though newly created repos to exclude paths.

13 years agoFew tidy ups on Recursive From Directory.
Dipesh Patel [Thu, 19 Aug 2010 17:35:54 +0000]
Few tidy ups on Recursive From Directory.

Return from callback if in subdir of already git found parent dir. Remove addition of unneeded method.

13 years agoFirst pass attempt to recursively search through directories.
Dipesh Patel [Wed, 18 Aug 2010 22:29:20 +0000]
First pass attempt to recursively search through directories.

Go throught directories using Dir->recursive. However bit expensive
as will carry on even if git repo found so may change.

13 years agoFix env to work for Makefile.PL too.
Dan Brook [Mon, 1 Nov 2010 21:55:57 +0000]
Fix env to work for Makefile.PL too.

Rewrote $lookup so it is now sane and does what it says in the comment:
looks up the directory structure until it finds a Makefile.PL or hits
the root directory (aka the error condition).

13 years agoFix recursion bug in the lookup sub of the env script.
Dan Brook [Sun, 31 Oct 2010 18:13:00 +0000]
Fix recursion bug in the lookup sub of the env script.

13 years agoBootstrap test fixes.
Dan Brook [Sun, 31 Oct 2010 17:59:58 +0000]
Bootstrap test fixes.

The author tests were failing in a bootstrapped environment as the env
script only looked at the current or the parent directory for
local-lib5. Also fixed the POD tests to look under lib so as to avoid
trawling local-lib5 for unrelated modules.

Fixed the tag and head tests to make use of env.

13 years agoFix for failing assertion in t/02git_object.t.
Dan Brook [Sun, 31 Oct 2010 17:51:47 +0000]
Fix for failing assertion in t/02git_object.t.

An overloaded object would fail an "eq" comparison in the test (at
line 42) because it didn't also overload the comparison operators.

13 years agoAdd Test::Exception dep.
Dan Brook [Sun, 31 Oct 2010 17:51:23 +0000]
Add Test::Exception dep.

13 years agoIntroduce Gitalist::Git::Tag.
Zachary Stevens [Sun, 27 Jun 2010 22:28:13 +0000]
Introduce Gitalist::Git::Tag.

Encapsulates a git tag.
Repository->tags is now an ArrayRef of these.

13 years agoCreate Head instances from unparsed git output.
Zachary Stevens [Sun, 27 Jun 2010 17:02:30 +0000]
Create Head instances from unparsed git output.

13 years agoIntroduce Gitalist::Git::Head.
Zachary Stevens [Sun, 27 Jun 2010 14:42:17 +0000]
Introduce Gitalist::Git::Head.

Encapsulates a git head.
Repository->heads is now an ArrayRef of these.

13 years agoTest fixup - Repository->list_tree is gone.
Zachary Stevens [Sun, 27 Jun 2010 14:39:40 +0000]
Test fixup - Repository->list_tree is gone.

13 years agoCommit->sha_by_path now returns an object.
Zachary Stevens [Sun, 27 Jun 2010 01:06:32 +0000]
Commit->sha_by_path now returns an object.

13 years agoRemove Repository->get_object_or_head.
Zachary Stevens [Sun, 27 Jun 2010 00:24:53 +0000]
Remove Repository->get_object_or_head.

Redundant - R->get_object does the same thing.

13 years agoRemove Repository->list_tree.
Zachary Stevens [Sat, 26 Jun 2010 19:50:26 +0000]
Remove Repository->list_tree.

The list is available via Tree->tree, so use that instead.

13 years agoMove Repository->hash_by_path to Commit->sha_by_path.
Zachary Stevens [Sat, 26 Jun 2010 22:14:11 +0000]
Move Repository->hash_by_path to Commit->sha_by_path.

13 years agoClean hash_by_path's signature.
Zachary Stevens [Sat, 26 Jun 2010 19:02:12 +0000]
Clean hash_by_path's signature.

Removed unused 'type' argument.
Don't specify a default for path - it's required.

13 years agoStringify Object instances to their sha1.
Zachary Stevens [Sat, 26 Jun 2010 18:54:05 +0000]
Stringify Object instances to their sha1.

13 years agoRegenerated README and fixed tests for bootstrapped checkouts.
Dan Brook [Sun, 31 Oct 2010 11:07:50 +0000]
Regenerated README and fixed tests for bootstrapped checkouts.

13 years agoimprove POD mark-up, some typos
Lars Dɪᴇᴄᴋᴏᴡ 迪拉斯 [Mon, 18 Oct 2010 12:35:52 +0000]
improve POD mark-up, some typos

13 years agoBumped version to 0.002006 and updated Changes. 0.002006
Dan Brook [Sun, 17 Oct 2010 16:12:00 +0000]
Bumped version to 0.002006 and updated Changes.

13 years agoMerge remote branch 'augustf/master'
Dan Brook [Sun, 19 Sep 2010 10:05:35 +0000]
Merge remote branch 'augustf/master'

* augustf/master:
  Added notes regarding slash encoding in Catalyst
  Updated formatting in Gitalist.pm
  Yet another formatting fix to the README...
  Updated README text in Gitalist.pm for README generation...
  Almost forgot to add some troublshooting steps...
  Modified README with more details on FCGI deployment with Apache

13 years agoAdded notes regarding slash encoding in Catalyst
August [Thu, 9 Sep 2010 02:30:24 +0000]
Added notes regarding slash encoding in Catalyst

13 years agoFixed typo in core.css
Zachary Stevens [Mon, 23 Aug 2010 22:30:27 +0000]
Fixed typo in core.css

13 years agoUpdated formatting in Gitalist.pm
August [Mon, 23 Aug 2010 15:26:57 +0000]
Updated formatting in Gitalist.pm

13 years agoYet another formatting fix to the README...
August [Mon, 23 Aug 2010 15:25:26 +0000]
Yet another formatting fix to the README...

13 years agoUpdated README text in Gitalist.pm for README generation...
August [Sun, 22 Aug 2010 20:55:27 +0000]
Updated README text in Gitalist.pm for README generation...

13 years agoAlmost forgot to add some troublshooting steps...
August [Sun, 22 Aug 2010 20:50:36 +0000]
Almost forgot to add some troublshooting steps...

13 years agoModified README with more details on FCGI deployment with Apache
August [Sun, 22 Aug 2010 20:47:28 +0000]
Modified README with more details on FCGI deployment with Apache

13 years agoFix broken env includes in script/gitalist*.pl.
Dan Brook [Fri, 13 Aug 2010 15:47:21 +0000]
Fix broken env includes in script/gitalist*.pl.

13 years agoFix tests dying in absence of bootstrap scripts. 0.002005
Dan Brook [Fri, 13 Aug 2010 14:29:10 +0000]
Fix tests dying in absence of bootstrap scripts.

13 years agoBump Gitalist version and required Git::PurePerl version.
Dan Brook [Fri, 13 Aug 2010 12:00:23 +0000]
Bump Gitalist version and required Git::PurePerl version.

13 years agoLimit the number of branches/tags listed by default.
Dan Brook [Fri, 13 Aug 2010 11:18:11 +0000]
Limit the number of branches/tags listed by default.

In the quick branch switch and the summary page the number of
branches/tags is now limited to the paging.summary config
setting. This way repos with large numbers of refs no longer bog down
every page or the overview that is the summary.

13 years agoFix variable and blame bugs.
Dan Brook [Mon, 2 Aug 2010 09:17:06 +0000]
Fix variable and blame bugs.

- Fix misnamed variable which was giving a syntax error in
Gitalist::Controller::Fragment::Ref.
- Fix blame view to display syntax highlighted blobs correctly instead of
outputting raw HTML.

13 years agoFix changelog 0.002004
Tomas Doran [Mon, 2 Aug 2010 08:26:00 +0000]
Fix changelog

13 years agoMerge
Tomas Doran [Mon, 2 Aug 2010 08:21:07 +0000]
Merge

13 years agoVersion 0.002003 0.002003
Tomas Doran [Mon, 2 Aug 2010 08:07:44 +0000]
Version 0.002003

13 years agoFix for dist versions
Tomas Doran [Mon, 2 Aug 2010 08:00:24 +0000]
Fix for dist versions

13 years agoVersion number bump as previous dist was littered with non-dist files. 0.002002
Dan Brook [Sun, 1 Aug 2010 10:47:30 +0000]
Version number bump as previous dist was littered with non-dist files.

13 years agoDrop dev part of version number, new release ready!
Dan Brook [Sat, 31 Jul 2010 09:20:33 +0000]
Drop dev part of version number, new release ready!

13 years agoExclude bootstrap related scripts from dist, bump dev version.
Dan Brook [Sat, 31 Jul 2010 09:03:53 +0000]
Exclude bootstrap related scripts from dist, bump dev version.

* Updated docs accordingly.

13 years agoFix bundling issue by bundling File::Copy::Recursive
Tomas Doran [Wed, 7 Jul 2010 19:07:16 +0000]
Fix bundling issue by bundling File::Copy::Recursive

13 years agoBumped version and added bootstrap docs.
Dan Brook [Sat, 3 Jul 2010 15:48:44 +0000]
Bumped version and added bootstrap docs.

Not only can this dist be bootstrapped I've even documented how to do it. Also
fixed up tabs that had crept into a couple of files.