lib/Bracket.pm

filter: Statementstmt 100% 15 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 18 / 18 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/Bracket/Form/Register.pm ↑ Summary lib/Bracket/Form/Login.pm »
1 package Bracket;
2 4 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 4 our $VERSION = '1.16';
5 4 ▶use Catalyst::Runtime '5.80';
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 4 ▶use Catalyst qw/
Subroutine BEGIN: called CC=1 SCAR=0.0
8 ConfigLoader
9 Static::Simple
10 Authentication
11 Session
12 Session::Store::DBIC
13 Session::State::Cookie
14 4 /;
15 4 extends 'Catalyst';
16  
17 4 __PACKAGE__->config(
18 authentication => {
19 default_realm => 'members',
20 realms => {
21 members => {
22 credential => {
23 class => 'Password',
24 password_field => 'password',
25 password_type => 'self_check',
26 },
27 store => {
28 class => 'DBIx::Class',
29 user_model => 'DBIC::Player',
30 role_relation => 'roles',
31 role_field => 'role',
32 use_userdata_from_session => 1,
33 },
34 },
35 }
36 }
37 );
38  
39 # Session::Store
40 4 __PACKAGE__->config(
41 'Plugin::Session' => {
42 dbic_class => 'DBIC::Session',
43 expires => 604800,
44 cookie_expires => 1814400,
45 },
46 );
47  
48 # Start the application
49 4 __PACKAGE__->setup;
50  
51 =head1 NAME
52  
53 Bracket - College Basketball Tournament Bracket Web Application
54  
55 =head1 SYNOPSIS
56  
57 Run your own bracket software. Simple, effective and ad free.
58  
59 =head1 DESCRIPTION
60  
61 College Basketball Tournament Bracket Web application using the Catalyst framework.
62 Deploy an instance of this bracket software to run your own bracket system.
63 It requires a data store such as MySQL, PostgreSQL or SQLite.
64  
65 Simple admin interface to build the perfect bracket as the tournament unfolds.
66 Player brackets are compared to the perfect bracket for scoring purposes.
67  
68 =head1 AUTHOR
69  
70 Mateu X. Hunter 2008-2022
71 hunter@missoula.org
72  
73 =head1 LICENSE
74  
75 This library is free software, you can redistribute it and/or modify
76 it under the same terms as Perl itself.
77  
78 =head1 COPYRIGHT
79  
80 Mateu X. Hunter 2008-2022
81  
82 =head1 LIMITATIONS
83  
84 * Currently only supports one group of players.
85 * If you want to give more scoring weight to lower seeded wins
86 you have to edit the lower_seed column of the game table.
87  
88 =cut
89  
90 4 1;
« lib/Bracket/Form/Register.pm ↑ Summary lib/Bracket/Form/Login.pm »