Hello community,

here is the log from the commit of package perl-WWW-Mechanize for 
openSUSE:Factory checked in at 2020-11-15 15:24:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-WWW-Mechanize (Old)
 and      /work/SRC/openSUSE:Factory/.perl-WWW-Mechanize.new.24930 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-WWW-Mechanize"

Sun Nov 15 15:24:24 2020 rev:34 rq:848090 version:2.03

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-WWW-Mechanize/perl-WWW-Mechanize.changes    
2020-10-18 16:18:42.492418371 +0200
+++ 
/work/SRC/openSUSE:Factory/.perl-WWW-Mechanize.new.24930/perl-WWW-Mechanize.changes
 2020-11-15 15:25:49.471415041 +0100
@@ -1,0 +2,10 @@
+Wed Nov 11 03:09:56 UTC 2020 - Tina Müller <timueller+p...@suse.de>
+
+- updated to 2.03
+   see /usr/share/doc/packages/perl-WWW-Mechanize/Changes
+
+  2.03      2020-11-10 14:47:04Z
+      [FIXED]
+      - Validate exclusive button selectors (GH#314) (Ferenc Erki)
+
+-------------------------------------------------------------------

Old:
----
  WWW-Mechanize-2.02.tar.gz

New:
----
  WWW-Mechanize-2.03.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-WWW-Mechanize.spec ++++++
--- /var/tmp/diff_new_pack.EkSc1F/_old  2020-11-15 15:25:49.943415546 +0100
+++ /var/tmp/diff_new_pack.EkSc1F/_new  2020-11-15 15:25:49.947415550 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           perl-WWW-Mechanize
-Version:        2.02
+Version:        2.03
 Release:        0
 %define cpan_name WWW-Mechanize
 Summary:        Handy web browsing in a Perl object

++++++ WWW-Mechanize-2.02.tar.gz -> WWW-Mechanize-2.03.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WWW-Mechanize-2.02/Changes 
new/WWW-Mechanize-2.03/Changes
--- old/WWW-Mechanize-2.02/Changes      2020-10-13 15:50:41.000000000 +0200
+++ new/WWW-Mechanize-2.03/Changes      2020-11-10 15:47:15.000000000 +0100
@@ -1,5 +1,9 @@
 Revision history for WWW::Mechanize
 
+2.03      2020-11-10 14:47:04Z
+    [FIXED]
+    - Validate exclusive button selectors (GH#314) (Ferenc Erki)
+
 2.02      2020-10-13 13:50:28Z
     [ENHANCEMENTS]
     - Add redirects() as a short to HTTP::Response->redirects (GH#116) (Julien 
Fiegehenn)
@@ -35,7 +39,8 @@
       (Julien Fiegehenn)
     - s/parm/param/ in documentation (GH#295) (Olaf Alders)
 
-1.96      2020-02-21 02:23:40Z [FIXED]
+1.96      2020-02-21 02:23:40Z
+    [FIXED]
     - HTML::Form::find_input() has a 1-based index (GH#293) (Olaf Alders)
     - Fix invocation of dump_forms in mech-dump (GH#288) (積丹尼 Dan Jacobson)
     - make xt/author/eol.t pass (GH#291) (Shoichi Kaji)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WWW-Mechanize-2.02/META.json 
new/WWW-Mechanize-2.03/META.json
--- old/WWW-Mechanize-2.02/META.json    2020-10-13 15:50:41.000000000 +0200
+++ new/WWW-Mechanize-2.03/META.json    2020-11-10 15:47:15.000000000 +0100
@@ -118,15 +118,15 @@
    "provides" : {
       "WWW::Mechanize" : {
          "file" : "lib/WWW/Mechanize.pm",
-         "version" : "2.02"
+         "version" : "2.03"
       },
       "WWW::Mechanize::Image" : {
          "file" : "lib/WWW/Mechanize/Image.pm",
-         "version" : "2.02"
+         "version" : "2.03"
       },
       "WWW::Mechanize::Link" : {
          "file" : "lib/WWW/Mechanize/Link.pm",
-         "version" : "2.02"
+         "version" : "2.03"
       }
    },
    "release_status" : "stable",
@@ -141,7 +141,7 @@
          "web" : "https://github.com/libwww-perl/WWW-Mechanize";
       }
    },
-   "version" : "2.02",
+   "version" : "2.03",
    "x_Dist_Zilla" : {
       "perl" : {
          "version" : "5.030002"
@@ -512,7 +512,7 @@
                   "changelog" : "Changes"
                },
                "Dist::Zilla::Role::Git::Repo" : {
-                  "git_version" : "2.28.0",
+                  "git_version" : "2.29.1",
                   "repo_root" : "."
                }
             },
@@ -523,7 +523,7 @@
             "class" : "Dist::Zilla::Plugin::Git::Contributors",
             "config" : {
                "Dist::Zilla::Plugin::Git::Contributors" : {
-                  "git_version" : "2.28.0",
+                  "git_version" : "2.29.1",
                   "include_authors" : 0,
                   "include_releaser" : 1,
                   "order_by" : "name",
@@ -648,7 +648,7 @@
                   "changelog" : "Changes"
                },
                "Dist::Zilla::Role::Git::Repo" : {
-                  "git_version" : "2.28.0",
+                  "git_version" : "2.29.1",
                   "repo_root" : "."
                },
                "Dist::Zilla::Role::Git::StringFormatter" : {
@@ -665,12 +665,12 @@
                   "branch" : null,
                   "changelog" : "Changes",
                   "signed" : 0,
-                  "tag" : "v2.02",
+                  "tag" : "v2.03",
                   "tag_format" : "v%V",
                   "tag_message" : "v%V"
                },
                "Dist::Zilla::Role::Git::Repo" : {
-                  "git_version" : "2.28.0",
+                  "git_version" : "2.29.1",
                   "repo_root" : "."
                },
                "Dist::Zilla::Role::Git::StringFormatter" : {
@@ -721,7 +721,7 @@
                   "changelog" : "Changes"
                },
                "Dist::Zilla::Role::Git::Repo" : {
-                  "git_version" : "2.28.0",
+                  "git_version" : "2.29.1",
                   "repo_root" : "."
                },
                "Dist::Zilla::Role::Git::StringFormatter" : {
@@ -741,7 +741,7 @@
                   "remotes_must_exist" : 1
                },
                "Dist::Zilla::Role::Git::Repo" : {
-                  "git_version" : "2.28.0",
+                  "git_version" : "2.29.1",
                   "repo_root" : "."
                }
             },
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WWW-Mechanize-2.02/META.yml 
new/WWW-Mechanize-2.03/META.yml
--- old/WWW-Mechanize-2.02/META.yml     2020-10-13 15:50:41.000000000 +0200
+++ new/WWW-Mechanize-2.03/META.yml     2020-11-10 15:47:15.000000000 +0100
@@ -45,13 +45,13 @@
 provides:
   WWW::Mechanize:
     file: lib/WWW/Mechanize.pm
-    version: '2.02'
+    version: '2.03'
   WWW::Mechanize::Image:
     file: lib/WWW/Mechanize/Image.pm
-    version: '2.02'
+    version: '2.03'
   WWW::Mechanize::Link:
     file: lib/WWW/Mechanize/Link.pm
-    version: '2.02'
+    version: '2.03'
 requires:
   Carp: '0'
   Getopt::Long: '0'
@@ -76,7 +76,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.02'
+version: '2.03'
 x_Dist_Zilla:
   perl:
     version: '5.030002'
@@ -365,7 +365,7 @@
           allow_dirty_match: []
           changelog: Changes
         Dist::Zilla::Role::Git::Repo:
-          git_version: 2.28.0
+          git_version: 2.29.1
           repo_root: .
       name: '@Author::OALDERS/Git::Check'
       version: '2.047'
@@ -373,7 +373,7 @@
       class: Dist::Zilla::Plugin::Git::Contributors
       config:
         Dist::Zilla::Plugin::Git::Contributors:
-          git_version: 2.28.0
+          git_version: 2.29.1
           include_authors: 0
           include_releaser: 1
           order_by: name
@@ -469,7 +469,7 @@
           allow_dirty_match: []
           changelog: Changes
         Dist::Zilla::Role::Git::Repo:
-          git_version: 2.28.0
+          git_version: 2.29.1
           repo_root: .
         Dist::Zilla::Role::Git::StringFormatter:
           time_zone: local
@@ -482,11 +482,11 @@
           branch: ~
           changelog: Changes
           signed: 0
-          tag: v2.02
+          tag: v2.03
           tag_format: v%V
           tag_message: v%V
         Dist::Zilla::Role::Git::Repo:
-          git_version: 2.28.0
+          git_version: 2.29.1
           repo_root: .
         Dist::Zilla::Role::Git::StringFormatter:
           time_zone: local
@@ -524,7 +524,7 @@
             - (?^:^lib/.*\.pm$)
           changelog: Changes
         Dist::Zilla::Role::Git::Repo:
-          git_version: 2.28.0
+          git_version: 2.29.1
           repo_root: .
         Dist::Zilla::Role::Git::StringFormatter:
           time_zone: local
@@ -538,7 +538,7 @@
             - origin
           remotes_must_exist: 1
         Dist::Zilla::Role::Git::Repo:
-          git_version: 2.28.0
+          git_version: 2.29.1
           repo_root: .
       name: '@Author::OALDERS/Git::Push'
       version: '2.047'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WWW-Mechanize-2.02/Makefile.PL 
new/WWW-Mechanize-2.03/Makefile.PL
--- old/WWW-Mechanize-2.02/Makefile.PL  2020-10-13 15:50:41.000000000 +0200
+++ new/WWW-Mechanize-2.03/Makefile.PL  2020-11-10 15:47:15.000000000 +0100
@@ -66,7 +66,7 @@
     "bytes" => 0,
     "lib" => 0
   },
-  "VERSION" => "2.02",
+  "VERSION" => "2.03",
   "test" => {
     "TESTS" => "t/*.t t/local/*.t t/mech-dump/*.t"
   }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WWW-Mechanize-2.02/README.md 
new/WWW-Mechanize-2.03/README.md
--- old/WWW-Mechanize-2.02/README.md    2020-10-13 15:50:41.000000000 +0200
+++ new/WWW-Mechanize-2.03/README.md    2020-11-10 15:47:15.000000000 +0100
@@ -4,7 +4,7 @@
 
 # VERSION
 
-version 2.02
+version 2.03
 
 # SYNOPSIS
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WWW-Mechanize-2.02/lib/WWW/Mechanize/Cookbook.pod 
new/WWW-Mechanize-2.03/lib/WWW/Mechanize/Cookbook.pod
--- old/WWW-Mechanize-2.02/lib/WWW/Mechanize/Cookbook.pod       2020-10-13 
15:50:41.000000000 +0200
+++ new/WWW-Mechanize-2.03/lib/WWW/Mechanize/Cookbook.pod       2020-11-10 
15:47:15.000000000 +0100
@@ -13,7 +13,7 @@
 
 =head1 VERSION
 
-version 2.02
+version 2.03
 
 =head1 INTRODUCTION
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WWW-Mechanize-2.02/lib/WWW/Mechanize/Examples.pod 
new/WWW-Mechanize-2.03/lib/WWW/Mechanize/Examples.pod
--- old/WWW-Mechanize-2.02/lib/WWW/Mechanize/Examples.pod       2020-10-13 
15:50:41.000000000 +0200
+++ new/WWW-Mechanize-2.03/lib/WWW/Mechanize/Examples.pod       2020-11-10 
15:47:15.000000000 +0100
@@ -13,7 +13,7 @@
 
 =head1 VERSION
 
-version 2.02
+version 2.03
 
 =head1 SYNOPSIS
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WWW-Mechanize-2.02/lib/WWW/Mechanize/FAQ.pod 
new/WWW-Mechanize-2.03/lib/WWW/Mechanize/FAQ.pod
--- old/WWW-Mechanize-2.02/lib/WWW/Mechanize/FAQ.pod    2020-10-13 
15:50:41.000000000 +0200
+++ new/WWW-Mechanize-2.03/lib/WWW/Mechanize/FAQ.pod    2020-11-10 
15:47:15.000000000 +0100
@@ -13,7 +13,7 @@
 
 =head1 VERSION
 
-version 2.02
+version 2.03
 
 =head1 How to get help with WWW::Mechanize
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WWW-Mechanize-2.02/lib/WWW/Mechanize/Image.pm 
new/WWW-Mechanize-2.03/lib/WWW/Mechanize/Image.pm
--- old/WWW-Mechanize-2.02/lib/WWW/Mechanize/Image.pm   2020-10-13 
15:50:41.000000000 +0200
+++ new/WWW-Mechanize-2.03/lib/WWW/Mechanize/Image.pm   2020-11-10 
15:47:15.000000000 +0100
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-our $VERSION = '2.02';
+our $VERSION = '2.03';
 
 #ABSTRACT: Image object for WWW::Mechanize
 
@@ -69,7 +69,7 @@
 
 =head1 VERSION
 
-version 2.02
+version 2.03
 
 =head1 SYNOPSIS
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WWW-Mechanize-2.02/lib/WWW/Mechanize/Link.pm 
new/WWW-Mechanize-2.03/lib/WWW/Mechanize/Link.pm
--- old/WWW-Mechanize-2.02/lib/WWW/Mechanize/Link.pm    2020-10-13 
15:50:41.000000000 +0200
+++ new/WWW-Mechanize-2.03/lib/WWW/Mechanize/Link.pm    2020-11-10 
15:47:15.000000000 +0100
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-our $VERSION = '2.02';
+our $VERSION = '2.03';
 
 #ABSTRACT: Link object for WWW::Mechanize
 
@@ -65,7 +65,7 @@
 
 =head1 VERSION
 
-version 2.02
+version 2.03
 
 =head1 SYNOPSIS
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WWW-Mechanize-2.02/lib/WWW/Mechanize.pm 
new/WWW-Mechanize-2.03/lib/WWW/Mechanize.pm
--- old/WWW-Mechanize-2.02/lib/WWW/Mechanize.pm 2020-10-13 15:50:41.000000000 
+0200
+++ new/WWW-Mechanize-2.03/lib/WWW/Mechanize.pm 2020-11-10 15:47:15.000000000 
+0100
@@ -6,7 +6,7 @@
 use strict;
 use warnings;
 
-our $VERSION = '2.02';
+our $VERSION = '2.03';
 
 use Tie::RefHash;
 use HTTP::Request 1.30;
@@ -975,6 +975,20 @@
         }
     }
 
+    my %exclusive_options = (
+        id     => 1,
+        input  => 1,
+        name   => 1,
+        number => 1,
+        value  => 1,
+    );
+
+    my @present_exclusive_options = @exclusive_options{ keys %args };
+
+    if ( scalar @present_exclusive_options > 1 ) {
+        $self->die( 'click_button: More than one button selector has been 
used' );
+    }
+
     for ($args{x}, $args{y}) {
         $_ = 1 unless defined;
     }
@@ -1769,7 +1783,7 @@
 
 =head1 VERSION
 
-version 2.02
+version 2.03
 
 =head1 SYNOPSIS
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WWW-Mechanize-2.02/script/mech-dump 
new/WWW-Mechanize-2.03/script/mech-dump
--- old/WWW-Mechanize-2.02/script/mech-dump     2020-10-13 15:50:41.000000000 
+0200
+++ new/WWW-Mechanize-2.03/script/mech-dump     2020-11-10 15:47:15.000000000 
+0100
@@ -131,7 +131,7 @@
 
 =head1 VERSION
 
-version 2.02
+version 2.03
 
 =head1 SYNOPSIS
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/WWW-Mechanize-2.02/t/local/click_button.t 
new/WWW-Mechanize-2.03/t/local/click_button.t
--- old/WWW-Mechanize-2.02/t/local/click_button.t       2020-10-13 
15:50:41.000000000 +0200
+++ new/WWW-Mechanize-2.03/t/local/click_button.t       2020-11-10 
15:47:15.000000000 +0100
@@ -5,6 +5,7 @@
 
 use LocalServer;
 use Test::More 0.96;
+use Test::Exception;
 
 BEGIN {
     delete @ENV{ qw( IFS CDPATH ENV BASH_ENV ) };
@@ -90,6 +91,10 @@
     };
 }
 
+subtest 'multiple button selectors' => sub {
+    dies_ok { $mech->click_button( id => 0, input => 1 ) } 'Dies when multiple 
button selectors are used';
+};
+
 sub test_click {
     my $mech = shift;
     my $name = shift || 'submit';
_______________________________________________
openSUSE Commits mailing list -- commit@lists.opensuse.org
To unsubscribe, email commit-le...@lists.opensuse.org
List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette
List Archives: 
https://lists.opensuse.org/archives/list/commit@lists.opensuse.org

Reply via email to