Commit a91b2931 authored by gregor herrmann's avatar gregor herrmann

New upstream version 4.61

parent 18377e0d
language: perl
perl:
- "5.22"
- "5.20"
- "5.18"
- "5.16"
- "5.14"
- "5.12"
- "5.10"
- "5.8"
sudo: false
before_install:
- git clone git://github.com/travis-perl/helpers ~/travis-perl-helpers
- source ~/travis-perl-helpers/init --auto
......@@ -4,11 +4,14 @@ my $build = Module::Build->new
module_name => 'CGI::Application',
license => 'perl',
requires => {
'CGI' => 0,
'HTML::Template' => 0,
'Test::More' => 0.47,
'Carp' => 0,
'Class::ISA' => 0,
'Module::Build' => 0,
'CGI' => 4.21,
'HTML::Template' => 0,
'Test::More' => 0.47,
'Test::Requires' => 0,
'Carp' => 0,
'Class::ISA' => 0,
'Scalar::Util' => 0,
},
recommends => {
CGI::PSGI => 0.09, # If you want to use run_as_psgi()
......@@ -16,6 +19,7 @@ my $build = Module::Build->new
'dist_author' => [
'Jesse Erlbaum <jesse@erlbaum.net>',
'Mark Stosberg <mark@summersault.com>',
'Martin McGrath <mcgrath.martin@gmail.com>',
'with the help of many others!'
],
'dist_abstract' => 'Framework for building reusable web-applications',
......@@ -23,6 +27,12 @@ my $build = Module::Build->new
meta_add => {
no_index => { file => [ <test/*.pm> ] },
},
meta_merge => {
resources => {
repository => 'https://github.com/MartinMcGrath/CGI--Application',
bugtracker => 'https://github.com/MartinMcGrath/CGI--Application/issues'
},
},
);
$build->create_build_script;
......
Revision history for CGI::Application.
4.61
- Release fix in 4.60_1
4.60_1
[BUGS]
- Revert MANIFEST changes which seemed to have caused some issues
https://github.com/MartinMcGrath/CGI--Application/issues/5
[DOCUMENTATION]
- Fix minor POD typo.
4.60
- Release, includes all changes from 4.50_50, 4.50_51
4.50_51 (developer release) 2015-07-16
[BUGS]
- Create new CGI::PSGI object unconditionally in psgi_app()/Bug #88506 (allter)
[DOCUMENTATION]
- Introduced Travis CI (Martin McGrath)
4.50_50 (developer release) Fri Jun 23, 2014
- Add PSGI Streaming methods (Mike Tonks)
- Added CGI.pm dependency, it is no longer a core module (Martin McGrath)
[BUGS]
- Fixed rt #84403 - Security problem: missing "start" mode dumps ENV to output page. (Martin McGrath)
- Ensure dump_html() returns valid HTML. (Martin McGrath)
[DOCUMENTATION]
- Changes to repository URL and bug tracker, added Martin McGrath as a co-maintainer
- Typo fixes (David Steinbrunner)
4.50 Thu Jun 16, 2011
[FEATURES]
......
.travis.yml
lib/CGI/Application.pm
lib/CGI/Application/Mailform.pm
ARTISTIC
......
......@@ -3,10 +3,11 @@
"author" : [
"Jesse Erlbaum <jesse@erlbaum.net>",
"Mark Stosberg <mark@summersault.com>",
"Martin McGrath <mcgrath.martin@gmail.com>",
"with the help of many others!"
],
"dynamic_config" : 1,
"generated_by" : "Module::Build version 0.38, CPAN::Meta::Converter version 2.110930",
"generated_by" : "Module::Build version 0.4216",
"license" : [
"perl_5"
],
......@@ -21,7 +22,7 @@
"prereqs" : {
"configure" : {
"requires" : {
"Module::Build" : "0.38"
"Module::Build" : "0.42"
}
},
"runtime" : {
......@@ -29,29 +30,38 @@
"CGI::PSGI" : "0.09"
},
"requires" : {
"CGI" : 0,
"Carp" : 0,
"Class::ISA" : 0,
"HTML::Template" : 0,
"Test::More" : "0.47"
"CGI" : "4.21",
"Carp" : "0",
"Class::ISA" : "0",
"HTML::Template" : "0",
"Module::Build" : "0",
"Scalar::Util" : "0",
"Test::More" : "0.47",
"Test::Requires" : "0"
}
}
},
"provides" : {
"CGI::Application" : {
"file" : "lib/CGI/Application.pm",
"version" : "4.50"
"version" : "4.61"
},
"CGI::Application::Mailform" : {
"file" : "lib/CGI/Application/Mailform.pm",
"version" : 0
"file" : "lib/CGI/Application/Mailform.pm"
}
},
"release_status" : "stable",
"resources" : {
"bugtracker" : {
"web" : "https://github.com/MartinMcGrath/CGI--Application/issues"
},
"license" : [
"http://dev.perl.org/licenses/"
]
],
"repository" : {
"url" : "https://github.com/MartinMcGrath/CGI--Application"
}
},
"version" : "4.50"
"version" : "4.61",
"x_serialization_backend" : "JSON::PP version 2.27300"
}
......@@ -3,34 +3,40 @@ abstract: 'Framework for building reusable web-applications'
author:
- 'Jesse Erlbaum <jesse@erlbaum.net>'
- 'Mark Stosberg <mark@summersault.com>'
- 'Martin McGrath <mcgrath.martin@gmail.com>'
- 'with the help of many others!'
build_requires: {}
configure_requires:
Module::Build: 0.38
Module::Build: '0.42'
dynamic_config: 1
generated_by: 'Module::Build version 0.38, CPAN::Meta::Converter version 2.110930'
generated_by: 'Module::Build version 0.4216, CPAN::Meta::Converter version 2.150005'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: 1.4
version: '1.4'
name: CGI-Application
no_index:
file: []
provides:
CGI::Application:
file: lib/CGI/Application.pm
version: 4.50
version: '4.61'
CGI::Application::Mailform:
file: lib/CGI/Application/Mailform.pm
version: 0
recommends:
CGI::PSGI: 0.09
CGI::PSGI: '0.09'
requires:
CGI: 0
Carp: 0
Class::ISA: 0
HTML::Template: 0
Test::More: 0.47
CGI: '4.21'
Carp: '0'
Class::ISA: '0'
HTML::Template: '0'
Module::Build: '0'
Scalar::Util: '0'
Test::More: '0.47'
Test::Requires: '0'
resources:
bugtracker: https://github.com/MartinMcGrath/CGI--Application/issues
license: http://dev.perl.org/licenses/
version: 4.50
repository: https://github.com/MartinMcGrath/CGI--Application
version: '4.61'
x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
# Note: this file was auto-generated by Module::Build::Compat version 0.3800
# Note: this file was auto-generated by Module::Build::Compat version 0.4216
use ExtUtils::MakeMaker;
WriteMakefile
(
'PL_FILES' => {},
'INSTALLDIRS' => 'site',
'NAME' => 'CGI::Application',
'EXE_FILES' => [],
'VERSION_FROM' => 'lib/CGI/Application.pm',
'PREREQ_PM' => {
'Test::More' => '0.47',
'HTML::Template' => 0,
'Class::ISA' => 0,
'CGI' => 0,
'Carp' => 0
}
)
'NAME' => 'CGI::Application',
'VERSION_FROM' => 'lib/CGI/Application.pm',
'PREREQ_PM' => {
'CGI' => '4.21',
'Carp' => 0,
'Class::ISA' => 0,
'HTML::Template' => 0,
'Module::Build' => 0,
'Scalar::Util' => 0,
'Test::More' => '0.47',
'Test::Requires' => 0
},
'INSTALLDIRS' => 'site',
'EXE_FILES' => [],
'PL_FILES' => {}
)
;
......@@ -22,11 +22,10 @@ HOW DO I INSTALL IT?
To install this module, cd to the directory that contains this README
file and type the following:
perl Makefile.PL
make
make test
make install
perl Build.PL
./Build
./Build test
./Build install
CGI::Application builds on standard, non-proprietary technologies and
techniques, such as the Common Gateway Interface and Lincoln D. Stein's
......@@ -48,9 +47,5 @@ directly. Instead, it is intended that your Application Module will be
implemented as a Sub-Class of CGI::Application.
If you have any questions, comments, bug reports or feature suggestions,
post them to the support mailing list! To join the mailing list, simply
send a blank message to "cgiapp-subscribe@lists.erlbaum.net".
We also have an IRC channel named #cgiapp on irc.perl.org.
post them to the support mailing list! To join the mailing list, visit
http://lists.openlib.org/mailman/listinfo/cgiapp
This diff is collapsed.
use strict;
use Test::More tests => 110;
use Test::More tests => 112;
BEGIN{use_ok('CGI::Application');}
......@@ -24,11 +23,12 @@ sub response_like {
my $output = $app->run;
my ($header, $body) = split /\r\n\r\n/m, $output;
like($header, $header_re, "$comment (header match)");
like($body, $body_re, "$comment (body match)");
like($body, $body_re, "$comment (body match)");
}
# Instantiate CGI::Application
# run() CGI::Application object. Expect header + output dump_html()
# run() CGI::Application object.
# Expect header + output no_runmodes()
{
my $app = CGI::Application->new();
isa_ok($app, 'CGI::Application');
......@@ -39,11 +39,29 @@ sub response_like {
response_like(
$app,
qr{^Content-Type: text/html},
qr/Query Environment:/,
qr/Error - No runmodes specified./,
'base class response',
);
}
# Instantiate CGI::Application
# run() CGI::Application sub-class.
# Expect header + output dump_html()
{
my $app = TestApp->new();
$app->query(CGI->new({'test_rm' => 'dump_htm'}));
response_like(
$app,
qr{^Content-Type: text/html},
qr/Query Environment:/,
'dump_html class response'
);
}
# Instantiate CGI::Application sub-class.
# run() CGI::Application sub-class.
# Expect HTTP header + 'Hello World: basic_test'.
......
package TestApp;
use strict;
......@@ -16,19 +15,20 @@ sub setup {
$self->mode_param('test_rm');
$self->run_modes(
'basic_test' => \&basic_test,
'redirect_test' => \&redirect_test,
'cookie_test' => \&cookie_test,
'tmpl_test' => \&tmpl_test,
'tmpl_badparam_test' => \&tmpl_badparam_test,
'props_before_redirect_test' => \&props_before_redirect_test,
'header_props_twice_nomerge' => \&header_props_twice_nomerge,
'header_add_arrayref_test' => \&header_add_arrayref_test,
'header_props_before_header_add' => \&header_props_before_header_add,
'header_add_after_header_props' => \&header_add_after_header_props,
'dump_txt' => 'dump',
'eval_test' => 'eval_test',
'basic_test' => \&basic_test,
'redirect_test' => \&redirect_test,
'cookie_test' => \&cookie_test,
'tmpl_test' => \&tmpl_test,
'tmpl_badparam_test' => \&tmpl_badparam_test,
'props_before_redirect_test' => \&props_before_redirect_test,
'header_props_twice_nomerge' => \&header_props_twice_nomerge,
'header_add_arrayref_test' => \&header_add_arrayref_test,
'header_props_before_header_add' => \&header_props_before_header_add,
'header_add_after_header_props' => \&header_add_after_header_props,
'dump_htm' => 'dump_html',
'dump_txt' => 'dump',
'eval_test' => 'eval_test',
);
$self->param('last_orm', 'setup');
......
......@@ -13,7 +13,7 @@ sub start {
my $self = shift;
my $t = $self->load_tmpl('test.tmpl');
$t->param(ping => $self->query->param('message'));
$t->param(ping => scalar $self->query->param('message'));
return $t->output();
}
......
......@@ -8,7 +8,7 @@ $ENV{CGI_APP_RETURN_ONLY} = 1;
my $app = CGI::Application->new();
my $out = $app->run;
like($out, qr/start/, "normal app output contains start");
like($out, qr/Error - No runmodes specified/, "normal app output contains start");
unlike($out, qr/load_tmpl_hook/, "normal app output doesn't contain load_tmpl_hook");
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment