Hello community, here is the log from the commit of package perl-WWW-Mechanize for openSUSE:Factory checked in at 2020-10-08 13:05:23 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-WWW-Mechanize (Old) and /work/SRC/openSUSE:Factory/.perl-WWW-Mechanize.new.4249 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-WWW-Mechanize" Thu Oct 8 13:05:23 2020 rev:32 rq:836364 version:2.01 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-WWW-Mechanize/perl-WWW-Mechanize.changes 2020-06-21 19:53:19.706563457 +0200 +++ /work/SRC/openSUSE:Factory/.perl-WWW-Mechanize.new.4249/perl-WWW-Mechanize.changes 2020-10-08 13:05:26.402806078 +0200 @@ -1,0 +2,10 @@ +Sat Sep 19 03:13:11 UTC 2020 - Tina Müller <[email protected]> + +- updated to 2.01 + see /usr/share/doc/packages/perl-WWW-Mechanize/Changes + + 2.01 2020-09-18 17:51:10Z + - Add rel filter to find_link() (GH#305) (Julien Fiegehenn) + - Fix typos (GH#304) (Ferenc Erki) + +------------------------------------------------------------------- Old: ---- WWW-Mechanize-2.00.tar.gz New: ---- WWW-Mechanize-2.01.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-WWW-Mechanize.spec ++++++ --- /var/tmp/diff_new_pack.32f5LM/_old 2020-10-08 13:05:27.206806806 +0200 +++ /var/tmp/diff_new_pack.32f5LM/_new 2020-10-08 13:05:27.206806806 +0200 @@ -17,7 +17,7 @@ Name: perl-WWW-Mechanize -Version: 2.00 +Version: 2.01 Release: 0 %define cpan_name WWW-Mechanize Summary: Handy web browsing in a Perl object @@ -46,9 +46,13 @@ BuildRequires: perl(LWP::UserAgent) >= 6.45 BuildRequires: perl(Path::Tiny) BuildRequires: perl(Test::Deep) +BuildRequires: perl(Test::Exception) BuildRequires: perl(Test::Fatal) +BuildRequires: perl(Test::Memory::Cycle) >= 1.06 BuildRequires: perl(Test::More) >= 0.96 +BuildRequires: perl(Test::NoWarnings) >= 1.04 BuildRequires: perl(Test::Output) +BuildRequires: perl(Test::Taint) >= 1.08 BuildRequires: perl(Test::Warnings) BuildRequires: perl(URI) BuildRequires: perl(URI::Escape) ++++++ WWW-Mechanize-2.00.tar.gz -> WWW-Mechanize-2.01.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WWW-Mechanize-2.00/CONTRIBUTORS new/WWW-Mechanize-2.01/CONTRIBUTORS --- old/WWW-Mechanize-2.00/CONTRIBUTORS 2020-06-09 21:10:03.000000000 +0200 +++ new/WWW-Mechanize-2.01/CONTRIBUTORS 2020-09-18 19:51:23.000000000 +0200 @@ -18,6 +18,7 @@ * Desmond Daignault * Ed Avis * Evan Zacks + * Ferenc Erki * Flavio Poletti * Florian Schlichting * Gabor Szabo diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WWW-Mechanize-2.00/Changes new/WWW-Mechanize-2.01/Changes --- old/WWW-Mechanize-2.00/Changes 2020-06-09 21:10:03.000000000 +0200 +++ new/WWW-Mechanize-2.01/Changes 2020-09-18 19:51:23.000000000 +0200 @@ -1,5 +1,9 @@ Revision history for WWW::Mechanize +2.01 2020-09-18 17:51:10Z + - Add rel filter to find_link() (GH#305) (Julien Fiegehenn) + - Fix typos (GH#304) (Ferenc Erki) + 2.00 2020-06-09 19:09:53Z - Require LWP::UserAgent 6.45 (GH#302) (Shoichi Kaji) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WWW-Mechanize-2.00/META.json new/WWW-Mechanize-2.01/META.json --- old/WWW-Mechanize-2.00/META.json 2020-06-09 21:10:03.000000000 +0200 +++ new/WWW-Mechanize-2.01/META.json 2020-09-18 19:51:23.000000000 +0200 @@ -46,16 +46,13 @@ "Pod::Coverage::TrustPod" : "0", "Test::Code::TidyAll" : "0.50", "Test::EOL" : "0", - "Test::Memory::Cycle" : "1.06", "Test::Mojibake" : "0", "Test::More" : "0.88", "Test::Needs" : "0", - "Test::NoWarnings" : "1.04", "Test::Pod" : "1.41", "Test::Pod::Coverage" : "1.08", "Test::Portability::Files" : "0", "Test::RequiresInternet" : "0", - "Test::Taint" : "1.08", "Test::Vars" : "0.014", "Test::Version" : "1", "constant" : "0", @@ -103,9 +100,13 @@ "LWP::Simple" : "0", "Path::Tiny" : "0", "Test::Deep" : "0", + "Test::Exception" : "0", "Test::Fatal" : "0", + "Test::Memory::Cycle" : "1.06", "Test::More" : "0.96", + "Test::NoWarnings" : "1.04", "Test::Output" : "0", + "Test::Taint" : "1.08", "Test::Warnings" : "0", "URI" : "0", "URI::Escape" : "0", @@ -118,15 +119,15 @@ "provides" : { "WWW::Mechanize" : { "file" : "lib/WWW/Mechanize.pm", - "version" : "2.00" + "version" : "2.01" }, "WWW::Mechanize::Image" : { "file" : "lib/WWW/Mechanize/Image.pm", - "version" : "2.00" + "version" : "2.01" }, "WWW::Mechanize::Link" : { "file" : "lib/WWW/Mechanize/Link.pm", - "version" : "2.00" + "version" : "2.01" } }, "release_status" : "stable", @@ -141,7 +142,7 @@ "web" : "https://github.com/libwww-perl/WWW-Mechanize" } }, - "version" : "2.00", + "version" : "2.01", "x_Dist_Zilla" : { "perl" : { "version" : "5.030002" @@ -248,7 +249,7 @@ "class" : "Dist::Zilla::Plugin::InstallGuide", "config" : { "Dist::Zilla::Role::ModuleMetadata" : { - "Module::Metadata" : "1.000036", + "Module::Metadata" : "1.000037", "version" : "0.006" } }, @@ -320,7 +321,7 @@ { "class" : "Dist::Zilla::Plugin::Test::ReportPrereqs", "name" : "@Author::OALDERS/Test::ReportPrereqs", - "version" : "0.027" + "version" : "0.028" }, { "class" : "Dist::Zilla::Plugin::Test::TidyAll", @@ -476,7 +477,7 @@ } }, "name" : "@Author::OALDERS/Git::GatherDir", - "version" : "2.046" + "version" : "2.047" }, { "class" : "Dist::Zilla::Plugin::CopyFilesFromRelease", @@ -489,7 +490,7 @@ } }, "name" : "@Author::OALDERS/CopyFilesFromRelease", - "version" : "0.006" + "version" : "0.007" }, { "class" : "Dist::Zilla::Plugin::Git::Check", @@ -512,18 +513,18 @@ "changelog" : "Changes" }, "Dist::Zilla::Role::Git::Repo" : { - "git_version" : "2.26.2", + "git_version" : "2.28.0", "repo_root" : "." } }, "name" : "@Author::OALDERS/Git::Check", - "version" : "2.046" + "version" : "2.047" }, { "class" : "Dist::Zilla::Plugin::Git::Contributors", "config" : { "Dist::Zilla::Plugin::Git::Contributors" : { - "git_version" : "2.26.2", + "git_version" : "2.28.0", "include_authors" : 0, "include_releaser" : 1, "order_by" : "name", @@ -562,7 +563,7 @@ { "class" : "Dist::Zilla::Plugin::TravisCI::StatusBadge", "name" : "@Author::OALDERS/TravisCI::StatusBadge", - "version" : "0.007" + "version" : "0.009" }, { "class" : "Dist::Zilla::Plugin::CheckIssues", @@ -623,14 +624,15 @@ } }, "name" : "@Author::OALDERS/@Git::VersionManager/CopyFilesFromRelease", - "version" : "0.006" + "version" : "0.007" }, { "class" : "Dist::Zilla::Plugin::Git::Commit", "config" : { "Dist::Zilla::Plugin::Git::Commit" : { "add_files_in" : [], - "commit_msg" : "v%V%n%n%c" + "commit_msg" : "v%V%n%n%c", + "signoff" : 0 }, "Dist::Zilla::Role::Git::DirtyFiles" : { "allow_dirty" : [ @@ -647,7 +649,7 @@ "changelog" : "Changes" }, "Dist::Zilla::Role::Git::Repo" : { - "git_version" : "2.26.2", + "git_version" : "2.28.0", "repo_root" : "." }, "Dist::Zilla::Role::Git::StringFormatter" : { @@ -655,7 +657,7 @@ } }, "name" : "@Author::OALDERS/@Git::VersionManager/release snapshot", - "version" : "2.046" + "version" : "2.047" }, { "class" : "Dist::Zilla::Plugin::Git::Tag", @@ -664,12 +666,12 @@ "branch" : null, "changelog" : "Changes", "signed" : 0, - "tag" : "v2.00", + "tag" : "v2.01", "tag_format" : "v%V", "tag_message" : "v%V" }, "Dist::Zilla::Role::Git::Repo" : { - "git_version" : "2.26.2", + "git_version" : "2.28.0", "repo_root" : "." }, "Dist::Zilla::Role::Git::StringFormatter" : { @@ -677,7 +679,7 @@ } }, "name" : "@Author::OALDERS/@Git::VersionManager/Git::Tag", - "version" : "2.046" + "version" : "2.047" }, { "class" : "Dist::Zilla::Plugin::BumpVersionAfterRelease::Transitional", @@ -705,7 +707,8 @@ "config" : { "Dist::Zilla::Plugin::Git::Commit" : { "add_files_in" : [], - "commit_msg" : "increment $VERSION after %v release" + "commit_msg" : "increment $VERSION after %v release", + "signoff" : 0 }, "Dist::Zilla::Role::Git::DirtyFiles" : { "allow_dirty" : [ @@ -719,7 +722,7 @@ "changelog" : "Changes" }, "Dist::Zilla::Role::Git::Repo" : { - "git_version" : "2.26.2", + "git_version" : "2.28.0", "repo_root" : "." }, "Dist::Zilla::Role::Git::StringFormatter" : { @@ -727,7 +730,7 @@ } }, "name" : "@Author::OALDERS/@Git::VersionManager/post-release commit", - "version" : "2.046" + "version" : "2.047" }, { "class" : "Dist::Zilla::Plugin::Git::Push", @@ -739,12 +742,12 @@ "remotes_must_exist" : 1 }, "Dist::Zilla::Role::Git::Repo" : { - "git_version" : "2.26.2", + "git_version" : "2.28.0", "repo_root" : "." } }, "name" : "@Author::OALDERS/Git::Push", - "version" : "2.046" + "version" : "2.047" }, { "class" : "Dist::Zilla::Plugin::ExecDir", @@ -814,7 +817,7 @@ "meta_noindex" : 1 }, "Dist::Zilla::Role::ModuleMetadata" : { - "Module::Metadata" : "1.000036", + "Module::Metadata" : "1.000037", "version" : "0.006" } }, @@ -898,6 +901,7 @@ "Desmond Daignault <[email protected]>", "Ed Avis <[email protected]>", "Evan Zacks <[email protected]>", + "Ferenc Erki <[email protected]>", "Flavio Poletti <[email protected]>", "Florian Schlichting <[email protected]>", "Gabor Szabo <[email protected]>", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WWW-Mechanize-2.00/META.yml new/WWW-Mechanize-2.01/META.yml --- old/WWW-Mechanize-2.00/META.yml 2020-06-09 21:10:03.000000000 +0200 +++ new/WWW-Mechanize-2.01/META.yml 2020-09-18 19:51:23.000000000 +0200 @@ -16,9 +16,13 @@ LWP::Simple: '0' Path::Tiny: '0' Test::Deep: '0' + Test::Exception: '0' Test::Fatal: '0' + Test::Memory::Cycle: '1.06' Test::More: '0.96' + Test::NoWarnings: '1.04' Test::Output: '0' + Test::Taint: '1.08' Test::Warnings: '0' URI: '0' URI::Escape: '0' @@ -42,13 +46,13 @@ provides: WWW::Mechanize: file: lib/WWW/Mechanize.pm - version: '2.00' + version: '2.01' WWW::Mechanize::Image: file: lib/WWW/Mechanize/Image.pm - version: '2.00' + version: '2.01' WWW::Mechanize::Link: file: lib/WWW/Mechanize/Link.pm - version: '2.00' + version: '2.01' requires: Carp: '0' Getopt::Long: '0' @@ -73,7 +77,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: '2.00' +version: '2.01' x_Dist_Zilla: perl: version: '5.030002' @@ -158,7 +162,7 @@ class: Dist::Zilla::Plugin::InstallGuide config: Dist::Zilla::Role::ModuleMetadata: - Module::Metadata: '1.000036' + Module::Metadata: '1.000037' version: '0.006' name: '@Author::OALDERS/InstallGuide' version: '1.200013' @@ -212,7 +216,7 @@ - class: Dist::Zilla::Plugin::Test::ReportPrereqs name: '@Author::OALDERS/Test::ReportPrereqs' - version: '0.027' + version: '0.028' - class: Dist::Zilla::Plugin::Test::TidyAll name: '@Author::OALDERS/Test::TidyAll' @@ -334,7 +338,7 @@ Dist::Zilla::Plugin::Git::GatherDir: include_untracked: 0 name: '@Author::OALDERS/Git::GatherDir' - version: '2.046' + version: '2.047' - class: Dist::Zilla::Plugin::CopyFilesFromRelease config: @@ -343,7 +347,7 @@ - Install match: [] name: '@Author::OALDERS/CopyFilesFromRelease' - version: '0.006' + version: '0.007' - class: Dist::Zilla::Plugin::Git::Check config: @@ -362,15 +366,15 @@ allow_dirty_match: [] changelog: Changes Dist::Zilla::Role::Git::Repo: - git_version: 2.26.2 + git_version: 2.28.0 repo_root: . name: '@Author::OALDERS/Git::Check' - version: '2.046' + version: '2.047' - class: Dist::Zilla::Plugin::Git::Contributors config: Dist::Zilla::Plugin::Git::Contributors: - git_version: 2.26.2 + git_version: 2.28.0 include_authors: 0 include_releaser: 1 order_by: name @@ -399,7 +403,7 @@ - class: Dist::Zilla::Plugin::TravisCI::StatusBadge name: '@Author::OALDERS/TravisCI::StatusBadge' - version: '0.007' + version: '0.009' - class: Dist::Zilla::Plugin::CheckIssues name: '@Author::OALDERS/CheckIssues' @@ -445,13 +449,14 @@ - Changes match: [] name: '@Author::OALDERS/@Git::VersionManager/CopyFilesFromRelease' - version: '0.006' + version: '0.007' - class: Dist::Zilla::Plugin::Git::Commit config: Dist::Zilla::Plugin::Git::Commit: add_files_in: [] commit_msg: v%V%n%n%c + signoff: 0 Dist::Zilla::Role::Git::DirtyFiles: allow_dirty: - Changes @@ -465,12 +470,12 @@ allow_dirty_match: [] changelog: Changes Dist::Zilla::Role::Git::Repo: - git_version: 2.26.2 + git_version: 2.28.0 repo_root: . Dist::Zilla::Role::Git::StringFormatter: time_zone: local name: '@Author::OALDERS/@Git::VersionManager/release snapshot' - version: '2.046' + version: '2.047' - class: Dist::Zilla::Plugin::Git::Tag config: @@ -478,16 +483,16 @@ branch: ~ changelog: Changes signed: 0 - tag: v2.00 + tag: v2.01 tag_format: v%V tag_message: v%V Dist::Zilla::Role::Git::Repo: - git_version: 2.26.2 + git_version: 2.28.0 repo_root: . Dist::Zilla::Role::Git::StringFormatter: time_zone: local name: '@Author::OALDERS/@Git::VersionManager/Git::Tag' - version: '2.046' + version: '2.047' - class: Dist::Zilla::Plugin::BumpVersionAfterRelease::Transitional config: @@ -510,6 +515,7 @@ Dist::Zilla::Plugin::Git::Commit: add_files_in: [] commit_msg: 'increment $VERSION after %v release' + signoff: 0 Dist::Zilla::Role::Git::DirtyFiles: allow_dirty: - Build.PL @@ -519,12 +525,12 @@ - (?^:^lib/.*\.pm$) changelog: Changes Dist::Zilla::Role::Git::Repo: - git_version: 2.26.2 + git_version: 2.28.0 repo_root: . Dist::Zilla::Role::Git::StringFormatter: time_zone: local name: '@Author::OALDERS/@Git::VersionManager/post-release commit' - version: '2.046' + version: '2.047' - class: Dist::Zilla::Plugin::Git::Push config: @@ -533,10 +539,10 @@ - origin remotes_must_exist: 1 Dist::Zilla::Role::Git::Repo: - git_version: 2.26.2 + git_version: 2.28.0 repo_root: . name: '@Author::OALDERS/Git::Push' - version: '2.046' + version: '2.047' - class: Dist::Zilla::Plugin::ExecDir name: ExecDir @@ -588,7 +594,7 @@ inherit_version: '1' meta_noindex: '1' Dist::Zilla::Role::ModuleMetadata: - Module::Metadata: '1.000036' + Module::Metadata: '1.000037' version: '0.006' name: MetaProvides::Package version: '2.004003' @@ -654,6 +660,7 @@ - 'Desmond Daignault <[email protected]>' - 'Ed Avis <[email protected]>' - 'Evan Zacks <[email protected]>' + - 'Ferenc Erki <[email protected]>' - 'Flavio Poletti <[email protected]>' - 'Florian Schlichting <[email protected]>' - 'Gabor Szabo <[email protected]>' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WWW-Mechanize-2.00/Makefile.PL new/WWW-Mechanize-2.01/Makefile.PL --- old/WWW-Mechanize-2.00/Makefile.PL 2020-06-09 21:10:03.000000000 +0200 +++ new/WWW-Mechanize-2.01/Makefile.PL 2020-09-18 19:51:23.000000000 +0200 @@ -53,9 +53,13 @@ "LWP::Simple" => 0, "Path::Tiny" => 0, "Test::Deep" => 0, + "Test::Exception" => 0, "Test::Fatal" => 0, + "Test::Memory::Cycle" => "1.06", "Test::More" => "0.96", + "Test::NoWarnings" => "1.04", "Test::Output" => 0, + "Test::Taint" => "1.08", "Test::Warnings" => 0, "URI" => 0, "URI::Escape" => 0, @@ -63,7 +67,7 @@ "lib" => 0, "vars" => 0 }, - "VERSION" => "2.00", + "VERSION" => "2.01", "test" => { "TESTS" => "t/*.t t/local/*.t t/mech-dump/*.t" } @@ -96,9 +100,13 @@ "Pod::Usage" => 0, "Scalar::Util" => "1.14", "Test::Deep" => 0, + "Test::Exception" => 0, "Test::Fatal" => 0, + "Test::Memory::Cycle" => "1.06", "Test::More" => "0.96", + "Test::NoWarnings" => "1.04", "Test::Output" => 0, + "Test::Taint" => "1.08", "Test::Warnings" => 0, "Tie::RefHash" => 0, "URI" => 0, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WWW-Mechanize-2.00/README.md new/WWW-Mechanize-2.01/README.md --- old/WWW-Mechanize-2.00/README.md 2020-06-09 21:10:03.000000000 +0200 +++ new/WWW-Mechanize-2.01/README.md 2020-09-18 19:51:23.000000000 +0200 @@ -4,7 +4,7 @@ # VERSION -version 2.00 +version 2.01 # SYNOPSIS @@ -333,7 +333,7 @@ This returns the _n_th item in history. The 0th item is the most recent request and response, which would be acted on by methods like `[find_link()](#mech-find_link)`. -The 1th item is the state you'd return to if you called +The 1st item is the state you'd return to if you called `[back()](#mech-back)`. The maximum useful value for `$n` is `$mech->history_count - 1`. @@ -514,8 +514,8 @@ that's your plan, you might as well use the `follow_link()` method directly, since it does the `get()` for you automatically. -Note that `<FRAME SRC="...">` tags are parsed out of the the HTML -and treated as links so this method works with them. +Note that `<FRAME SRC="...">` tags are parsed out of the HTML and +treated as links so this method works with them. You can select which link to find by passing in one or more of these key/value pairs: @@ -552,6 +552,12 @@ Matches the name of the link against _string_ or _regex_, as appropriate. +- `rel => string` and `rel_regex => regex` + + Matches the rel of the link against _string_ or _regex_, as appropriate. + This can be used to find stylesheets, favicons, or links the author of the + page does not want bots to follow. + - `id => string` and `id_regex => regex` Matches the attribute 'id' of the link against _string_ or diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WWW-Mechanize-2.00/cpanfile new/WWW-Mechanize-2.01/cpanfile --- old/WWW-Mechanize-2.00/cpanfile 2020-06-09 21:10:03.000000000 +0200 +++ new/WWW-Mechanize-2.01/cpanfile 2020-09-18 19:51:23.000000000 +0200 @@ -35,9 +35,13 @@ requires "LWP::Simple" => "0"; requires "Path::Tiny" => "0"; requires "Test::Deep" => "0"; + requires "Test::Exception" => "0"; requires "Test::Fatal" => "0"; + requires "Test::Memory::Cycle" => "1.06"; requires "Test::More" => "0.96"; + requires "Test::NoWarnings" => "1.04"; requires "Test::Output" => "0"; + requires "Test::Taint" => "1.08"; requires "Test::Warnings" => "0"; requires "URI" => "0"; requires "URI::Escape" => "0"; @@ -71,16 +75,13 @@ requires "Pod::Coverage::TrustPod" => "0"; requires "Test::Code::TidyAll" => "0.50"; requires "Test::EOL" => "0"; - requires "Test::Memory::Cycle" => "1.06"; requires "Test::Mojibake" => "0"; requires "Test::More" => "0.88"; requires "Test::Needs" => "0"; - requires "Test::NoWarnings" => "1.04"; requires "Test::Pod" => "1.41"; requires "Test::Pod::Coverage" => "1.08"; requires "Test::Portability::Files" => "0"; requires "Test::RequiresInternet" => "0"; - requires "Test::Taint" => "1.08"; requires "Test::Vars" => "0.014"; requires "Test::Version" => "1"; requires "constant" => "0"; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WWW-Mechanize-2.00/dist.ini new/WWW-Mechanize-2.01/dist.ini --- old/WWW-Mechanize-2.00/dist.ini 2020-06-09 21:10:03.000000000 +0200 +++ new/WWW-Mechanize-2.01/dist.ini 2020-09-18 19:51:23.000000000 +0200 @@ -28,13 +28,13 @@ [Prereqs / TestRequires] CGI = 4.32 HTTP::Daemon = 6.12 +Test::Memory::Cycle = 1.06 +Test::NoWarnings = 1.04 +Test::Taint = 1.08 [Prereqs / DevelopRequires] LWP::Protocol::https = 6.07 Perl::Critic = 0 Perl::Tidy = 0 -Test::Memory::Cycle = 1.06 -Test::NoWarnings = 1.04 -Test::Taint = 1.08 [MetaProvides::Package] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WWW-Mechanize-2.00/lib/WWW/Mechanize/Cookbook.pod new/WWW-Mechanize-2.01/lib/WWW/Mechanize/Cookbook.pod --- old/WWW-Mechanize-2.00/lib/WWW/Mechanize/Cookbook.pod 2020-06-09 21:10:03.000000000 +0200 +++ new/WWW-Mechanize-2.01/lib/WWW/Mechanize/Cookbook.pod 2020-09-18 19:51:23.000000000 +0200 @@ -13,7 +13,7 @@ =head1 VERSION -version 2.00 +version 2.01 =head1 INTRODUCTION diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WWW-Mechanize-2.00/lib/WWW/Mechanize/Examples.pod new/WWW-Mechanize-2.01/lib/WWW/Mechanize/Examples.pod --- old/WWW-Mechanize-2.00/lib/WWW/Mechanize/Examples.pod 2020-06-09 21:10:03.000000000 +0200 +++ new/WWW-Mechanize-2.01/lib/WWW/Mechanize/Examples.pod 2020-09-18 19:51:23.000000000 +0200 @@ -13,7 +13,7 @@ =head1 VERSION -version 2.00 +version 2.01 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WWW-Mechanize-2.00/lib/WWW/Mechanize/FAQ.pod new/WWW-Mechanize-2.01/lib/WWW/Mechanize/FAQ.pod --- old/WWW-Mechanize-2.00/lib/WWW/Mechanize/FAQ.pod 2020-06-09 21:10:03.000000000 +0200 +++ new/WWW-Mechanize-2.01/lib/WWW/Mechanize/FAQ.pod 2020-09-18 19:51:23.000000000 +0200 @@ -13,7 +13,7 @@ =head1 VERSION -version 2.00 +version 2.01 =head1 How to get help with WWW::Mechanize diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WWW-Mechanize-2.00/lib/WWW/Mechanize/Image.pm new/WWW-Mechanize-2.01/lib/WWW/Mechanize/Image.pm --- old/WWW-Mechanize-2.00/lib/WWW/Mechanize/Image.pm 2020-06-09 21:10:03.000000000 +0200 +++ new/WWW-Mechanize-2.01/lib/WWW/Mechanize/Image.pm 2020-09-18 19:51:23.000000000 +0200 @@ -3,7 +3,7 @@ use strict; use warnings; -our $VERSION = '2.00'; +our $VERSION = '2.01'; #ABSTRACT: Image object for WWW::Mechanize @@ -69,7 +69,7 @@ =head1 VERSION -version 2.00 +version 2.01 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WWW-Mechanize-2.00/lib/WWW/Mechanize/Link.pm new/WWW-Mechanize-2.01/lib/WWW/Mechanize/Link.pm --- old/WWW-Mechanize-2.00/lib/WWW/Mechanize/Link.pm 2020-06-09 21:10:03.000000000 +0200 +++ new/WWW-Mechanize-2.01/lib/WWW/Mechanize/Link.pm 2020-09-18 19:51:23.000000000 +0200 @@ -3,7 +3,7 @@ use strict; use warnings; -our $VERSION = '2.00'; +our $VERSION = '2.01'; #ABSTRACT: Link object for WWW::Mechanize @@ -65,7 +65,7 @@ =head1 VERSION -version 2.00 +version 2.01 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WWW-Mechanize-2.00/lib/WWW/Mechanize.pm new/WWW-Mechanize-2.01/lib/WWW/Mechanize.pm --- old/WWW-Mechanize-2.00/lib/WWW/Mechanize.pm 2020-06-09 21:10:03.000000000 +0200 +++ new/WWW-Mechanize-2.01/lib/WWW/Mechanize.pm 2020-09-18 19:51:23.000000000 +0200 @@ -6,7 +6,7 @@ use strict; use warnings; -our $VERSION = '2.00'; +our $VERSION = '2.01'; use Tie::RefHash; use HTTP::Request 1.30; @@ -392,7 +392,7 @@ my $wantall = ( $params{n} eq 'all' ); - $self->_clean_keys( \%params, qr/^(n|(text|url|url_abs|name|tag|id|class)(_regex)?)$/ ); + $self->_clean_keys( \%params, qr/^(n|(text|url|url_abs|name|tag|id|class|rel)(_regex)?)$/ ); my @links = $self->links or return; @@ -443,6 +443,9 @@ return if defined $p->{class} && !($link->attrs->{class} && $link->attrs->{class} eq $p->{class} ); return if defined $p->{class_regex} && !($link->attrs->{class} && $link->attrs->{class} =~ $p->{class_regex} ); + return if defined $p->{rel} && !($link->attrs->{rel} && $link->attrs->{rel} eq $p->{rel} ); + return if defined $p->{rel_regex} && !($link->attrs->{rel} && $link->attrs->{rel} =~ $p->{rel_regex} ); + # Success: everything that was defined passed. return 1; @@ -1759,7 +1762,7 @@ =head1 VERSION -version 2.00 +version 2.01 =head1 SYNOPSIS @@ -2129,7 +2132,7 @@ This returns the I<n>th item in history. The 0th item is the most recent request and response, which would be acted on by methods like C<L<< find_link()|"$mech->find_link( ... )" >>>. -The 1th item is the state you'd return to if you called +The 1st item is the state you'd return to if you called C<L<< back()|/$mech->back() >>>. The maximum useful value for C<$n> is C<< $mech->history_count - 1 >>. @@ -2318,8 +2321,8 @@ that's your plan, you might as well use the C<follow_link()> method directly, since it does the C<get()> for you automatically. -Note that C<< <FRAME SRC="..."> >> tags are parsed out of the the HTML -and treated as links so this method works with them. +Note that C<< <FRAME SRC="..."> >> tags are parsed out of the HTML and +treated as links so this method works with them. You can select which link to find by passing in one or more of these key/value pairs: @@ -2358,6 +2361,12 @@ Matches the name of the link against I<string> or I<regex>, as appropriate. +=item * C<< rel => string >> and C<< rel_regex => regex >> + +Matches the rel of the link against I<string> or I<regex>, as appropriate. +This can be used to find stylesheets, favicons, or links the author of the +page does not want bots to follow. + =item * C<< id => string >> and C<< id_regex => regex >> Matches the attribute 'id' of the link against I<string> or diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WWW-Mechanize-2.00/script/mech-dump new/WWW-Mechanize-2.01/script/mech-dump --- old/WWW-Mechanize-2.00/script/mech-dump 2020-06-09 21:10:03.000000000 +0200 +++ new/WWW-Mechanize-2.01/script/mech-dump 2020-09-18 19:51:23.000000000 +0200 @@ -131,7 +131,7 @@ =head1 VERSION -version 2.00 +version 2.01 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WWW-Mechanize-2.00/t/00-report-prereqs.dd new/WWW-Mechanize-2.01/t/00-report-prereqs.dd --- old/WWW-Mechanize-2.00/t/00-report-prereqs.dd 2020-06-09 21:10:03.000000000 +0200 +++ new/WWW-Mechanize-2.01/t/00-report-prereqs.dd 2020-09-18 19:51:23.000000000 +0200 @@ -24,16 +24,13 @@ 'Pod::Coverage::TrustPod' => '0', 'Test::Code::TidyAll' => '0.50', 'Test::EOL' => '0', - 'Test::Memory::Cycle' => '1.06', 'Test::Mojibake' => '0', 'Test::More' => '0.88', 'Test::Needs' => '0', - 'Test::NoWarnings' => '1.04', 'Test::Pod' => '1.41', 'Test::Pod::Coverage' => '1.08', 'Test::Portability::Files' => '0', 'Test::RequiresInternet' => '0', - 'Test::Taint' => '1.08', 'Test::Vars' => '0.014', 'Test::Version' => '1', 'constant' => '0', @@ -81,9 +78,13 @@ 'LWP::Simple' => '0', 'Path::Tiny' => '0', 'Test::Deep' => '0', + 'Test::Exception' => '0', 'Test::Fatal' => '0', + 'Test::Memory::Cycle' => '1.06', 'Test::More' => '0.96', + 'Test::NoWarnings' => '1.04', 'Test::Output' => '0', + 'Test::Taint' => '1.08', 'Test::Warnings' => '0', 'URI' => '0', 'URI::Escape' => '0', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WWW-Mechanize-2.00/t/00-report-prereqs.t new/WWW-Mechanize-2.01/t/00-report-prereqs.t --- old/WWW-Mechanize-2.00/t/00-report-prereqs.t 2020-06-09 21:10:03.000000000 +0200 +++ new/WWW-Mechanize-2.01/t/00-report-prereqs.t 2020-09-18 19:51:23.000000000 +0200 @@ -3,7 +3,7 @@ use strict; use warnings; -# This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.027 +# This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.028 use Test::More tests => 1; @@ -188,6 +188,6 @@ ); } -pass; +pass('Reported prereqs'); # vim: ts=4 sts=4 sw=4 et: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WWW-Mechanize-2.00/t/die.t new/WWW-Mechanize-2.01/t/die.t --- old/WWW-Mechanize-2.00/t/die.t 2020-06-09 21:10:03.000000000 +0200 +++ new/WWW-Mechanize-2.01/t/die.t 2020-09-18 19:51:23.000000000 +0200 @@ -2,33 +2,19 @@ use warnings; use strict; + +use Test::Exception; use Test::More; +use WWW::Mechanize (); -BEGIN { - eval 'use Test::Exception'; - plan skip_all => 'Test::Exception required to test die' if $@; - plan tests => 5; +dies_ok { + WWW::Mechanize->new->die('OH NO! ERROR!'); } +'Expecting to die'; -BEGIN { - use_ok( 'WWW::Mechanize' ); +lives_ok { + WWW::Mechanize->new( onerror => undef )->die('OH NO! ERROR!'); } +'Not expecting to die'; - -CHECK_DEATH: { - my $m = WWW::Mechanize->new; - isa_ok( $m, 'WWW::Mechanize' ); - - dies_ok { - $m->die( 'OH NO! ERROR!' ); - } 'Expecting to die'; -} - -CHECK_LIVING: { - my $m = WWW::Mechanize->new( onerror => undef ); - isa_ok( $m, 'WWW::Mechanize' ); - - lives_ok { - $m->die( 'OH NO! ERROR!' ); - } 'Expecting to die'; -} +done_testing(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WWW-Mechanize-2.00/t/dump.t new/WWW-Mechanize-2.01/t/dump.t --- old/WWW-Mechanize-2.00/t/dump.t 2020-06-09 21:10:03.000000000 +0200 +++ new/WWW-Mechanize-2.01/t/dump.t 2020-09-18 19:51:23.000000000 +0200 @@ -31,6 +31,7 @@ http://www.drphil.com/ HTTP://WWW.UPCASE.COM/ styles.css +foo.png http://blargle.com/ http://a.cpan.org/ http://b.cpan.org/ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WWW-Mechanize-2.00/t/find_link.html new/WWW-Mechanize-2.01/t/find_link.html --- old/WWW-Mechanize-2.00/t/find_link.html 2020-06-09 21:10:03.000000000 +0200 +++ new/WWW-Mechanize-2.01/t/find_link.html 2020-09-18 19:51:23.000000000 +0200 @@ -5,6 +5,7 @@ <meta http-equiv="Refresh" content="0; url='http://www.drphil.com/'"> <META HTTP-EQUIV="REFRESH" CONTENT="0; URL=HTTP://WWW.UPCASE.COM/"> <link rel="stylesheet" type="text/css" href="styles.css" /> + <link rel="icon" type="image/png" href="foo.png" /> <TITLE>Testing the links</TITLE> </head> <body> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/WWW-Mechanize-2.00/t/find_link.t new/WWW-Mechanize-2.01/t/find_link.t --- old/WWW-Mechanize-2.00/t/find_link.t 2020-06-09 21:10:03.000000000 +0200 +++ new/WWW-Mechanize-2.01/t/find_link.t 2020-09-18 19:51:23.000000000 +0200 @@ -156,6 +156,14 @@ is( $x->[0], 'http://www.yahoo.com/', 'Got js url link' ); is( $x->url, 'http://www.yahoo.com/', 'Got js url link' ); +$x = $mech->find_link( rel => 'icon' ); +isa_ok( $x, 'WWW::Mechanize::Link' ); +is( $x->[0], 'foo.png', 'Got icon url link' ); + +$x = $mech->find_link( rel_regex => qr/sheet/i ); +isa_ok( $x, 'WWW::Mechanize::Link' ); +is( $x->[0], 'styles.css', 'Got stylesheet url link' ); + $mech->get( URI::file->new_abs('t/refresh.html') ); my $link = $mech->find_link( tag => 'meta' ); is( $link->url, 'http://www.mysite.com/', 'got link from meta tag via tag search' );
