Hello community, here is the log from the commit of package perl-WWW-Mechanize for openSUSE:Factory checked in at 2018-12-19 13:25:59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-WWW-Mechanize (Old) and /work/SRC/openSUSE:Factory/.perl-WWW-Mechanize.new.28833 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-WWW-Mechanize" Wed Dec 19 13:25:59 2018 rev:24 rq:655843 version:1.90 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-WWW-Mechanize/perl-WWW-Mechanize.changes 2018-11-13 16:29:06.134338048 +0100 +++ /work/SRC/openSUSE:Factory/.perl-WWW-Mechanize.new.28833/perl-WWW-Mechanize.changes 2018-12-19 13:26:00.905191966 +0100 @@ -1,0 +2,15 @@ +Thu Dec 6 16:31:18 UTC 2018 - Stephan Kulow <co...@suse.com> + +- updated to 1.90 + see /usr/share/doc/packages/perl-WWW-Mechanize/Changes + + 1.90 2018-11-12 18:02:03Z + [DOCUMENTATION] + - Pod fixes (GH#261) (Julien Fiegehenn) + - Fixed pod error as reported by CPANTS. (GH#264) (Mohammad S Anwar) + + [ENHANCEMENTS] + - Upgrade to HTML::TreeBuilder version 5 to get support for weak references in + HTML::Element (GH#251) (Julien Fiegehenn) + +------------------------------------------------------------------- Old: ---- WWW-Mechanize-1.89.tar.gz New: ---- WWW-Mechanize-1.90.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-WWW-Mechanize.spec ++++++ --- /var/tmp/diff_new_pack.PLJPqo/_old 2018-12-19 13:26:01.473191274 +0100 +++ /var/tmp/diff_new_pack.PLJPqo/_new 2018-12-19 13:26:01.477191270 +0100 @@ -17,7 +17,7 @@ Name: perl-WWW-Mechanize -Version: 1.89 +Version: 1.90 Release: 0 %define cpan_name WWW-Mechanize Summary: Handy web browsing in a Perl object @@ -34,7 +34,7 @@ BuildRequires: perl(HTML::Form) >= 1.00 BuildRequires: perl(HTML::HeadParser) BuildRequires: perl(HTML::TokeParser) -BuildRequires: perl(HTML::TreeBuilder) +BuildRequires: perl(HTML::TreeBuilder) >= 5 BuildRequires: perl(HTTP::Cookies) BuildRequires: perl(HTTP::Daemon) BuildRequires: perl(HTTP::Request) >= 1.30 @@ -44,6 +44,8 @@ BuildRequires: perl(LWP) BuildRequires: perl(LWP::Simple) BuildRequires: perl(LWP::UserAgent) >= 5.827 +BuildRequires: perl(Perl::Critic) +BuildRequires: perl(Perl::Tidy) BuildRequires: perl(Test::Deep) BuildRequires: perl(Test::Fatal) BuildRequires: perl(Test::More) >= 0.96 @@ -56,7 +58,7 @@ Requires: perl(HTML::Form) >= 1.00 Requires: perl(HTML::HeadParser) Requires: perl(HTML::TokeParser) -Requires: perl(HTML::TreeBuilder) +Requires: perl(HTML::TreeBuilder) >= 5 Requires: perl(HTTP::Cookies) Requires: perl(HTTP::Request) >= 1.30 Requires: perl(HTTP::Request::Common) ++++++ WWW-Mechanize-1.89.tar.gz -> WWW-Mechanize-1.90.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WWW-Mechanize-1.89/CONTRIBUTORS new/WWW-Mechanize-1.90/CONTRIBUTORS --- old/WWW-Mechanize-1.89/CONTRIBUTORS 2018-10-18 21:13:40.000000000 +0200 +++ new/WWW-Mechanize-1.90/CONTRIBUTORS 2018-11-12 19:02:13.000000000 +0100 @@ -35,6 +35,7 @@ * Matthew Chae * Matt S Trout * Max Maischein + * Mohammad S Anwar * Neil Bowers * Nik LaBelle * Olaf Alders diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WWW-Mechanize-1.89/Changes new/WWW-Mechanize-1.90/Changes --- old/WWW-Mechanize-1.89/Changes 2018-10-18 21:13:40.000000000 +0200 +++ new/WWW-Mechanize-1.90/Changes 2018-11-12 19:02:13.000000000 +0100 @@ -1,5 +1,14 @@ Revision history for WWW::Mechanize +1.90 2018-11-12 18:02:03Z + [DOCUMENTATION] + - Pod fixes (GH#261) (Julien Fiegehenn) + - Fixed pod error as reported by CPANTS. (GH#264) (Mohammad S Anwar) + + [ENHANCEMENTS] + - Upgrade to HTML::TreeBuilder version 5 to get support for weak references in + HTML::Element (GH#251) (Julien Fiegehenn) + 1.89 2018-10-18 19:13:34Z [ENHANCEMENTS] - Add support to find_image() and find_all_images() via 'id' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WWW-Mechanize-1.89/MANIFEST new/WWW-Mechanize-1.90/MANIFEST --- old/WWW-Mechanize-1.89/MANIFEST 2018-10-18 21:13:40.000000000 +0200 +++ new/WWW-Mechanize-1.90/MANIFEST 2018-11-12 19:02:13.000000000 +0100 @@ -109,4 +109,5 @@ xt/author/live/encoding.t xt/author/live/wikipedia.t xt/author/pod-coverage.t +xt/author/pod-syntax.t xt/author/tidyall.t diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WWW-Mechanize-1.89/META.json new/WWW-Mechanize-1.90/META.json --- old/WWW-Mechanize-1.89/META.json 2018-10-18 21:13:40.000000000 +0200 +++ new/WWW-Mechanize-1.90/META.json 2018-11-12 19:02:13.000000000 +0100 @@ -40,6 +40,7 @@ "Test::Code::TidyAll" : "0.50", "Test::More" : "0.88", "Test::Needs" : "0", + "Test::Pod" : "1.41", "Test::Pod::Coverage" : "1.08", "Test::RequiresInternet" : "0", "constant" : "0", @@ -53,13 +54,13 @@ "HTML::Form" : "1.00", "HTML::HeadParser" : "0", "HTML::TokeParser" : "0", - "HTML::TreeBuilder" : "0", + "HTML::TreeBuilder" : "5", "HTTP::Cookies" : "0", "HTTP::Request" : "1.30", "HTTP::Request::Common" : "0", "LWP::UserAgent" : "5.827", "Pod::Usage" : "0", - "Scalar::Util" : "0", + "Scalar::Util" : "1.14", "Tie::RefHash" : "0", "URI::URL" : "0", "URI::file" : "0", @@ -85,6 +86,8 @@ "HTTP::Server::Simple::CGI" : "0", "LWP" : "0", "LWP::Simple" : "0", + "Perl::Critic" : "0", + "Perl::Tidy" : "0", "Test::Deep" : "0", "Test::Fatal" : "0", "Test::More" : "0.96", @@ -101,15 +104,15 @@ "provides" : { "WWW::Mechanize" : { "file" : "lib/WWW/Mechanize.pm", - "version" : "1.89" + "version" : "1.90" }, "WWW::Mechanize::Image" : { "file" : "lib/WWW/Mechanize/Image.pm", - "version" : "1.89" + "version" : "1.90" }, "WWW::Mechanize::Link" : { "file" : "lib/WWW/Mechanize/Link.pm", - "version" : "1.89" + "version" : "1.90" } }, "release_status" : "stable", @@ -124,7 +127,7 @@ "web" : "https://github.com/libwww-perl/WWW-Mechanize" } }, - "version" : "1.89", + "version" : "1.90", "x_Dist_Zilla" : { "perl" : { "version" : "5.026001" @@ -584,7 +587,7 @@ "branch" : null, "changelog" : "Changes", "signed" : 0, - "tag" : "v1.89", + "tag" : "v1.90", "tag_format" : "v%v", "tag_message" : "v%v" }, @@ -682,6 +685,11 @@ "version" : "0.029" }, { + "class" : "Dist::Zilla::Plugin::PodSyntaxTests", + "name" : "PodSyntaxTests", + "version" : "6.012" + }, + { "class" : "Dist::Zilla::Plugin::Prereqs", "config" : { "Dist::Zilla::Plugin::Prereqs" : { @@ -835,6 +843,7 @@ "Matthew Chae <msc...@cpan.org>", "Matt S Trout <m...@shadowcat.co.uk>", "Max Maischein <cor...@cpan.org>", + "Mohammad S Anwar <mohammad.an...@yahoo.com>", "Neil Bowers <n...@bowers.com>", "Nik LaBelle <nalabe...@gmail.com>", "Olaf Alders <o...@wundersolutions.com>", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WWW-Mechanize-1.89/META.yml new/WWW-Mechanize-1.90/META.yml --- old/WWW-Mechanize-1.89/META.yml 2018-10-18 21:13:40.000000000 +0200 +++ new/WWW-Mechanize-1.90/META.yml 2018-11-12 19:02:13.000000000 +0100 @@ -14,6 +14,8 @@ HTTP::Server::Simple::CGI: '0' LWP: '0' LWP::Simple: '0' + Perl::Critic: '0' + Perl::Tidy: '0' Test::Deep: '0' Test::Fatal: '0' Test::More: '0.96' @@ -41,26 +43,26 @@ provides: WWW::Mechanize: file: lib/WWW/Mechanize.pm - version: '1.89' + version: '1.90' WWW::Mechanize::Image: file: lib/WWW/Mechanize/Image.pm - version: '1.89' + version: '1.90' WWW::Mechanize::Link: file: lib/WWW/Mechanize/Link.pm - version: '1.89' + version: '1.90' requires: Carp: '0' Getopt::Long: '0' HTML::Form: '1.00' HTML::HeadParser: '0' HTML::TokeParser: '0' - HTML::TreeBuilder: '0' + HTML::TreeBuilder: '5' HTTP::Cookies: '0' HTTP::Request: '1.30' HTTP::Request::Common: '0' LWP::UserAgent: '5.827' Pod::Usage: '0' - Scalar::Util: '0' + Scalar::Util: '1.14' Tie::RefHash: '0' URI::URL: '0' URI::file: '0' @@ -72,7 +74,7 @@ bugtracker: https://github.com/libwww-perl/WWW-Mechanize/issues homepage: https://github.com/libwww-perl/WWW-Mechanize repository: https://github.com/libwww-perl/WWW-Mechanize.git -version: '1.89' +version: '1.90' x_Dist_Zilla: perl: version: '5.026001' @@ -430,7 +432,7 @@ branch: ~ changelog: Changes signed: 0 - tag: v1.89 + tag: v1.90 tag_format: v%v tag_message: v%v Dist::Zilla::Role::Git::Repo: @@ -501,6 +503,10 @@ name: RunExtraTests version: '0.029' - + class: Dist::Zilla::Plugin::PodSyntaxTests + name: PodSyntaxTests + version: '6.012' + - class: Dist::Zilla::Plugin::Prereqs config: Dist::Zilla::Plugin::Prereqs: @@ -623,6 +629,7 @@ - 'Matthew Chae <msc...@cpan.org>' - 'Matt S Trout <m...@shadowcat.co.uk>' - 'Max Maischein <cor...@cpan.org>' + - 'Mohammad S Anwar <mohammad.an...@yahoo.com>' - 'Neil Bowers <n...@bowers.com>' - 'Nik LaBelle <nalabe...@gmail.com>' - 'Olaf Alders <o...@wundersolutions.com>' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WWW-Mechanize-1.89/Makefile.PL new/WWW-Mechanize-1.90/Makefile.PL --- old/WWW-Mechanize-1.89/Makefile.PL 2018-10-18 21:13:40.000000000 +0200 +++ new/WWW-Mechanize-1.90/Makefile.PL 2018-11-12 19:02:13.000000000 +0100 @@ -25,13 +25,13 @@ "HTML::Form" => "1.00", "HTML::HeadParser" => 0, "HTML::TokeParser" => 0, - "HTML::TreeBuilder" => 0, + "HTML::TreeBuilder" => 5, "HTTP::Cookies" => 0, "HTTP::Request" => "1.30", "HTTP::Request::Common" => 0, "LWP::UserAgent" => "5.827", "Pod::Usage" => 0, - "Scalar::Util" => 0, + "Scalar::Util" => "1.14", "Tie::RefHash" => 0, "URI::URL" => 0, "URI::file" => 0, @@ -51,6 +51,8 @@ "HTTP::Server::Simple::CGI" => 0, "LWP" => 0, "LWP::Simple" => 0, + "Perl::Critic" => 0, + "Perl::Tidy" => 0, "Test::Deep" => 0, "Test::Fatal" => 0, "Test::More" => "0.96", @@ -62,7 +64,7 @@ "lib" => 0, "vars" => 0 }, - "VERSION" => "1.89", + "VERSION" => "1.90", "test" => { "TESTS" => "t/*.t t/local/*.t t/mech-dump/*.t" } @@ -81,7 +83,7 @@ "HTML::Form" => "1.00", "HTML::HeadParser" => 0, "HTML::TokeParser" => 0, - "HTML::TreeBuilder" => 0, + "HTML::TreeBuilder" => 5, "HTTP::Cookies" => 0, "HTTP::Daemon" => 0, "HTTP::Request" => "1.30", @@ -91,8 +93,10 @@ "LWP" => 0, "LWP::Simple" => 0, "LWP::UserAgent" => "5.827", + "Perl::Critic" => 0, + "Perl::Tidy" => 0, "Pod::Usage" => 0, - "Scalar::Util" => 0, + "Scalar::Util" => "1.14", "Test::Deep" => 0, "Test::Fatal" => 0, "Test::More" => "0.96", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WWW-Mechanize-1.89/README.md new/WWW-Mechanize-1.90/README.md --- old/WWW-Mechanize-1.89/README.md 2018-10-18 21:13:40.000000000 +0200 +++ new/WWW-Mechanize-1.90/README.md 2018-11-12 19:02:13.000000000 +0100 @@ -4,7 +4,7 @@ # VERSION -version 1.89 +version 1.90 # SYNOPSIS @@ -210,7 +210,7 @@ Globally sets the HTML::Form strict flag which causes form submission to croak if any of the passed fields don't exist in the form, and/or a value doesn't exist in a select element. This can still be disabled in individual - calls to `[submit_form()](#mech-submit_form)`. + calls to [`submit_form()|"$mech->submit_form( ... )"`](https://metacpan.org/pod/submit_form\(\)|"$mech->submit_form\( ... \)"). Default is off. @@ -410,9 +410,9 @@ - _$mech->content( format => 'text' )_ Returns a text-only version of the page, with all HTML markup - stripped. This feature requires _HTML::TreeBuilder_ to be installed, - or a fatal error will be thrown. This works only if the contents are - HTML. + stripped. This feature requires _HTML::TreeBuilder_ version 5 or higher + to be installed, or a fatal error will be thrown. This works only if + the contents are HTML. - _$mech->content( base\_href => \[$base\_href|undef\] )_ @@ -444,7 +444,7 @@ ## $mech->text() Returns the text of the current HTML content. If the content isn't -HTML, $mech will die. +HTML, `$mech` will die. The text is extracted by parsing the content, and then the extracted text is cached, so don't worry about performance of calling this @@ -1077,13 +1077,13 @@ fields don't exist on the page, and/or a value doesn't exist in a select element. By default HTML::Form sets this value to false. - This behavior can also be turned on globally by passing `` strict_forms => 1>> to - `<WWW::Mechanize-`new>>. If you do that, you can still disable it for individual calls - by passing `strict_forms => 0>> here.` `` + This behavior can also be turned on globally by passing `strict_forms => 1` to + `WWW::Mechanize->new`. If you do that, you can still disable it for individual calls + by passing `strict_forms => 0` here. If no form is selected, the first form found is used. -If _button_ is not passed, then the `[submit()](#mech-submit)` +If _button_ is not passed, then the [`submit()|"$mech->submit()"`](https://metacpan.org/pod/submit\(\)|"$mech->submit\(\)") method is used instead. If you want to submit a file and get its content from a scalar rather @@ -1655,11 +1655,3 @@ This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. - -# POD ERRORS - -Hey! **The above document had some coding errors, which are explained below:** - -- Around line 1157: - - Unterminated C< C< ... > > sequence diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WWW-Mechanize-1.89/bin/mech-dump new/WWW-Mechanize-1.90/bin/mech-dump --- old/WWW-Mechanize-1.89/bin/mech-dump 2018-10-18 21:13:40.000000000 +0200 +++ new/WWW-Mechanize-1.90/bin/mech-dump 2018-11-12 19:02:13.000000000 +0100 @@ -131,7 +131,7 @@ =head1 VERSION -version 1.89 +version 1.90 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WWW-Mechanize-1.89/cpanfile new/WWW-Mechanize-1.90/cpanfile --- old/WWW-Mechanize-1.89/cpanfile 2018-10-18 21:13:40.000000000 +0200 +++ new/WWW-Mechanize-1.90/cpanfile 2018-11-12 19:02:13.000000000 +0100 @@ -3,13 +3,13 @@ requires "HTML::Form" => "1.00"; requires "HTML::HeadParser" => "0"; requires "HTML::TokeParser" => "0"; -requires "HTML::TreeBuilder" => "0"; +requires "HTML::TreeBuilder" => "5"; requires "HTTP::Cookies" => "0"; requires "HTTP::Request" => "1.30"; requires "HTTP::Request::Common" => "0"; requires "LWP::UserAgent" => "5.827"; requires "Pod::Usage" => "0"; -requires "Scalar::Util" => "0"; +requires "Scalar::Util" => "1.14"; requires "Tie::RefHash" => "0"; requires "URI::URL" => "0"; requires "URI::file" => "0"; @@ -30,6 +30,8 @@ requires "HTTP::Server::Simple::CGI" => "0"; requires "LWP" => "0"; requires "LWP::Simple" => "0"; + requires "Perl::Critic" => "0"; + requires "Perl::Tidy" => "0"; requires "Test::Deep" => "0"; requires "Test::Fatal" => "0"; requires "Test::More" => "0.96"; @@ -61,6 +63,7 @@ requires "Test::Code::TidyAll" => "0.50"; requires "Test::More" => "0.88"; requires "Test::Needs" => "0"; + requires "Test::Pod" => "1.41"; requires "Test::Pod::Coverage" => "1.08"; requires "Test::RequiresInternet" => "0"; requires "constant" => "0"; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WWW-Mechanize-1.89/dist.ini new/WWW-Mechanize-1.90/dist.ini --- old/WWW-Mechanize-1.89/dist.ini 2018-10-18 21:13:40.000000000 +0200 +++ new/WWW-Mechanize-1.90/dist.ini 2018-11-12 19:02:13.000000000 +0100 @@ -19,11 +19,16 @@ [RunExtraTests] +[PodSyntaxTests] + [Prereqs / RuntimeRequires] perl = 5.006 +Scalar::Util = 1.14 [Prereqs / TestRequires] CGI = 4.32 +Perl::Critic = 0 +Perl::Tidy = 0 [Prereqs / DevelopRequires] Code::TidyAll::Plugin::SortLines::Naturally = 0.000003 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WWW-Mechanize-1.89/lib/WWW/Mechanize/Cookbook.pod new/WWW-Mechanize-1.90/lib/WWW/Mechanize/Cookbook.pod --- old/WWW-Mechanize-1.89/lib/WWW/Mechanize/Cookbook.pod 2018-10-18 21:13:40.000000000 +0200 +++ new/WWW-Mechanize-1.90/lib/WWW/Mechanize/Cookbook.pod 2018-11-12 19:02:13.000000000 +0100 @@ -13,7 +13,7 @@ =head1 VERSION -version 1.89 +version 1.90 =head1 INTRODUCTION diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WWW-Mechanize-1.89/lib/WWW/Mechanize/Examples.pod new/WWW-Mechanize-1.90/lib/WWW/Mechanize/Examples.pod --- old/WWW-Mechanize-1.89/lib/WWW/Mechanize/Examples.pod 2018-10-18 21:13:40.000000000 +0200 +++ new/WWW-Mechanize-1.90/lib/WWW/Mechanize/Examples.pod 2018-11-12 19:02:13.000000000 +0100 @@ -13,7 +13,7 @@ =head1 VERSION -version 1.89 +version 1.90 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WWW-Mechanize-1.89/lib/WWW/Mechanize/FAQ.pod new/WWW-Mechanize-1.90/lib/WWW/Mechanize/FAQ.pod --- old/WWW-Mechanize-1.89/lib/WWW/Mechanize/FAQ.pod 2018-10-18 21:13:40.000000000 +0200 +++ new/WWW-Mechanize-1.90/lib/WWW/Mechanize/FAQ.pod 2018-11-12 19:02:13.000000000 +0100 @@ -13,7 +13,7 @@ =head1 VERSION -version 1.89 +version 1.90 =head1 How to get help with WWW::Mechanize diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WWW-Mechanize-1.89/lib/WWW/Mechanize/Image.pm new/WWW-Mechanize-1.90/lib/WWW/Mechanize/Image.pm --- old/WWW-Mechanize-1.89/lib/WWW/Mechanize/Image.pm 2018-10-18 21:13:40.000000000 +0200 +++ new/WWW-Mechanize-1.90/lib/WWW/Mechanize/Image.pm 2018-11-12 19:02:13.000000000 +0100 @@ -3,7 +3,7 @@ use strict; use warnings; -our $VERSION = '1.89'; +our $VERSION = '1.90'; #ABSTRACT: Image object for WWW::Mechanize @@ -69,7 +69,7 @@ =head1 VERSION -version 1.89 +version 1.90 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WWW-Mechanize-1.89/lib/WWW/Mechanize/Link.pm new/WWW-Mechanize-1.90/lib/WWW/Mechanize/Link.pm --- old/WWW-Mechanize-1.89/lib/WWW/Mechanize/Link.pm 2018-10-18 21:13:40.000000000 +0200 +++ new/WWW-Mechanize-1.90/lib/WWW/Mechanize/Link.pm 2018-11-12 19:02:13.000000000 +0100 @@ -3,7 +3,7 @@ use strict; use warnings; -our $VERSION = '1.89'; +our $VERSION = '1.90'; #ABSTRACT: Link object for WWW::Mechanize @@ -65,7 +65,7 @@ =head1 VERSION -version 1.89 +version 1.90 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WWW-Mechanize-1.89/lib/WWW/Mechanize.pm new/WWW-Mechanize-1.90/lib/WWW/Mechanize.pm --- old/WWW-Mechanize-1.89/lib/WWW/Mechanize.pm 2018-10-18 21:13:40.000000000 +0200 +++ new/WWW-Mechanize-1.90/lib/WWW/Mechanize.pm 2018-11-12 19:02:13.000000000 +0100 @@ -6,7 +6,7 @@ use strict; use warnings; -our $VERSION = '1.89'; +our $VERSION = '1.90'; use Tie::RefHash; use HTTP::Request 1.30; @@ -327,13 +327,16 @@ my $self = shift; if ( not defined $self->{text} ) { - require HTML::TreeBuilder; + unless ( exists $INC{'HTML::TreeBuilder'} ) { + require HTML::TreeBuilder; + HTML::TreeBuilder->VERSION(5); + HTML::TreeBuilder->import('-weak'); + } my $tree = HTML::TreeBuilder->new(); $tree->parse( $self->content ); $tree->eof(); $tree->elementify(); # just for safety $self->{text} = $tree->as_text(); - $tree->delete; } return $self->{text}; @@ -1684,7 +1687,7 @@ =head1 VERSION -version 1.89 +version 1.90 =head1 SYNOPSIS @@ -1911,7 +1914,7 @@ Globally sets the HTML::Form strict flag which causes form submission to croak if any of the passed fields don't exist in the form, and/or a value doesn't exist in a select element. This can still be disabled in individual -calls to C<L<< submit_form()|"$mech->submit_form( ... )" >>>. +calls to L<C<< submit_form()|"$mech->submit_form( ... )" >>>. Default is off. @@ -2133,9 +2136,9 @@ =item I<< $mech->content( format => 'text' ) >> Returns a text-only version of the page, with all HTML markup -stripped. This feature requires I<HTML::TreeBuilder> to be installed, -or a fatal error will be thrown. This works only if the contents are -HTML. +stripped. This feature requires I<HTML::TreeBuilder> version 5 or higher +to be installed, or a fatal error will be thrown. This works only if +the contents are HTML. =item I<< $mech->content( base_href => [$base_href|undef] ) >> @@ -2169,7 +2172,7 @@ =head2 $mech->text() Returns the text of the current HTML content. If the content isn't -HTML, $mech will die. +HTML, C<$mech> will die. The text is extracted by parsing the content, and then the extracted text is cached, so don't worry about performance of calling this @@ -2830,15 +2833,15 @@ fields don't exist on the page, and/or a value doesn't exist in a select element. By default HTML::Form sets this value to false. -This behavior can also be turned on globally by passing C<< strict_forms => 1>> to -C<<WWW::Mechanize->new>>. If you do that, you can still disable it for individual calls -by passing C<< strict_forms => 0>> here. +This behavior can also be turned on globally by passing C<< strict_forms => 1 >> to +C<< WWW::Mechanize->new >>. If you do that, you can still disable it for individual calls +by passing C<< strict_forms => 0 >> here. =back If no form is selected, the first form found is used. -If I<button> is not passed, then the C<L<< submit()|"$mech->submit()" >>> +If I<button> is not passed, then the L<C<< submit()|"$mech->submit()" >>> method is used instead. If you want to submit a file and get its content from a scalar rather diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WWW-Mechanize-1.89/t/00-report-prereqs.dd new/WWW-Mechanize-1.90/t/00-report-prereqs.dd --- old/WWW-Mechanize-1.89/t/00-report-prereqs.dd 2018-10-18 21:13:40.000000000 +0200 +++ new/WWW-Mechanize-1.90/t/00-report-prereqs.dd 2018-11-12 19:02:13.000000000 +0100 @@ -18,6 +18,7 @@ 'Test::Code::TidyAll' => '0.50', 'Test::More' => '0.88', 'Test::Needs' => '0', + 'Test::Pod' => '1.41', 'Test::Pod::Coverage' => '1.08', 'Test::RequiresInternet' => '0', 'constant' => '0', @@ -31,13 +32,13 @@ 'HTML::Form' => '1.00', 'HTML::HeadParser' => '0', 'HTML::TokeParser' => '0', - 'HTML::TreeBuilder' => '0', + 'HTML::TreeBuilder' => '5', 'HTTP::Cookies' => '0', 'HTTP::Request' => '1.30', 'HTTP::Request::Common' => '0', 'LWP::UserAgent' => '5.827', 'Pod::Usage' => '0', - 'Scalar::Util' => '0', + 'Scalar::Util' => '1.14', 'Tie::RefHash' => '0', 'URI::URL' => '0', 'URI::file' => '0', @@ -63,6 +64,8 @@ 'HTTP::Server::Simple::CGI' => '0', 'LWP' => '0', 'LWP::Simple' => '0', + 'Perl::Critic' => '0', + 'Perl::Tidy' => '0', 'Test::Deep' => '0', 'Test::Fatal' => '0', 'Test::More' => '0.96', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WWW-Mechanize-1.89/t/content.t new/WWW-Mechanize-1.90/t/content.t --- old/WWW-Mechanize-1.89/t/content.t 2018-10-18 21:13:40.000000000 +0200 +++ new/WWW-Mechanize-1.90/t/content.t 2018-11-12 19:02:13.000000000 +0100 @@ -40,8 +40,8 @@ =cut SKIP: { - eval 'use HTML::TreeBuilder'; - skip 'HTML::TreeBuilder not installed', 2 if $@; + eval 'use HTML::TreeBuilder 5'; + skip 'HTML::TreeBuilder version 5 not installed', 2 if $@; my $text = $mech->content(format => 'text'); like( $text, qr/Fine/, 'Found Fine' ); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WWW-Mechanize-1.89/xt/author/pod-syntax.t new/WWW-Mechanize-1.90/xt/author/pod-syntax.t --- old/WWW-Mechanize-1.89/xt/author/pod-syntax.t 1970-01-01 01:00:00.000000000 +0100 +++ new/WWW-Mechanize-1.90/xt/author/pod-syntax.t 2018-11-12 19:02:13.000000000 +0100 @@ -0,0 +1,7 @@ +#!perl +# This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests. +use strict; use warnings; +use Test::More; +use Test::Pod 1.41; + +all_pod_files_ok();