Align Vhost code with reality. 0.003007
authorDan Brook <broq@cpan.org>
Sat, 28 Jan 2012 23:16:01 +0000 (23:16 +0000)
committerDan Brook <broq@cpan.org>
Sun, 29 Jan 2012 00:01:16 +0000 (00:01 +0000)
commit4d334b5359bb28a7b0781c44db9ebe710be22965
tree479e753b8ece2d4ca414d29fb6d49e70398c8ffc
parent2141c5643ba53996f4ea0d129a326ad7d5b24577
Align Vhost code with reality.

Now that we potentially have a different COR per hit (depending on config) the
COR model has changed a lot. Now its COMPONENT will return a G::G::COR-based
class which in turn provides an ACCEPT_CONTEXT method that should return a
further G::G::COR object based on the request. In the simple case, as with the
default config, the same G::G::COR that was built for the COMPONENT is also
returned by ACCEPT_CONTEXT. With the Vhost COR a different G::G::COR will be
returned depending on the related configuration.
26 files changed:
lib/Gitalist/Git/CollectionOfRepositories.pm
lib/Gitalist/Git/CollectionOfRepositories/Role/Context.pm [new file with mode: 0644]
lib/Gitalist/Git/CollectionOfRepositories/Vhost.pm
lib/Gitalist/Git/CollectionOfRepositoriesWithRequestState.pm [new file with mode: 0644]
lib/Gitalist/Model/CollectionOfRepos.pm
lib/Gitalist/TraitFor/Script.pm
t/lib/repositories_sets/catgit/Catalyst-Runtime [deleted submodule]
t/lib/repositories_sets/catgit/Catalyst-Runtime/HEAD [new file with mode: 0644]
t/lib/repositories_sets/catgit/Catalyst-Runtime/config [new file with mode: 0644]
t/lib/repositories_sets/catgit/Catalyst-Runtime/description [new file with mode: 0644]
t/lib/repositories_sets/catgit/Catalyst-Runtime/export-ok [copied from t/model_collectionofrepos_vhost.t with 100% similarity]
t/lib/repositories_sets/catgit/Catalyst-Runtime/info/exclude [new file with mode: 0644]
t/lib/repositories_sets/catgit/Catalyst-Runtime/refs/heads/branch1 [new file with mode: 0644]
t/lib/repositories_sets/catgit/Catalyst-Runtime/refs/heads/master [new file with mode: 0644]
t/lib/repositories_sets/catgit/Catalyst-Runtime/refs/tags/0.01 [new file with mode: 0644]
t/lib/repositories_sets/moose/Moose [deleted submodule]
t/lib/repositories_sets/moose/Moose/HEAD [new file with mode: 0644]
t/lib/repositories_sets/moose/Moose/config [new file with mode: 0644]
t/lib/repositories_sets/moose/Moose/description [new file with mode: 0644]
t/lib/repositories_sets/moose/Moose/export-ok [moved from t/model_collectionofrepos_vhost.t with 100% similarity]
t/lib/repositories_sets/moose/Moose/info/exclude [new file with mode: 0644]
t/lib/repositories_sets/moose/Moose/refs/heads/branch1 [new file with mode: 0644]
t/lib/repositories_sets/moose/Moose/refs/heads/master [new file with mode: 0644]
t/lib/repositories_sets/moose/Moose/refs/tags/0.01 [new file with mode: 0644]
t/model_collectionofrepos.t
t/scripts.t [deleted file]