r77875 - in /trunk/libhtml-format-perl: ./ debian/ lib/HTML/ t/
angelabad-guest at users.alioth.debian.org
angelabad-guest at users.alioth.debian.org
Tue Jul 26 14:03:18 UTC 2011
Author: angelabad-guest
Date: Tue Jul 26 14:03:15 2011
New Revision: 77875
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=77875
Log:
New upstream release
Modified:
trunk/libhtml-format-perl/Build.PL
trunk/libhtml-format-perl/Changes
trunk/libhtml-format-perl/META.json
trunk/libhtml-format-perl/META.yml
trunk/libhtml-format-perl/README
trunk/libhtml-format-perl/debian/changelog
trunk/libhtml-format-perl/debian/control
trunk/libhtml-format-perl/debian/copyright
trunk/libhtml-format-perl/lib/HTML/FormatPS.pm
trunk/libhtml-format-perl/lib/HTML/FormatRTF.pm
trunk/libhtml-format-perl/lib/HTML/FormatText.pm
trunk/libhtml-format-perl/lib/HTML/Formatter.pm
trunk/libhtml-format-perl/t/01_ps.t
trunk/libhtml-format-perl/t/02_rtf.t
trunk/libhtml-format-perl/t/03_text.t
trunk/libhtml-format-perl/t/rt69426.t
Modified: trunk/libhtml-format-perl/Build.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-format-perl/Build.PL?rev=77875&op=diff
==============================================================================
--- trunk/libhtml-format-perl/Build.PL (original)
+++ trunk/libhtml-format-perl/Build.PL Tue Jul 26 14:03:15 2011
@@ -27,7 +27,7 @@
'Gisle Aas <gisle at ActiveState.com>'
],
'dist_name' => 'HTML-Format',
- 'dist_version' => '2.09',
+ 'dist_version' => '2.10',
'license' => 'perl',
'module_name' => 'HTML::Format',
'recommends' => {},
Modified: trunk/libhtml-format-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-format-perl/Changes?rev=77875&op=diff
==============================================================================
--- trunk/libhtml-format-perl/Changes (original)
+++ trunk/libhtml-format-perl/Changes Tue Jul 26 14:03:15 2011
@@ -1,3 +1,9 @@
+2.10 2011-07-18 17:07:35 Europe/London
+ - Tests reworked to not use subtests. Development versions
+ of Test::More do not support subtests, and the smokers
+ that are running with these dev versions then send me
+ confusing test failures. This is a pain.
+
2.09 2011-07-15 14:20:12 Europe/London
- Reworking of HTML quote issue in FormatPS
- Now remap all double quotes to " in FormatPS (which is not
Modified: trunk/libhtml-format-perl/META.json
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-format-perl/META.json?rev=77875&op=diff
==============================================================================
--- trunk/libhtml-format-perl/META.json (original)
+++ trunk/libhtml-format-perl/META.json Tue Jul 26 14:03:15 2011
@@ -67,19 +67,19 @@
"provides" : {
"HTML::FormatPS" : {
"file" : "lib/HTML/FormatPS.pm",
- "version" : "2.09"
+ "version" : "2.10"
},
"HTML::FormatRTF" : {
"file" : "lib/HTML/FormatRTF.pm",
- "version" : "2.09"
+ "version" : "2.10"
},
"HTML::FormatText" : {
"file" : "lib/HTML/FormatText.pm",
- "version" : "2.09"
+ "version" : "2.10"
},
"HTML::Formatter" : {
"file" : "lib/HTML/Formatter.pm",
- "version" : "2.09"
+ "version" : "2.10"
}
},
"release_status" : "stable",
@@ -95,7 +95,7 @@
"web" : "http://github.com/nigelm/html-format"
}
},
- "version" : "2.09",
+ "version" : "2.10",
"x_Dist_Zilla" : {
"plugins" : [
{
Modified: trunk/libhtml-format-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-format-perl/META.yml?rev=77875&op=diff
==============================================================================
--- trunk/libhtml-format-perl/META.yml (original)
+++ trunk/libhtml-format-perl/META.yml Tue Jul 26 14:03:15 2011
@@ -26,16 +26,16 @@
provides:
HTML::FormatPS:
file: lib/HTML/FormatPS.pm
- version: 2.09
+ version: 2.10
HTML::FormatRTF:
file: lib/HTML/FormatRTF.pm
- version: 2.09
+ version: 2.10
HTML::FormatText:
file: lib/HTML/FormatText.pm
- version: 2.09
+ version: 2.10
HTML::Formatter:
file: lib/HTML/Formatter.pm
- version: 2.09
+ version: 2.10
requires:
Carp: 0
Data::Dumper: 0
@@ -62,7 +62,7 @@
bugtracker: http://rt.cpan.org/Public/Dist/Display.html?Name=HTML-Format
homepage: http://search.cpan.org/dist/HTML-Format
repository: git://github.com/nigelm/html-format.git
-version: 2.09
+version: 2.10
x_Dist_Zilla:
plugins:
-
Modified: trunk/libhtml-format-perl/README
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-format-perl/README?rev=77875&op=diff
==============================================================================
--- trunk/libhtml-format-perl/README (original)
+++ trunk/libhtml-format-perl/README Tue Jul 26 14:03:15 2011
@@ -2,7 +2,7 @@
HTML::Formatter - Base class for HTML formatters
VERSION
- version 2.09
+ version 2.10
SYNOPSIS
use HTML::FormatSomething;
Modified: trunk/libhtml-format-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-format-perl/debian/changelog?rev=77875&op=diff
==============================================================================
--- trunk/libhtml-format-perl/debian/changelog (original)
+++ trunk/libhtml-format-perl/debian/changelog Tue Jul 26 14:03:15 2011
@@ -1,8 +1,12 @@
-libhtml-format-perl (2.09-2) UNRELEASED; urgency=low
+libhtml-format-perl (2.10-1) unstable; urgency=low
+ [ Angel Abad ]
+ * New upstream release
+
+ [ Ansgar Burchardt ]
* debian/changelog: Remove emacs' local variables section. (Closes: #634048)
- -- Ansgar Burchardt <ansgar at debian.org> Sat, 16 Jul 2011 12:59:31 +0200
+ -- Angel Abad <angelabad at gmail.com> Tue, 26 Jul 2011 16:02:49 +0200
libhtml-format-perl (2.09-1) unstable; urgency=low
Modified: trunk/libhtml-format-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-format-perl/debian/control?rev=77875&op=diff
==============================================================================
--- trunk/libhtml-format-perl/debian/control (original)
+++ trunk/libhtml-format-perl/debian/control Tue Jul 26 14:03:15 2011
@@ -1,22 +1,23 @@
Source: libhtml-format-perl
Section: perl
Priority: optional
-Build-Depends: debhelper (>= 8)
-Build-Depends-Indep: perl,
- libfile-slurp-perl,
+Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
+Uploaders: Jay Bonci <jaybonci at debian.org>,
+ Jonathan Yu <jawnsy at cpan.org>,
+ MartÃn Ferrari <tincho at debian.org>,
+ Fabrizio Regalli <fabreg at fabreg.it>,
+ Angel Abad <angelabad at gmail.com>
+Build-Depends: debhelper (>= 8),
+ perl
+Build-Depends-Indep: libfile-slurp-perl,
libfont-afm-perl,
libhtml-tree-perl,
libmodule-build-perl (>= 0.360100) | perl (>= 5.11.4),
libtest-simple-perl (>= 0.96) | perl (>= 5.13.4)
-Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
-Uploaders: Jay Bonci <jaybonci at debian.org>,
- Jonathan Yu <jawnsy at cpan.org>,
- MartÃn Ferrari <tincho at debian.org>,
- Fabrizio Regalli <fabreg at fabreg.it>
Standards-Version: 3.9.2
+Vcs-Browser: http://svn.debian.org/viewsvn/pkg-perl/trunk/libhtml-format-perl/
+Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libhtml-format-perl/
Homepage: http://search.cpan.org/dist/HTML-Format/
-Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libhtml-format-perl/
-Vcs-Browser: http://svn.debian.org/viewsvn/pkg-perl/trunk/libhtml-format-perl/
Package: libhtml-format-perl
Architecture: all
Modified: trunk/libhtml-format-perl/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-format-perl/debian/copyright?rev=77875&op=diff
==============================================================================
--- trunk/libhtml-format-perl/debian/copyright (original)
+++ trunk/libhtml-format-perl/debian/copyright Tue Jul 26 14:03:15 2011
@@ -14,11 +14,11 @@
2003, Hans Freitag <hafre at debian.org>
2004, Jay Bonci <jaybonci at debian.org>
2008, MartÃn Ferrari <tincho at debian.org>
+ 2011, Angel Abad <angelabad at gmail.com>
+ 2011, Ansgar Burchardt <ansgar at debian.org>
+ 2011, Fabrizio Regalli <fabreg at fabreg.it>
2011, Jonathan Yu <jawnsy at cpan.org>
- 2011, Fabrizio Regalli <fabreg at fabreg.it>
License: Artistic or GPL-1+
- It is being assumed that all maintainers did choose a license compatible with
- the license used by upstream
License: Artistic
This program is free software; you can redistribute it and/or modify
Modified: trunk/libhtml-format-perl/lib/HTML/FormatPS.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-format-perl/lib/HTML/FormatPS.pm?rev=77875&op=diff
==============================================================================
--- trunk/libhtml-format-perl/lib/HTML/FormatPS.pm (original)
+++ trunk/libhtml-format-perl/lib/HTML/FormatPS.pm Tue Jul 26 14:03:15 2011
@@ -13,7 +13,7 @@
use base 'HTML::Formatter';
-our $VERSION = '2.09'; # VERSION
+our $VERSION = '2.10'; # VERSION
our $AUTHORITY = 'cpan:NIGELM'; # AUTHORITY
# We now use Smart::Comments in place of the old DEBUG framework.
@@ -876,7 +876,7 @@
=head1 VERSION
-version 2.09
+version 2.10
=head1 SYNOPSIS
Modified: trunk/libhtml-format-perl/lib/HTML/FormatRTF.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-format-perl/lib/HTML/FormatRTF.pm?rev=77875&op=diff
==============================================================================
--- trunk/libhtml-format-perl/lib/HTML/FormatRTF.pm (original)
+++ trunk/libhtml-format-perl/lib/HTML/FormatRTF.pm Tue Jul 26 14:03:15 2011
@@ -13,7 +13,7 @@
use base 'HTML::Formatter';
-our $VERSION = '2.09'; # VERSION
+our $VERSION = '2.10'; # VERSION
our $AUTHORITY = 'cpan:NIGELM'; # AUTHORITY
# ------------------------------------------------------------------------
@@ -509,7 +509,7 @@
=head1 VERSION
-version 2.09
+version 2.10
=head1 SYNOPSIS
Modified: trunk/libhtml-format-perl/lib/HTML/FormatText.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-format-perl/lib/HTML/FormatText.pm?rev=77875&op=diff
==============================================================================
--- trunk/libhtml-format-perl/lib/HTML/FormatText.pm (original)
+++ trunk/libhtml-format-perl/lib/HTML/FormatText.pm Tue Jul 26 14:03:15 2011
@@ -13,7 +13,7 @@
use base 'HTML::Formatter';
-our $VERSION = '2.09'; # VERSION
+our $VERSION = '2.10'; # VERSION
our $AUTHORITY = 'cpan:NIGELM'; # AUTHORITY
# ------------------------------------------------------------------------
@@ -221,7 +221,7 @@
=head1 VERSION
-version 2.09
+version 2.10
=head1 SYNOPSIS
Modified: trunk/libhtml-format-perl/lib/HTML/Formatter.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-format-perl/lib/HTML/Formatter.pm?rev=77875&op=diff
==============================================================================
--- trunk/libhtml-format-perl/lib/HTML/Formatter.pm (original)
+++ trunk/libhtml-format-perl/lib/HTML/Formatter.pm Tue Jul 26 14:03:15 2011
@@ -14,7 +14,7 @@
# this should be commented out in release versions....
##use Smart::Comments;
-our $VERSION = '2.09'; # VERSION
+our $VERSION = '2.10'; # VERSION
our $AUTHORITY = 'cpan:NIGELM'; # AUTHORITY
#
@@ -798,7 +798,7 @@
=head1 VERSION
-version 2.09
+version 2.10
=head1 SYNOPSIS
Modified: trunk/libhtml-format-perl/t/01_ps.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-format-perl/t/01_ps.t?rev=77875&op=diff
==============================================================================
--- trunk/libhtml-format-perl/t/01_ps.t (original)
+++ trunk/libhtml-format-perl/t/01_ps.t Tue Jul 26 14:03:15 2011
@@ -4,14 +4,15 @@
use Test::More 0.96;
BEGIN { use_ok("HTML::FormatPS"); }
-my $obj = new_ok("HTML::FormatPS");
foreach my $infile ( glob( File::Spec->catfile( 't', 'data', 'in', '*.html' ) ) ) {
- subtest "Testing file handling for $infile" => sub {
- my $expfilename = ( File::Spec->splitpath($infile) )[2];
- $expfilename =~ s/\.html$/.ps/i;
- my $expfile = File::Spec->catfile( 't', 'data', 'expected', $expfilename );
- plan 'skip_all' unless ( -f $infile and -f $expfile );
+ my $obj = new_ok("HTML::FormatPS");
+ ok( -f $infile, "Testing file handling for $infile" );
+ my $expfilename = ( File::Spec->splitpath($infile) )[2];
+ $expfilename =~ s/\.html$/.ps/i;
+ my $expfile = File::Spec->catfile( 't', 'data', 'expected', $expfilename );
+ ok( -f $expfile, ' Expected result file exists' );
+ if ( -f $expfile ) {
# read file content - split into lines, but we exclude the
# structured comment lines starting with %% since they include
@@ -25,7 +26,7 @@
my $text = HTML::FormatPS->format_file( $infile, leftmargin => 5, rightmargin => 50 );
my $got_lines = [ grep !/^\%\%/, ( split( /\n/, $text ) ) ];
- ok( length($text), "Returned a string" );
+ ok( length($text), ' Returned a string from conversion' );
# It appears minor maths differences mean a few lines fail to match
# because a glyth is misplaced by a fraction of a point....
@@ -41,15 +42,15 @@
# test how good the match is
if ( scalar( @{$got_lines} ) == $ok_count ) {
- pass('Perfect match of postcript output');
+ pass(' Perfect match of postcript output');
}
else {
# we test for a 90% or better match
ok( ( ( scalar( @{$got_lines} ) - $ok_count ) <= ( scalar( @{$got_lines} ) / 10 ) ),
- 'Better than 90% output lines match' );
+ ' Better than 90% output lines match' );
}
- };
+ }
}
# finish up
Modified: trunk/libhtml-format-perl/t/02_rtf.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-format-perl/t/02_rtf.t?rev=77875&op=diff
==============================================================================
--- trunk/libhtml-format-perl/t/02_rtf.t (original)
+++ trunk/libhtml-format-perl/t/02_rtf.t Tue Jul 26 14:03:15 2011
@@ -4,14 +4,15 @@
use Test::More 0.96;
BEGIN { use_ok("HTML::FormatRTF"); }
-my $obj = new_ok("HTML::FormatRTF");
foreach my $infile ( glob( File::Spec->catfile( 't', 'data', 'in', '*.html' ) ) ) {
- subtest "Testing file handling for $infile" => sub {
- my $expfilename = ( File::Spec->splitpath($infile) )[2];
- $expfilename =~ s/\.html$/.rtf/i;
- my $expfile = File::Spec->catfile( 't', 'data', 'expected', $expfilename );
- plan 'skip_all' unless ( -f $infile and -f $expfile );
+ my $obj = new_ok("HTML::FormatRTF");
+ ok( -f $infile, "Testing file handling for $infile" );
+ my $expfilename = ( File::Spec->splitpath($infile) )[2];
+ $expfilename =~ s/\.html$/.rtf/i;
+ my $expfile = File::Spec->catfile( 't', 'data', 'expected', $expfilename );
+ ok( -f $expfile, ' Expected result file exists' );
+ if ( -f $expfile ) {
# read file content - split into lines, but we exclude the
# doccomm line since it includes a timestamp and version information
@@ -24,9 +25,9 @@
my $text = HTML::FormatRTF->format_file( $infile, leftmargin => 5, rightmargin => 50 );
my $got_lines = [ grep !/doccomm/, ( split( /\n/, $text ) ) ];
- ok( length($text), "Returned a string" );
- is_deeply( $got_lines, $exp_lines, "Correct text string returned" );
- };
+ ok( length($text), ' Returned a string from conversion' );
+ is_deeply( $got_lines, $exp_lines, ' Correct text string returned' );
+ }
}
# finish up
Modified: trunk/libhtml-format-perl/t/03_text.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-format-perl/t/03_text.t?rev=77875&op=diff
==============================================================================
--- trunk/libhtml-format-perl/t/03_text.t (original)
+++ trunk/libhtml-format-perl/t/03_text.t Tue Jul 26 14:03:15 2011
@@ -4,14 +4,15 @@
use Test::More 0.96;
BEGIN { use_ok("HTML::FormatText"); }
-my $obj = new_ok("HTML::FormatText");
foreach my $infile ( glob( File::Spec->catfile( 't', 'data', 'in', '*.html' ) ) ) {
- subtest "Testing file handling for $infile" => sub {
- my $expfilename = ( File::Spec->splitpath($infile) )[2];
- $expfilename =~ s/\.html$/.txt/i;
- my $expfile = File::Spec->catfile( 't', 'data', 'expected', $expfilename );
- plan 'skip_all' unless ( -f $infile and -f $expfile );
+ my $obj = new_ok("HTML::FormatText");
+ ok( -f $infile, "Testing file handling for $infile" );
+ my $expfilename = ( File::Spec->splitpath($infile) )[2];
+ $expfilename =~ s/\.html$/.txt/i;
+ my $expfile = File::Spec->catfile( 't', 'data', 'expected', $expfilename );
+ ok( -f $expfile, ' Expected result file exists' );
+ if ( -f $expfile ) {
# read file content - use older style slurp
local (*FH);
@@ -23,9 +24,9 @@
my $text = HTML::FormatText->format_file( $infile, leftmargin => 5, rightmargin => 50 );
my $got_lines = [ split( /\n/, $text ) ];
- ok( length($text), "Returned a string" );
- is_deeply( $got_lines, $exp_lines, "Correct text string returned" );
- };
+ ok( length($text), ' Returned a string from conversion' );
+ is_deeply( $got_lines, $exp_lines, ' Correct text string returned' );
+ }
}
# build a set of tests
@@ -36,17 +37,19 @@
[ "<p>Two</p><p>Paragraphs</p>", " Two\n\n Paragraphs\n", "Two Paragraphs" ],
[ "<p>An <em>italicised</em> paragraph</p>", " An italicised paragraph\n", "Em Formatted paragraph" ],
[ "<p>A <strong>bold</strong> paragraph</p>", " A bold paragraph\n", "Strong Formatted paragraph" ],
- [ "<ol><li>one</li><li>two</li><li>three</li></ol>", " 1. one\n\n 2. two\n\n 3. three\n", "Numbered list" ],
- [ "<ul><li>one</li><li>two</li><li>three</li></ul>", " * one\n\n * two\n\n * three\n", "Bullet list" ],
+ [ "<ol><li>one</li><li>two</li><li>three</li></ol>",
+ " 1. one\n\n 2. two\n\n 3. three\n",
+ "Numbered list"
+ ],
+ [ "<ul><li>one</li><li>two</li><li>three</li></ul>", " * one\n\n * two\n\n * three\n", "Bullet list" ],
);
# and step through them
-subtest 'Fragment tests' => sub {
- foreach my $frags (@test_fragments) {
- my $fmt = HTML::FormatText->new();
- is( $fmt->format_from_string( $frags->[0] ), $frags->[1], $frags->[2] );
- }
-};
+ok( scalar(@test_fragments), 'Fragment tests' );
+foreach my $frags (@test_fragments) {
+ my $fmt = HTML::FormatText->new();
+ is( $fmt->format_from_string( $frags->[0] ), $frags->[1], ( ' ' . $frags->[2] ) );
+}
# finish up
done_testing();
Modified: trunk/libhtml-format-perl/t/rt69426.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-format-perl/t/rt69426.t?rev=77875&op=diff
==============================================================================
--- trunk/libhtml-format-perl/t/rt69426.t (original)
+++ trunk/libhtml-format-perl/t/rt69426.t Tue Jul 26 14:03:15 2011
@@ -26,16 +26,16 @@
foreach my $quoted ( sort { $a cmp $b } keys %{$table} ) {
my $desc = $table->{$quoted};
- subtest "Checking $quoted -> $desc", sub {
my $obj = new_ok("HTML::FormatPS");
my $htree = new_ok("HTML::TreeBuilder");
+
my $html = '<html><body>The ' . $desc . ' is a ' . $quoted . ' character</body></html>';
- ok( $html, "HTML string containing an $desc" );
+ ok( $html, "HTML string containing an $desc should map to $desc" );
- ok( $htree->parse_content($html), 'Parse HTML content' );
+ ok( $htree->parse_content($html), ' Parse HTML content' );
my $result = $obj->format_string($html);
- ok( $result, 'Converted HTML object' );
+ ok( $result, ' Converted HTML object' );
# count high bit characters
my $count;
@@ -51,7 +51,7 @@
}
}
- ok( ( $count == 0 ), 'No unexpected high-bit characters found' );
+ ok( ( $count == 0 ), ' No unexpected high-bit characters found' );
## # stuff postscript out into file - uncomment if you need for debugging
## my $fn = $quoted;
@@ -61,10 +61,6 @@
## # tell details about errors - uncomment if needed
## diag( dump( { orig => $html, dump => $htree->dump, result => $result } ) ) if ($count);
-
- done_testing();
- };
-
}
# finish up
More information about the Pkg-perl-cvs-commits
mailing list