r46521 - in /trunk/libtext-micromason-perl: ./ MicroMason/ MicroMason/Docs/ debian/ t/
jawnsy-guest at users.alioth.debian.org
jawnsy-guest at users.alioth.debian.org
Fri Oct 30 02:19:17 UTC 2009
Author: jawnsy-guest
Date: Fri Oct 30 02:19:02 2009
New Revision: 46521
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=46521
Log:
* New upstream release
* Standards-Version 3.8.3 (no changes)
* Added myself to Uploaders and Copyright
Removed:
trunk/libtext-micromason-perl/CHANGES
trunk/libtext-micromason-perl/README
trunk/libtext-micromason-perl/TODO
trunk/libtext-micromason-perl/t/33-filters.t
Modified:
trunk/libtext-micromason-perl/MANIFEST
trunk/libtext-micromason-perl/META.yml
trunk/libtext-micromason-perl/MicroMason.pm
trunk/libtext-micromason-perl/MicroMason/Base.pm
trunk/libtext-micromason-perl/MicroMason/Docs/Changes.pod
trunk/libtext-micromason-perl/MicroMason/Docs/ReadMe.pod
trunk/libtext-micromason-perl/MicroMason/TemplateDir.pm
trunk/libtext-micromason-perl/MicroMason/TemplatePath.pm
trunk/libtext-micromason-perl/debian/changelog
trunk/libtext-micromason-perl/debian/control
trunk/libtext-micromason-perl/debian/copyright
Modified: trunk/libtext-micromason-perl/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtext-micromason-perl/MANIFEST?rev=46521&op=diff
==============================================================================
--- trunk/libtext-micromason-perl/MANIFEST (original)
+++ trunk/libtext-micromason-perl/MANIFEST Fri Oct 30 02:19:02 2009
@@ -1,6 +1,5 @@
-CHANGES
Makefile.PL
-MANIFEST
+MANIFEST This list of files
MANIFEST.SKIP
MicroMason.pm
MicroMason/AllowGlobals.pm
@@ -20,7 +19,6 @@
MicroMason/Embperl.pm
MicroMason/ExecuteCache.pm
MicroMason/Filters.pm
-MicroMason/Filters.pm.orig
MicroMason/Functions.pm
MicroMason/HasParams.pm
MicroMason/HTMLMason.pm
@@ -38,7 +36,6 @@
MicroMason/TemplateDir.pm
MicroMason/TemplatePath.pm
MicroMason/TextTemplate.pm
-README
samples/die.msn
samples/hello_world.msp
samples/if.tmpl
@@ -64,7 +61,6 @@
t/31-catch_errors.t
t/32-safe.t
t/33-filters.t
-t/33-filters.t.orig
t/34-compile_cache.t
t/35-execute_cache.t
t/36-template_dir.t
@@ -91,5 +87,4 @@
t/90-cache-dir-conflict.t
t/91-template_path.t
t/92-template_path-cache.t
-TODO
META.yml Module meta-data (added by MakeMaker)
Modified: trunk/libtext-micromason-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtext-micromason-perl/META.yml?rev=46521&op=diff
==============================================================================
--- trunk/libtext-micromason-perl/META.yml (original)
+++ trunk/libtext-micromason-perl/META.yml Fri Oct 30 02:19:02 2009
@@ -1,15 +1,23 @@
--- #YAML:1.0
-name: Text-MicroMason
-version: 2.0
-abstract: Simple and Extensible Templating
-license: perl
-author:
+name: Text-MicroMason
+version: 2.02
+abstract: Simple and Extensible Templating
+author:
- Alan Ferrency <ferrency at cpan.org>
-generated_by: ExtUtils::MakeMaker version 6.42
-distribution_type: module
-requires:
- Class::MixinFactory: 0.9
- File::Spec: 0.9
+license: perl
+distribution_type: module
+configure_requires:
+ ExtUtils::MakeMaker: 0
+build_requires:
+ ExtUtils::MakeMaker: 0
+requires:
+ Class::MixinFactory: 0.9
+ File::Spec: 0.9
+no_index:
+ directory:
+ - t
+ - inc
+generated_by: ExtUtils::MakeMaker version 6.54
meta-spec:
- url: http://module-build.sourceforge.net/META-spec-v1.3.html
- version: 1.3
+ url: http://module-build.sourceforge.net/META-spec-v1.4.html
+ version: 1.4
Modified: trunk/libtext-micromason-perl/MicroMason.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtext-micromason-perl/MicroMason.pm?rev=46521&op=diff
==============================================================================
--- trunk/libtext-micromason-perl/MicroMason.pm (original)
+++ trunk/libtext-micromason-perl/MicroMason.pm Fri Oct 30 02:19:02 2009
@@ -1,5 +1,5 @@
package Text::MicroMason;
-$VERSION = '2.0';
+$VERSION = '2.02';
# The #line directive requires Perl 5.6 to work correctly the way we use
# it in Base.
@@ -491,10 +491,12 @@
For more information, see L<Inline::Mason>.
-=head1 DIAGNOSTICS
-
-The following diagnostic messages are produced for the indicated error
-conditions (where %s indicates variable message text):
+=head1 EXCEPTIONS
+
+Text::MicroMason croaks on error, with an appropriate error string. Some
+commonly occurring error messages are described below (where %s
+indicates variable message text). See also the pod for each mixin class,
+for additional exception strings that may be thrown.
=over 4
Modified: trunk/libtext-micromason-perl/MicroMason/Base.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtext-micromason-perl/MicroMason/Base.pm?rev=46521&op=diff
==============================================================================
--- trunk/libtext-micromason-perl/MicroMason/Base.pm (original)
+++ trunk/libtext-micromason-perl/MicroMason/Base.pm Fri Oct 30 02:19:02 2009
@@ -508,7 +508,7 @@
=item croak_msg
-Called when a fatal exception has occured.
+Called when a fatal exception has occurred.
=item NEXT
Modified: trunk/libtext-micromason-perl/MicroMason/Docs/Changes.pod
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtext-micromason-perl/MicroMason/Docs/Changes.pod?rev=46521&op=diff
==============================================================================
--- trunk/libtext-micromason-perl/MicroMason/Docs/Changes.pod (original)
+++ trunk/libtext-micromason-perl/MicroMason/Docs/Changes.pod Fri Oct 30 02:19:02 2009
@@ -4,6 +4,38 @@
=head1 VERSION 2 HISTORY
+
+=head2 Version 2.02
+
+=over 4
+
+=item 2009-10-29
+
+Updated Changes.pod.
+
+Fixed SKIP count in t/33 which caused test count mismatches when
+HTML::Entities wasn't installed.
+
+=back
+
+=head2 Version 2.01
+
+=over 4
+
+=item 2009-10-29
+
+Fix a bug with TemplatePath error messages. If a template name was
+provided that didn't exist in the path, the error message generated by
+read_file didn't specify which template was requested. This version
+now croaks in resolve_path instead of returning undef and letting
+read_file croak.
+
+Updated pod to reflect this change and document previously undocumented
+exception strings.
+
+Modified undocumented exception strings for strict_root violations.
+
+=back
=head2 Version 2.0
Modified: trunk/libtext-micromason-perl/MicroMason/Docs/ReadMe.pod
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtext-micromason-perl/MicroMason/Docs/ReadMe.pod?rev=46521&op=diff
==============================================================================
--- trunk/libtext-micromason-perl/MicroMason/Docs/ReadMe.pod (original)
+++ trunk/libtext-micromason-perl/MicroMason/Docs/ReadMe.pod Fri Oct 30 02:19:02 2009
@@ -51,7 +51,7 @@
=head1 DISTRIBUTION STATUS
-This is version 2.0 of Text::MicroMason.
+This is version 2.02 of Text::MicroMason.
This module has been available on CPAN for over six years.
Modified: trunk/libtext-micromason-perl/MicroMason/TemplateDir.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtext-micromason-perl/MicroMason/TemplateDir.pm?rev=46521&op=diff
==============================================================================
--- trunk/libtext-micromason-perl/MicroMason/TemplateDir.pm (original)
+++ trunk/libtext-micromason-perl/MicroMason/TemplateDir.pm Fri Oct 30 02:19:02 2009
@@ -53,7 +53,7 @@
my $path = File::Spec->canonpath( $file );
# warn "Checking for '$root' in '$path'\n";
( $path =~ /\A\Q$root\E(\/|(?<=\/))(?!\.\.)/ )
- or $self->croak_msg("Not in required base path '$root'");
+ or $self->croak_msg("Text::MicroMason::TemplateDir: Template not in required base path '$root'");
}
return $self->NEXT('read_file', $file );
@@ -106,7 +106,11 @@
=item strict_root
-Optional directory beyond which not to read files. If set to 1, uses template_root, Causes read_file to croak if any filename outside of the root is provided. (Note that this is not a chroot jail and only affects attempts to load a file as a template; for greater security see the chroot() builtin and L<Text::MicroMason::Safe>.)
+Optional directory beyond which not to read files. If set to 1, uses
+template_root, Causes read_file to croak if any filename outside of the
+root is provided. (Note that this is not a chroot jail and only affects
+attempts to load a file as a template; for greater security see the
+chroot() builtin and L<Text::MicroMason::Safe>.)
=back
@@ -124,6 +128,23 @@
=back
+=head2 EXCEPTIONS
+
+The following additional exceptions are generated by
+Text::MicroMason::TemplateDir when appropriate:
+
+=over 4
+
+=item *
+
+Text::MicroMason::TemplatePath: Template not in required base path '%s'
+
+The template found in the configured template path was not within the
+configured strict_root directory. This may be caused by requesting an
+absolute template filename not within strict_root, or by specifying a
+strict_root which does not match the configured template path.
+
+=back
=head1 SEE ALSO
Modified: trunk/libtext-micromason-perl/MicroMason/TemplatePath.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtext-micromason-perl/MicroMason/TemplatePath.pm?rev=46521&op=diff
==============================================================================
--- trunk/libtext-micromason-perl/MicroMason/TemplatePath.pm (original)
+++ trunk/libtext-micromason-perl/MicroMason/TemplatePath.pm Fri Oct 30 02:19:02 2009
@@ -20,15 +20,15 @@
my $current = $self->{source_file};
unshift @path, $current if $current;
- # Check out path for an existing template file.
+ # Check path for an existing template file.
foreach my $dir (@path) {
my $fn = File::Spec->canonpath(File::Spec->catfile($dir, $src_data));
next unless -e $fn;
return $fn;
}
- # Fall through to failure: file not found!
- return;
+ # We couldn't find a matching template, croak.
+ $self->croak_msg("Text::MicroMason::TemplatePath: template '$src_data' not found in path.\n");
}
# $contents = $mason->read_file( $filename );
@@ -39,7 +39,7 @@
my $path = File::Spec->canonpath( $file );
# warn "Checking for '$root' in '$path'\n";
( $path =~ /\A\Q$root\E(\/|(?<=\/))(?!\.\.)/ )
- or $self->croak_msg("Not in required base path '$root'");
+ or $self->croak_msg("Text::MicroMason::TemplatePath: Template not in required base path '$root'");
}
return $self->NEXT('read_file', $file );
@@ -139,6 +139,30 @@
=back
+=head2 EXCEPTIONS
+
+The following additional exceptions are generated by
+Text::MicroMason::TemplatePath when appropriate:
+
+=over 4
+
+=item *
+
+Text::MicroMason::TemplatePath: template '%s' not found in path.
+
+This indicates that the specified template name does not exist in any of
+the directories in the configured path.
+
+=item *
+
+Text::MicroMason::TemplatePath: Template not in required base path '%s'
+
+The template found in the configured template path was not within the
+configured strict_root directory. This may be caused by requesting an
+absolute template filename not within strict_root, or by specifying a
+strict_root which does not match the configured template path.
+
+=back
=head1 SEE ALSO
Modified: trunk/libtext-micromason-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtext-micromason-perl/debian/changelog?rev=46521&op=diff
==============================================================================
--- trunk/libtext-micromason-perl/debian/changelog (original)
+++ trunk/libtext-micromason-perl/debian/changelog Fri Oct 30 02:19:02 2009
@@ -1,4 +1,9 @@
-libtext-micromason-perl (2.0-4) UNRELEASED; urgency=low
+libtext-micromason-perl (2.02-1) UNRELEASED; urgency=low
+
+ [ Jonathan Yu ]
+ * New upstream release
+ * Standards-Version 3.8.3 (no changes)
+ * Added myself to Uploaders and Copyright
[ gregor herrmann ]
* debian/control: Changed: Switched Vcs-Browser field to ViewSVN
@@ -7,7 +12,7 @@
[ Christoph Berg ]
* Remove myself from Uploaders.
- -- Christoph Berg <myon at debian.org> Tue, 25 Aug 2009 21:51:49 +0200
+ -- Jonathan Yu <jawnsy at cpan.org> Thu, 29 Oct 2009 18:43:51 -0400
libtext-micromason-perl (2.0-3) unstable; urgency=low
Modified: trunk/libtext-micromason-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtext-micromason-perl/debian/control?rev=46521&op=diff
==============================================================================
--- trunk/libtext-micromason-perl/debian/control (original)
+++ trunk/libtext-micromason-perl/debian/control Fri Oct 30 02:19:02 2009
@@ -2,11 +2,11 @@
Section: perl
Priority: optional
Build-Depends: debhelper (>= 7.0.50), quilt (>= 0.46-7)
-Build-Depends-Indep: libclass-mixinfactory-perl (>= 0.9), libhtml-parser-perl,
- liburi-perl, perl (>= 5.8.8-12)
+Build-Depends-Indep: perl, libclass-mixinfactory-perl (>= 0.9),
+ libhtml-parser-perl, liburi-perl
Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
-Uploaders: gregor herrmann <gregoa at debian.org>
-Standards-Version: 3.8.1
+Uploaders: gregor herrmann <gregoa at debian.org>, Jonathan Yu <jawnsy at cpan.org>
+Standards-Version: 3.8.3
Homepage: http://search.cpan.org/dist/Text-MicroMason/
Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libtext-micromason-perl/
Vcs-Browser: http://svn.debian.org/viewsvn/pkg-perl/trunk/libtext-micromason-perl/
@@ -17,9 +17,7 @@
Suggests: libhtml-parser-perl, libtext-balanced-perl, liburi-perl
Description: simple and extensible templating module
Text::MicroMason interpolates blocks of Perl code embedded into text strings.
- .
Each MicroMason object acts as a "template compiler" which converts templates
from text-with-embedded-code formats into ready-to-execute Perl subroutines.
- .
If you want to use the Text::Template compatibility mode, you will also need
to install Text::Balanced.
Modified: trunk/libtext-micromason-perl/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtext-micromason-perl/debian/copyright?rev=46521&op=diff
==============================================================================
--- trunk/libtext-micromason-perl/debian/copyright (original)
+++ trunk/libtext-micromason-perl/debian/copyright Fri Oct 30 02:19:02 2009
@@ -5,17 +5,18 @@
Upstream-Name: Text-MicroMason
Files: *
-Copyright: 2002, 2003, 2004, 2005 Matthew Simon Cavalletto.
+Copyright: 2002-2005, Matthew Simon Cavalletto <evo at cpan.org>
Portions copyright 2001 Evolution Online Systems, Inc.
License-Alias: Perl
License: Artistic | GPL-1+
Files: debian/*
-Copyright: 2007, 2009, Christoph Berg <myon at debian.org>
+Copyright: 2009, Jonathan Yu <jawnsy at cpan.org>
2009, gregor herrmann <gregoa at debian.org>
+ 2007-2009, Christoph Berg <myon at debian.org>
License: Artistic | GPL-1+
-X-Comment: Packaging of this module was kindly funded by Dembach Goo Informatik on
- behalf of Allianz 24.
+X-Comment: Packaging of this module was kindly funded by Dembach Goo
+ Informatik on behalf of Allianz 24.
License: Artistic
This program is free software; you can redistribute it and/or modify
More information about the Pkg-perl-cvs-commits
mailing list