+++ /dev/null
-Run script/treeoftexts_server.pl to test the application.
+++ /dev/null
-use strict;
-use warnings;
-
-use TreeOfTexts;
-
-my $app = TreeOfTexts->apply_default_middlewares(TreeOfTexts->psgi_app);
-$app;
-
-This file documents the revision history for Perl extension TreeOfTexts.
+This file documents the revision history for Perl extension stemmaweb.
0.01 2011-10-02 22:00:24
- initial revision, generated by Catalyst
# Catalyst::Devel installed or haven't said
# 'make dist' to create a standalone tarball.
-name 'TreeOfTexts';
-all_from 'lib/TreeOfTexts.pm';
+name 'stemmaweb';
+all_from 'lib/stemmaweb.pm';
requires 'Catalyst::Runtime' => '5.90002';
requires 'Catalyst::Plugin::ConfigLoader';
--- /dev/null
+Run script/stemmaweb_server.pl to test the application.
-package TreeOfTexts;
+package stemmaweb;
use Moose;
use namespace::autoclean;
# Configure the application.
#
-# Note that settings in treeoftexts.conf (or other external
+# Note that settings in stemmaweb.conf (or other external
# configuration file that you set up manually) take precedence
# over this when using ConfigLoader. Thus configuration
# details given here can function as a default configuration,
# local deployment.
__PACKAGE__->config(
- name => 'TreeOfTexts',
+ name => 'stemmaweb',
# Disable deprecated behavior needed by old applications
disable_component_resolution_regex_fallback => 1,
default_view => 'TT',
=head1 NAME
-TreeOfTexts - Catalyst based application
+stemmaweb - Catalyst based application
=head1 SYNOPSIS
- script/treeoftexts_server.pl
+ script/stemmaweb_server.pl
=head1 DESCRIPTION
=head1 SEE ALSO
-L<TreeOfTexts::Controller::Root>, L<Catalyst>
+L<stemmaweb::Controller::Root>, L<Catalyst>
=head1 AUTHOR
-package TreeOfTexts::Controller::Microservice;
+package stemmaweb::Controller::Microservice;
use Moose;
use namespace::autoclean;
use JSON;
=head1 NAME
-TreeOfTexts::Controller::Microservice - Controller for TreeOfTexts standalone
+stemmaweb::Controller::Microservice - Controller for stemmaweb standalone
components
=head1 DESCRIPTION
-package TreeOfTexts::Controller::Relation;
+package stemmaweb::Controller::Relation;
use Moose;
use namespace::autoclean;
=head1 NAME
-TreeOfTexts::Controller::Relation - Controller for the relationship mapper
+stemmaweb::Controller::Relation - Controller for the relationship mapper
=head1 DESCRIPTION
-package TreeOfTexts::Controller::Root;
+package stemmaweb::Controller::Root;
use Moose;
use namespace::autoclean;
use Text::Tradition::Analysis qw/ run_analysis /;
=head1 NAME
-TreeOfTexts::Controller::Root - Root Controller for TreeOfTexts
+stemmaweb::Controller::Root - Root Controller for stemmaweb
=head1 DESCRIPTION
-package TreeOfTexts::Controller::Stexaminer;
+package stemmaweb::Controller::Stexaminer;
use Moose;
use namespace::autoclean;
use File::Temp;
=head1 NAME
-TreeOfTexts::Controller::Stexaminer - Simple controller for stemma display
+stemmaweb::Controller::Stexaminer - Simple controller for stemma display
=head1 DESCRIPTION
-package TreeOfTexts::Model::Directory;
+package stemmaweb::Model::Directory;
use strict;
use warnings;
use Moose;
-package TreeOfTexts::View::JSON;
+package stemmaweb::View::JSON;
use strict;
use base 'Catalyst::View::JSON';
=head1 NAME
-TreeOfTexts::View::JSON - Catalyst JSON View
+stemmaweb::View::JSON - Catalyst JSON View
=head1 SYNOPSIS
-See L<TreeOfTexts>
+See L<stemmaweb>
=head1 DESCRIPTION
-package TreeOfTexts::View::Plain;
+package stemmaweb::View::Plain;
use strict;
use base 'Catalyst::View::Download::Plain';
=head1 NAME
-TreeOfTexts::View::Plain - Catalyst view for plaintext files
+stemmaweb::View::Plain - Catalyst view for plaintext files
=head1 SYNOPSIS
-See L<TreeOfTexts>
+See L<stemmaweb>
=head1 DESCRIPTION
-package TreeOfTexts::View::SVG;
+package stemmaweb::View::SVG;
use strict;
use base 'Catalyst::View';
-package TreeOfTexts::View::TT;
+package stemmaweb::View::TT;
use strict;
use warnings;
__PACKAGE__->config(
TEMPLATE_EXTENSION => '.tt',
INCLUDE_PATH => [
- TreeOfTexts->path_to( 'root', 'src' ),
+ stemmaweb->path_to( 'root', 'src' ),
],
render_die => 1,
);
=head1 NAME
-TreeOfTexts::View::TT - TT View for TreeOfTexts
+stemmaweb::View::TT - TT View for stemmaweb
=head1 DESCRIPTION
-TT View for TreeOfTexts.
+TT View for stemmaweb.
=head1 SEE ALSO
-L<TreeOfTexts>
+L<stemmaweb>
=head1 AUTHOR
#!/usr/bin/env perl
use Catalyst::ScriptRunner;
-Catalyst::ScriptRunner->run('TreeOfTexts', 'CGI');
+Catalyst::ScriptRunner->run('stemmaweb', 'CGI');
1;
=head1 NAME
-treeoftexts_cgi.pl - Catalyst CGI
+stemmaweb_cgi.pl - Catalyst CGI
=head1 SYNOPSIS
use warnings;
use Catalyst::ScriptRunner;
-Catalyst::ScriptRunner->run('TreeOfTexts', 'Create');
+Catalyst::ScriptRunner->run('stemmaweb', 'Create');
1;
=head1 NAME
-treeoftexts_create.pl - Create a new Catalyst Component
+stemmaweb_create.pl - Create a new Catalyst Component
=head1 SYNOPSIS
-treeoftexts_create.pl [options] model|view|controller name [helper] [options]
+stemmaweb_create.pl [options] model|view|controller name [helper] [options]
Options:
--force don't create a .new file where a file to be created exists
--help display this help and exits
Examples:
- treeoftexts_create.pl controller My::Controller
- treeoftexts_create.pl --mechanize controller My::Controller
- treeoftexts_create.pl view My::View
- treeoftexts_create.pl view HTML TT
- treeoftexts_create.pl model My::Model
- treeoftexts_create.pl model SomeDB DBIC::Schema MyApp::Schema create=dynamic\
+ stemmaweb_create.pl controller My::Controller
+ stemmaweb_create.pl --mechanize controller My::Controller
+ stemmaweb_create.pl view My::View
+ stemmaweb_create.pl view HTML TT
+ stemmaweb_create.pl model My::Model
+ stemmaweb_create.pl model SomeDB DBIC::Schema MyApp::Schema create=dynamic\
dbi:SQLite:/tmp/my.db
- treeoftexts_create.pl model AnotherDB DBIC::Schema MyApp::Schema create=static\
+ stemmaweb_create.pl model AnotherDB DBIC::Schema MyApp::Schema create=static\
[Loader opts like db_schema, naming] dbi:Pg:dbname=foo root 4321
[connect_info opts like quote_char, name_sep]
#!/usr/bin/env perl
use Catalyst::ScriptRunner;
-Catalyst::ScriptRunner->run('TreeOfTexts', 'FastCGI');
+Catalyst::ScriptRunner->run('stemmaweb', 'FastCGI');
1;
=head1 NAME
-treeoftexts_fastcgi.pl - Catalyst FastCGI
+stemmaweb_fastcgi.pl - Catalyst FastCGI
=head1 SYNOPSIS
-treeoftexts_fastcgi.pl [options]
+stemmaweb_fastcgi.pl [options]
Options:
-? -help display this help and exits
}
use Catalyst::ScriptRunner;
-Catalyst::ScriptRunner->run('TreeOfTexts', 'Server');
+Catalyst::ScriptRunner->run('stemmaweb', 'Server');
1;
=head1 NAME
-treeoftexts_server.pl - Catalyst Test Server
+stemmaweb_server.pl - Catalyst Test Server
=head1 SYNOPSIS
-treeoftexts_server.pl [options]
+stemmaweb_server.pl [options]
-d --debug force debug mode
-f --fork handle each request in a new process
#!/usr/bin/env perl
use Catalyst::ScriptRunner;
-Catalyst::ScriptRunner->run('TreeOfTexts', 'Test');
+Catalyst::ScriptRunner->run('stemmaweb', 'Test');
1;
=head1 NAME
-treeoftexts_test.pl - Catalyst Test
+stemmaweb_test.pl - Catalyst Test
=head1 SYNOPSIS
-treeoftexts_test.pl [options] uri
+stemmaweb_test.pl [options] uri
Options:
--help display this help and exits
Examples:
- treeoftexts_test.pl http://localhost/some_action
- treeoftexts_test.pl /some_action
+ stemmaweb_test.pl http://localhost/some_action
+ stemmaweb_test.pl /some_action
See also:
perldoc Catalyst::Manual
-# rename this file to treeoftexts.yml and put a ':' after 'name' if
+# rename this file to stemmaweb.yml and put a ':' after 'name' if
# you want to use YAML like in old versions of Catalyst
-name = TreeOfTexts
+name = stemmaweb
<Model Directory>
dsn dbi:SQLite:dbname=db/traditions.db
</Model>
\ No newline at end of file
--- /dev/null
+use strict;
+use warnings;
+
+use stemmaweb;
+
+my $app = stemmaweb->apply_default_middlewares(stemmaweb->psgi_app);
+$app;
+
use warnings;
use Test::More;
-use Catalyst::Test 'TreeOfTexts';
+use Catalyst::Test 'stemmaweb';
ok( request('/')->is_success, 'Request should succeed' );
use Test::More;
-BEGIN { use_ok 'TreeOfTexts::Model::Directory' }
+BEGIN { use_ok 'stemmaweb::Model::Directory' }
done_testing();
use Test::More;
-BEGIN { use_ok 'TreeOfTexts::View::JSON' }
+BEGIN { use_ok 'stemmaweb::View::JSON' }
done_testing();
use Test::More;
-BEGIN { use_ok 'TreeOfTexts::View::TT' }
+BEGIN { use_ok 'stemmaweb::View::TT' }
done_testing();