r63147 - in /trunk/libhtml-template-pro-perl: ./ debian/ lib/HTML/Template/ t/ templates-Pro/
periapt-guest at users.alioth.debian.org
periapt-guest at users.alioth.debian.org
Fri Oct 1 14:38:55 UTC 2010
Author: periapt-guest
Date: Fri Oct 1 14:38:38 2010
New Revision: 63147
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=63147
Log:
New upstream release
Added:
trunk/libhtml-template-pro-perl/t/htp_version.t
- copied unchanged from r63146, branches/upstream/libhtml-template-pro-perl/current/t/htp_version.t
Modified:
trunk/libhtml-template-pro-perl/Changes
trunk/libhtml-template-pro-perl/MANIFEST
trunk/libhtml-template-pro-perl/META.yml
trunk/libhtml-template-pro-perl/Makefile.PL
trunk/libhtml-template-pro-perl/README
trunk/libhtml-template-pro-perl/debian/changelog
trunk/libhtml-template-pro-perl/exprpstr.inc
trunk/libhtml-template-pro-perl/lib/HTML/Template/PerlInterface.pod
trunk/libhtml-template-pro-perl/lib/HTML/Template/Pro.pm
trunk/libhtml-template-pro-perl/lib/HTML/Template/SYNTAX.pod
trunk/libhtml-template-pro-perl/perl-HTML-Template-Pro.spec
trunk/libhtml-template-pro-perl/t/HTML-Template-Expr.t
trunk/libhtml-template-pro-perl/templates-Pro/test_expr5.out
trunk/libhtml-template-pro-perl/templates-Pro/test_expr5.tmpl
trunk/libhtml-template-pro-perl/tmplpro_version.c
Modified: trunk/libhtml-template-pro-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-template-pro-perl/Changes?rev=63147&op=diff
==============================================================================
--- trunk/libhtml-template-pro-perl/Changes (original)
+++ trunk/libhtml-template-pro-perl/Changes Fri Oct 1 14:38:38 2010
@@ -299,3 +299,7 @@
- freed memory access error fixed.
- perl: CommonTest.pm hidden from installation
- tests: added generic json-packed test data
+
+09504 Tue Sep 28 17:16:55 EEST 2010
+ - bugfix in string comparision
+ - spelling fix by gregor herrmann <gregoa at debian.org>
Modified: trunk/libhtml-template-pro-perl/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-template-pro-perl/MANIFEST?rev=63147&op=diff
==============================================================================
--- trunk/libhtml-template-pro-perl/MANIFEST (original)
+++ trunk/libhtml-template-pro-perl/MANIFEST Fri Oct 1 14:38:38 2010
@@ -69,6 +69,7 @@
t/HTML-Template-Pro.t
t/HTML-Template.t
t/HTML/Template/Pro/CommonTest.pm
+t/htp_version.t
t/magic.t
t/pod.t
t/realloc.t
Modified: trunk/libhtml-template-pro-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-template-pro-perl/META.yml?rev=63147&op=diff
==============================================================================
--- trunk/libhtml-template-pro-perl/META.yml (original)
+++ trunk/libhtml-template-pro-perl/META.yml Fri Oct 1 14:38:38 2010
@@ -1,6 +1,6 @@
--- #YAML:1.0
name: HTML-Template-Pro
-version: 0.9503
+version: 0.9504
abstract: Perl/XS module to use HTML Templates from CGI scripts
author:
- I. Yu. Vlasenko <viy at altlinux.org>
Modified: trunk/libhtml-template-pro-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-template-pro-perl/Makefile.PL?rev=63147&op=diff
==============================================================================
--- trunk/libhtml-template-pro-perl/Makefile.PL (original)
+++ trunk/libhtml-template-pro-perl/Makefile.PL Fri Oct 1 14:38:38 2010
@@ -9,6 +9,8 @@
my ($INC, $DEFINE, $LIBS, $O_FILES, $STATIC_BUILD);
+our $VERSION='';
+eval `grep 'VERSION *=' lib/HTML/Template/Pro.pm`;
if (grep {/^DYNAMIC=1/} @ARGV) {
$STATIC_BUILD=0;
@@ -31,6 +33,8 @@
MMAP => 1,
IMITATE=>0,
);
+$DEF{PACKAGE_VERSION}=$VERSION if $VERSION;
+
&configure() if $STATIC_BUILD;
Modified: trunk/libhtml-template-pro-perl/README
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-template-pro-perl/README?rev=63147&op=diff
==============================================================================
--- trunk/libhtml-template-pro-perl/README (original)
+++ trunk/libhtml-template-pro-perl/README Fri Oct 1 14:38:38 2010
@@ -1,4 +1,4 @@
-HTML-Template-Pro version 0.9503
+HTML-Template-Pro version 0.9504
==============================
DESCRIPTION
Modified: trunk/libhtml-template-pro-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-template-pro-perl/debian/changelog?rev=63147&op=diff
==============================================================================
--- trunk/libhtml-template-pro-perl/debian/changelog (original)
+++ trunk/libhtml-template-pro-perl/debian/changelog Fri Oct 1 14:38:38 2010
@@ -1,3 +1,9 @@
+libhtml-template-pro-perl (0.9504-1) UNRELEASED; urgency=low
+
+ * New upstream release
+
+ -- Nicholas Bamber <nicholas at periapt.co.uk> Fri, 01 Oct 2010 15:39:34 +0100
+
libhtml-template-pro-perl (0.9503-1) unstable; urgency=low
[ Nicholas Bamber ]
Modified: trunk/libhtml-template-pro-perl/exprpstr.inc
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-template-pro-perl/exprpstr.inc?rev=63147&op=diff
==============================================================================
--- trunk/libhtml-template-pro-perl/exprpstr.inc (original)
+++ trunk/libhtml-template-pro-perl/exprpstr.inc Fri Oct 1 14:38:38 2010
@@ -86,6 +86,7 @@
const char* in_a=a.begin;
const char* in_b=b.begin;
if (in_a==NULL || in_b==NULL) return in_a == in_b;
+ if (in_a==a.endnext) return in_b==b.endnext;
while (in_a<a.endnext && in_b < b.endnext && *in_a++==*in_b++);
if (in_a==a.endnext && in_b==b.endnext && *(--in_a) == *(--in_b)) return 1; else return 0;
}
Modified: trunk/libhtml-template-pro-perl/lib/HTML/Template/PerlInterface.pod
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-template-pro-perl/lib/HTML/Template/PerlInterface.pod?rev=63147&op=diff
==============================================================================
--- trunk/libhtml-template-pro-perl/lib/HTML/Template/PerlInterface.pod (original)
+++ trunk/libhtml-template-pro-perl/lib/HTML/Template/PerlInterface.pod Fri Oct 1 14:38:38 2010
@@ -386,7 +386,7 @@
keys in every hash it will find in "param" tree, which is sometimes
an expensive operation. To avoid this, set case_sensitive => 1.
-If case conversion is nessessary, there is an alternative lightweight
+If case conversion is necessary, there is an alternative lightweight
option tmpl_var_case, which is HTML::Template::Pro specific.
Note that case_sensitive is wrapper-only option: it is not implemented
@@ -540,7 +540,7 @@
template tags.
In the most simple usage, you simply assign a code reference to the
-filter parameter. This subroutine will recieve a single argument - a
+filter parameter. This subroutine will receive a single argument - a
reference to a string containing the template file text. Here is an
example that accepts templates with tags that look like "!!!ZAP_VAR
FOO!!!" and transforms them into HTML::Template tags:
@@ -630,7 +630,7 @@
$self->param(PARAM => 'value');
# with a subroutine reference that gets called to get the value
- # of the scalar. The sub will recieve the template object as a
+ # of the scalar. The sub will receive the template object as a
# parameter.
$self->param(PARAM => sub { return 'value' });
@@ -902,7 +902,7 @@
HTML::Template::Expr->register_function(func_name => \&func_handler);
You provide a subroutine reference that will be called during output.
-It will recieve as arguments the parameters specified in the template.
+It will receive as arguments the parameters specified in the template.
For example, here's a function that checks if a directory exists:
sub directory_exists {
@@ -982,7 +982,7 @@
option to be set, whereas currently HTML::Template::Expr does.
Anyway, this also will hopefully go away in a future version of
HTML::Template::Expr, so if you need global_vars in your templates
-then you should set it explicitely.
+then you should set it explicitly.
Modified: trunk/libhtml-template-pro-perl/lib/HTML/Template/Pro.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-template-pro-perl/lib/HTML/Template/Pro.pm?rev=63147&op=diff
==============================================================================
--- trunk/libhtml-template-pro-perl/lib/HTML/Template/Pro.pm (original)
+++ trunk/libhtml-template-pro-perl/lib/HTML/Template/Pro.pm Fri Oct 1 14:38:38 2010
@@ -12,7 +12,7 @@
use vars qw($VERSION @ISA @EXPORT_OK %EXPORT_TAGS);
@ISA = qw(DynaLoader Exporter);
-$VERSION = '0.9503';
+$VERSION = '0.9504';
@EXPORT_OK = qw/ASK_NAME_DEFAULT ASK_NAME_AS_IS ASK_NAME_LOWERCASE ASK_NAME_UPPERCASE ASK_NAME_MASK/;
%EXPORT_TAGS = (const => [qw/ASK_NAME_DEFAULT ASK_NAME_AS_IS ASK_NAME_LOWERCASE ASK_NAME_UPPERCASE ASK_NAME_MASK/]);
@@ -462,7 +462,7 @@
of HTML::Template (as of 2.9) and HTML::Template::Expr (as of 0.0.7).
It is not intended to be a complete replacement,
but to be a fast implementation of HTML::Template if you don't need
-quering, the extended facility of HTML::Template.
+querying, the extended facility of HTML::Template.
Designed for heavy upload, resource limitations, abcence of mod_perl.
HTML::Template::Pro has complete support of filters and HTML::Template::Expr's
Modified: trunk/libhtml-template-pro-perl/lib/HTML/Template/SYNTAX.pod
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-template-pro-perl/lib/HTML/Template/SYNTAX.pod?rev=63147&op=diff
==============================================================================
--- trunk/libhtml-template-pro-perl/lib/HTML/Template/SYNTAX.pod (original)
+++ trunk/libhtml-template-pro-perl/lib/HTML/Template/SYNTAX.pod Fri Oct 1 14:38:38 2010
@@ -282,7 +282,7 @@
directly. See below for more information on HTML_TEMPLATE_ROOT and
the "path" option to new().
-As a protection against infinitly recursive includes, an arbitary
+As a protection against infinitly recursive includes, an arbitrary
limit of 10 levels deep is imposed. You can alter this limit with the
"max_includes" option. See the entry for the "max_includes" option
below for more details.
@@ -607,7 +607,7 @@
HTML::Template::Pro by Stanislav Yadykin <tosick at altlinux.ru>.
Currently it is not included in official distribution of HTML::Template::Expr.
-Standart regexp syntax:
+Standard regexp syntax:
=over 4
Modified: trunk/libhtml-template-pro-perl/perl-HTML-Template-Pro.spec
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-template-pro-perl/perl-HTML-Template-Pro.spec?rev=63147&op=diff
==============================================================================
--- trunk/libhtml-template-pro-perl/perl-HTML-Template-Pro.spec (original)
+++ trunk/libhtml-template-pro-perl/perl-HTML-Template-Pro.spec Fri Oct 1 14:38:38 2010
@@ -6,7 +6,7 @@
%define module HTML-Template-Pro
Name: perl-%module
-Version: 0.9503
+Version: 0.9504
Release: alt1
Packager: Igor Yu. Vlasenko <viy at altlinux.org>
@@ -54,6 +54,9 @@
%perl_vendor_man3dir/*
%changelog
+* Tue Sep 28 2010 Igor Vlasenko <viy at altlinux.ru> 0.9504-alt1
+- new version; see Changes
+
* Sat Aug 28 2010 Igor Vlasenko <viy at altlinux.ru> 0.9503-alt1
- new version; see Changes
Modified: trunk/libhtml-template-pro-perl/t/HTML-Template-Expr.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-template-pro-perl/t/HTML-Template-Expr.t?rev=63147&op=diff
==============================================================================
--- trunk/libhtml-template-pro-perl/t/HTML-Template-Expr.t (original)
+++ trunk/libhtml-template-pro-perl/t/HTML-Template-Expr.t Fri Oct 1 14:38:38 2010
@@ -24,7 +24,7 @@
HTML::Template::Pro->register_function( f2 => sub { return "F2: @_"; });
HTML::Template::Pro->register_function( fUNDEF => sub { return undef; });
-my @exprset1=(ONE=>1,TWO=>2,THREE=>3,ZERO=>0,MINUSTEN=>-10, FILE=>'test_if1.tmpl', TWENTY=>20,FOURTY=>50);
+my @exprset1=(ONE=>1,TWO=>2,THREE=>3,ZERO=>0,MINUSTEN=>-10, FILE=>'test_if1.tmpl', TWENTY=>20,FOURTY=>50, EMPTYSTR=>'');
my @brunoext=('FOO.BAR'=>'<test passed>');
my @refset1=(
HASHREF0=>[],
Modified: trunk/libhtml-template-pro-perl/templates-Pro/test_expr5.out
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-template-pro-perl/templates-Pro/test_expr5.out?rev=63147&op=diff
==============================================================================
--- trunk/libhtml-template-pro-perl/templates-Pro/test_expr5.out (original)
+++ trunk/libhtml-template-pro-perl/templates-Pro/test_expr5.out Fri Oct 1 14:38:38 2010
@@ -15,4 +15,11 @@
false:0
true:1
+good
+good
+true:1
+true:1
+true:1
+false:0
+
</body></html>
Modified: trunk/libhtml-template-pro-perl/templates-Pro/test_expr5.tmpl
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-template-pro-perl/templates-Pro/test_expr5.tmpl?rev=63147&op=diff
==============================================================================
--- trunk/libhtml-template-pro-perl/templates-Pro/test_expr5.tmpl (original)
+++ trunk/libhtml-template-pro-perl/templates-Pro/test_expr5.tmpl Fri Oct 1 14:38:38 2010
@@ -15,4 +15,11 @@
false:<TMPL_VAR EXPR="'\'1' eq '\'2'">
true:<TMPL_VAR EXPR="'\'1' ne '\'2'">
+<tmpl_if expr="(EMPTYSTR eq SystemRequest_MainNavigationSelection)">bad<tmpl_else>good</tmpl_if>
+<tmpl_if expr="(EMPTYSTR eq '')">good<tmpl_else>bad</tmpl_if>
+true:<TMPL_VAR EXPR="'a' ge ''">
+true:<TMPL_VAR EXPR="'a' gt ''">
+true:<TMPL_VAR EXPR="'a' le ''">
+false:<TMPL_VAR EXPR="'a' lt ''">
+
</body></html>
Modified: trunk/libhtml-template-pro-perl/tmplpro_version.c
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-template-pro-perl/tmplpro_version.c?rev=63147&op=diff
==============================================================================
--- trunk/libhtml-template-pro-perl/tmplpro_version.c (original)
+++ trunk/libhtml-template-pro-perl/tmplpro_version.c Fri Oct 1 14:38:38 2010
@@ -9,7 +9,11 @@
#endif
#ifndef PACKAGE_VERSION
+ #ifdef VERSION
+#define PACKAGE_VERSION VERSION
+ #else
#define PACKAGE_VERSION "0.0(not defined)"
+ #endif
#endif
/*************************************************
More information about the Pkg-perl-cvs-commits
mailing list