r64356 - in /trunk/libhtml-tree-perl: Changes META.yml debian/changelog debian/compat debian/control debian/copyright debian/patches/ debian/rules lib/HTML/Element.pm lib/HTML/Parse.pm lib/HTML/Tree.pm lib/HTML/TreeBuilder.pm t/attributes.t

ansgar at users.alioth.debian.org ansgar at users.alioth.debian.org
Thu Oct 28 13:58:10 UTC 2010


Author: ansgar
Date: Thu Oct 28 13:57:51 2010
New Revision: 64356

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=64356
Log:
* New upstream release.
* Use debhelper compat level 8.
* debian/rules: Remove /usr/bin from the package (htmltree is shipped as
  an example); we no longer need to fix the interpreter in htmltree.
* debian/copyright: Refer to /usr/share/common-licenses/GPL-1; refer to
  "Debian systems" instead of "Debian GNU/Linux systems".
* Update my email address.

Removed:
    trunk/libhtml-tree-perl/debian/patches/
Modified:
    trunk/libhtml-tree-perl/Changes
    trunk/libhtml-tree-perl/META.yml
    trunk/libhtml-tree-perl/debian/changelog
    trunk/libhtml-tree-perl/debian/compat
    trunk/libhtml-tree-perl/debian/control
    trunk/libhtml-tree-perl/debian/copyright
    trunk/libhtml-tree-perl/debian/rules
    trunk/libhtml-tree-perl/lib/HTML/Element.pm
    trunk/libhtml-tree-perl/lib/HTML/Parse.pm
    trunk/libhtml-tree-perl/lib/HTML/Tree.pm
    trunk/libhtml-tree-perl/lib/HTML/TreeBuilder.pm
    trunk/libhtml-tree-perl/t/attributes.t

Modified: trunk/libhtml-tree-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-tree-perl/Changes?rev=64356&op=diff
==============================================================================
--- trunk/libhtml-tree-perl/Changes (original)
+++ trunk/libhtml-tree-perl/Changes Thu Oct 28 13:57:51 2010
@@ -1,4 +1,9 @@
 Changelog for HTML-Tree
+4.1 Mon Oct 25 2010
+    [FIXES]
+    * '/' is a valid attribute (pull from tokuhirom) (RT #61809)
+    * Change check fo subclasses in as_HTML. (RT #61673)
+    * Fix ProhibitThreeArgumentOpen being triggered. (RT #61857)
 
 4.0    Mon Sep 20 2010
     [THINGS THAT MAY BREAK YOUR CODE OR TESTS]

Modified: trunk/libhtml-tree-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-tree-perl/META.yml?rev=64356&op=diff
==============================================================================
--- trunk/libhtml-tree-perl/META.yml (original)
+++ trunk/libhtml-tree-perl/META.yml Thu Oct 28 13:57:51 2010
@@ -1,12 +1,12 @@
 ---
 name: HTML-Tree
-version: 4.0
+version: 4.1
 author:
   - 'Jeff Fearn <Jeff.Fearn at gmail.com>'
 abstract: build and scan parse-trees of HTML
 license: perl
 resources:
-  license: ~
+  license: http://dev.perl.org/licenses/
 requires:
   HTML::Parser: 3.46
   HTML::Tagset: 3.02
@@ -23,7 +23,7 @@
     version: 1.16
   HTML::Element:
     file: lib/HTML/Element.pm
-    version: 4.0
+    version: 4.1
   HTML::Element::traverse:
     file: lib/HTML/Element/traverse.pm
     version: 0
@@ -32,10 +32,10 @@
     version: 2.71
   HTML::Tree:
     file: lib/HTML/Tree.pm
-    version: 4.0
+    version: 4.1
   HTML::TreeBuilder:
     file: lib/HTML/TreeBuilder.pm
-    version: 4.0
+    version: 4.1
 generated_by: Module::Build version 0.32
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.2.html

Modified: trunk/libhtml-tree-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-tree-perl/debian/changelog?rev=64356&op=diff
==============================================================================
--- trunk/libhtml-tree-perl/debian/changelog (original)
+++ trunk/libhtml-tree-perl/debian/changelog Thu Oct 28 13:57:51 2010
@@ -1,3 +1,15 @@
+libhtml-tree-perl (4.1-1) unstable; urgency=low
+
+  * New upstream release.
+  * Use debhelper compat level 8.
+  * debian/rules: Remove /usr/bin from the package (htmltree is shipped as
+    an example); we no longer need to fix the interpreter in htmltree.
+  * debian/copyright: Refer to /usr/share/common-licenses/GPL-1; refer to
+    "Debian systems" instead of "Debian GNU/Linux systems".
+  * Update my email address.
+
+ -- Ansgar Burchardt <ansgar at debian.org>  Thu, 28 Oct 2010 15:55:38 +0200
+
 libhtml-tree-perl (4.0-1) unstable; urgency=low
 
   * New upstream release, (closes: #374605)

Modified: trunk/libhtml-tree-perl/debian/compat
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-tree-perl/debian/compat?rev=64356&op=diff
==============================================================================
--- trunk/libhtml-tree-perl/debian/compat (original)
+++ trunk/libhtml-tree-perl/debian/compat Thu Oct 28 13:57:51 2010
@@ -1,1 +1,1 @@
-7
+8

Modified: trunk/libhtml-tree-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-tree-perl/debian/control?rev=64356&op=diff
==============================================================================
--- trunk/libhtml-tree-perl/debian/control (original)
+++ trunk/libhtml-tree-perl/debian/control Thu Oct 28 13:57:51 2010
@@ -1,10 +1,10 @@
 Source: libhtml-tree-perl
 Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
 Uploaders: Krzysztof Krzyżaniak (eloy) <eloy at debian.org>,
- Ansgar Burchardt <ansgar at 43-1.org>
+ Ansgar Burchardt <ansgar at debian.org>
 Section: perl
 Priority: optional
-Build-Depends: debhelper (>= 7.0.50~)
+Build-Depends: debhelper (>= 8)
 Build-Depends-Indep: perl, libhtml-parser-perl, libhtml-tagset-perl,
  libtest-pod-perl
 Homepage: http://search.cpan.org/dist/HTML-Tree/

Modified: trunk/libhtml-tree-perl/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-tree-perl/debian/copyright?rev=64356&op=diff
==============================================================================
--- trunk/libhtml-tree-perl/debian/copyright (original)
+++ trunk/libhtml-tree-perl/debian/copyright Thu Oct 28 13:57:51 2010
@@ -20,19 +20,21 @@
  © 2003,      Kenneth J. Pronovici <pronovic at debian.org>
  © 2005-2007, Krzysztof Krzyzaniak (eloy) <eloy at debian.org>
  © 2005,      Florian Ragwitz <rafl at debianforum.de>
- © 2010,      Ansgar Burchardt <ansgar at 43-1.org>
+ © 2010,      Ansgar Burchardt <ansgar at debian.org>
 License: Artistic or GPL-1+
 
 License: Artistic
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the Artistic License, which comes with Perl.
-    On Debian GNU/Linux systems, the complete text of the Artistic License
-    can be found in `/usr/share/common-licenses/Artistic'
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the Artistic License, which comes with Perl.
+ .
+ On Debian systems, the complete text of the Artistic License can be
+ found in `/usr/share/common-licenses/Artistic'.
 
 License: GPL-1+
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 1, or (at your option)
-    any later version.
-    On Debian GNU/Linux systems, the complete text of the GNU General
-    Public License can be found in `/usr/share/common-licenses/GPL'
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 1, or (at your option)
+ any later version.
+ .
+ On Debian systems, the complete text of version 1 of the GNU General
+ Public License can be found in `/usr/share/common-licenses/GPL-1'.

Modified: trunk/libhtml-tree-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-tree-perl/debian/rules?rev=64356&op=diff
==============================================================================
--- trunk/libhtml-tree-perl/debian/rules (original)
+++ trunk/libhtml-tree-perl/debian/rules Thu Oct 28 13:57:51 2010
@@ -5,6 +5,6 @@
 %:
 	dh $@
 
-override_dh_installexamples:
-	dh_installexamples
-	sed -i s,/usr/local/bin/perl,/usr/bin/perl, $(TMP)/usr/share/doc/libhtml-tree-perl/examples/htmltree
+override_dh_auto_install:
+	dh_auto_install
+	$(RM) -r $(TMP)/usr/bin

Modified: trunk/libhtml-tree-perl/lib/HTML/Element.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-tree-perl/lib/HTML/Element.pm?rev=64356&op=diff
==============================================================================
--- trunk/libhtml-tree-perl/lib/HTML/Element.pm (original)
+++ trunk/libhtml-tree-perl/lib/HTML/Element.pm Thu Oct 28 13:57:51 2010
@@ -6,7 +6,7 @@
 
 =head1 VERSION
 
-Version 4.0
+Version 4.1
 
 =cut
 
@@ -17,7 +17,7 @@
 use integer;    # vroom vroom!
 
 use vars qw( $VERSION );
-$VERSION = '4.0';
+$VERSION = '4.1';
 
 # This contorls encoding entities on output.
 # When set entities won't be re-encoded.
@@ -1554,8 +1554,8 @@
                 ( $node, $start, $depth ) = @_;
                 if ( ref $node ) {      # it's an element
 
-                    # detect bogus classes. RT #35948
-                    $node->isa( $self->element_class )
+                    # detect bogus classes. RT #35948, #61673
+                    $node->can('starttag')
                         or Carp::confess( "Object of class "
                             . ref($node)
                             . " cannot be processed by HTML::Element" );
@@ -1826,7 +1826,7 @@
                     foreach my $attr ( $node->all_attr_names() ) {
                         Carp::croak(
                             "$tag has an invalid attribute name '$attr'")
-                            unless ( $self->_valid_name($attr) );
+                            unless ( $attr eq '/' || $self->_valid_name($attr) );
                     }
 
                     if ( $empty_element_map->{$tag}

Modified: trunk/libhtml-tree-perl/lib/HTML/Parse.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-tree-perl/lib/HTML/Parse.pm?rev=64356&op=diff
==============================================================================
--- trunk/libhtml-tree-perl/lib/HTML/Parse.pm (original)
+++ trunk/libhtml-tree-perl/lib/HTML/Parse.pm Thu Oct 28 13:57:51 2010
@@ -1,4 +1,6 @@
 package HTML::Parse;
+
+use 5.008;
 
 =head1 NAME
 

Modified: trunk/libhtml-tree-perl/lib/HTML/Tree.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-tree-perl/lib/HTML/Tree.pm?rev=64356&op=diff
==============================================================================
--- trunk/libhtml-tree-perl/lib/HTML/Tree.pm (original)
+++ trunk/libhtml-tree-perl/lib/HTML/Tree.pm Thu Oct 28 13:57:51 2010
@@ -6,7 +6,7 @@
 
 =head1 VERSION
 
-4.0
+4.1
 
 =cut
 
@@ -18,7 +18,7 @@
 use HTML::TreeBuilder ();
 
 use vars qw( $VERSION );
-$VERSION = '4.0';
+$VERSION = '4.1';
 
 =head1 SYNOPSIS
 

Modified: trunk/libhtml-tree-perl/lib/HTML/TreeBuilder.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-tree-perl/lib/HTML/TreeBuilder.pm?rev=64356&op=diff
==============================================================================
--- trunk/libhtml-tree-perl/lib/HTML/TreeBuilder.pm (original)
+++ trunk/libhtml-tree-perl/lib/HTML/TreeBuilder.pm Thu Oct 28 13:57:51 2010
@@ -5,7 +5,7 @@
 use integer;    # vroom vroom!
 use Carp ();
 use vars qw(@ISA $VERSION $DEBUG);
-$VERSION = '4.0';
+$VERSION = '4.1';
 
 #---------------------------------------------------------------------------
 # Make a 'DEBUG' constant...

Modified: trunk/libhtml-tree-perl/t/attributes.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-tree-perl/t/attributes.t?rev=64356&op=diff
==============================================================================
--- trunk/libhtml-tree-perl/t/attributes.t (original)
+++ trunk/libhtml-tree-perl/t/attributes.t Thu Oct 28 13:57:51 2010
@@ -11,7 +11,7 @@
 use warnings;
 use strict;
 
-use Test::More tests => 2;
+use Test::More tests => 3;
 use HTML::TreeBuilder;
 
 my $tb = HTML::TreeBuilder->new();
@@ -33,5 +33,11 @@
     'catch invalid atribute names'
 );
 
+# xhtml
+my $xhtml = HTML::TreeBuilder->new_from_content(q{<img src="foo.gif" />});
+my $img = $xhtml->find_by_tag_name('img');
+like($img->as_XML(), qr{<img src="foo\.gif" />});
+$xhtml = $xhtml->delete;
+
 exit;
 




More information about the Pkg-perl-cvs-commits mailing list