Skip to content

Commit 7c20e57

Browse files
JRaspassoalders
authored andcommitted
Replace "base" with "parent"
As per the documentation, parent is encouraged these days: "Unless you are using the fields pragma, consider this module discouraged in favor of the lighter-weight parent." Since we don't use the fields pragma let's use parent. It'll only be an extra dep for Perl 5.8 users since it's core in 5.10+.
1 parent 8bd55ca commit 7c20e57

File tree

7 files changed

+12
-11
lines changed

7 files changed

+12
-11
lines changed

Changes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ Revision history for WWW::Mechanize
22

33
{{$NEXT}}
44
- Fix minor typo in SYNOPSIS example code comment (GH#379) (Paul Cochrane)
5+
- Replace "base" with "parent" (GH#381) (James Raspass)
56

67
2.18 2024-01-30 14:29:44Z
78
[FIXED]

META.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"Andy Lester <andy at petdance.com>"
55
],
66
"dynamic_config" : 0,
7-
"generated_by" : "Dist::Zilla version 6.031, CPAN::Meta::Converter version 2.150010",
7+
"generated_by" : "Dist::Zilla version 6.032, CPAN::Meta::Converter version 2.150010",
88
"license" : [
99
"perl_5"
1010
],
@@ -79,7 +79,7 @@
7979
"Tie::RefHash" : "0",
8080
"URI::URL" : "0",
8181
"URI::file" : "0",
82-
"base" : "0",
82+
"parent" : "0",
8383
"perl" : "5.008",
8484
"strict" : "0",
8585
"warnings" : "0"

Makefile.PL

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.031.
1+
# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.032.
22
use strict;
33
use warnings;
44

@@ -35,7 +35,7 @@ my %WriteMakefileArgs = (
3535
"Tie::RefHash" => 0,
3636
"URI::URL" => 0,
3737
"URI::file" => 0,
38-
"base" => 0,
38+
"parent" => 0,
3939
"strict" => 0,
4040
"warnings" => 0
4141
},
@@ -100,9 +100,9 @@ my %FallbackPrereqs = (
100100
"URI::Escape" => 0,
101101
"URI::URL" => 0,
102102
"URI::file" => 0,
103-
"base" => 0,
104103
"bytes" => 0,
105104
"lib" => 0,
105+
"parent" => 0,
106106
"strict" => 0,
107107
"warnings" => 0
108108
);

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1528,7 +1528,7 @@ like to _systematically_ perform the above HTML substitution, you
15281528
would overload `update_html` in a subclass thusly:
15291529

15301530
package MyMech;
1531-
use base 'WWW::Mechanize';
1531+
use parent 'WWW::Mechanize';
15321532

15331533
sub update_html {
15341534
my ($self, $html) = @_;

cpanfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file is generated by Dist::Zilla::Plugin::CPANFile v6.031
1+
# This file is generated by Dist::Zilla::Plugin::CPANFile v6.032
22
# Do not edit this file directly. To change prereqs, edit the `dist.ini` file.
33

44
requires "Carp" => "0";
@@ -16,7 +16,7 @@ requires "Scalar::Util" => "1.14";
1616
requires "Tie::RefHash" => "0";
1717
requires "URI::URL" => "0";
1818
requires "URI::file" => "0";
19-
requires "base" => "0";
19+
requires "parent" => "0";
2020
requires "perl" => "5.008";
2121
requires "strict" => "0";
2222
requires "warnings" => "0";

lib/WWW/Mechanize.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ use HTML::Form 1.00 ();
142142
use HTML::TokeParser ();
143143
use Scalar::Util qw( tainted );
144144

145-
use base 'LWP::UserAgent';
145+
use parent 'LWP::UserAgent';
146146

147147
our $HAS_ZLIB;
148148

@@ -3202,7 +3202,7 @@ like to I<systematically> perform the above HTML substitution, you
32023202
would overload C<update_html> in a subclass thusly:
32033203
32043204
package MyMech;
3205-
use base 'WWW::Mechanize';
3205+
use parent 'WWW::Mechanize';
32063206
32073207
sub update_html {
32083208
my ($self, $html) = @_;

t/local/overload.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ isa_ok( $server, 'LocalServer' );
4848

4949
do {
5050
package MyMech;
51-
use base 'WWW::Mechanize';
51+
use parent 'WWW::Mechanize';
5252

5353
sub update_html {
5454
my $self = shift;

0 commit comments

Comments
 (0)