Skip to content

Commit f1b74ec

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 2eb87c4 commit f1b74ec

8 files changed

Lines changed: 9 additions & 8 deletions

File tree

Changes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Revision history for HTTP-Message
22

33
{{$NEXT}}
4+
- Replace "base" with "parent" (GH#176) (James Raspass)
45

56
6.37 2022-06-14 14:08:55Z
67
- Support for Brotli "br" encoding (GH#163) (trizen and Julien Fiegehenn)

META.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"MIME::Base64" : "2.1",
7171
"MIME::QuotedPrint" : "0",
7272
"URI" : "1.10",
73-
"base" : "0",
73+
"parent" : "0",
7474
"perl" : "5.008001",
7575
"strict" : "0",
7676
"warnings" : "0"

Makefile.PL

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ my %WriteMakefileArgs = (
3636
"MIME::Base64" => "2.1",
3737
"MIME::QuotedPrint" => 0,
3838
"URI" => "1.10",
39-
"base" => 0,
39+
"parent" => 0,
4040
"strict" => 0,
4141
"warnings" => 0
4242
},
@@ -88,9 +88,9 @@ my %FallbackPrereqs = (
8888
"Try::Tiny" => 0,
8989
"URI" => "1.10",
9090
"URI::URL" => 0,
91-
"base" => 0,
9291
"lib" => 0,
9392
"overload" => 0,
93+
"parent" => 0,
9494
"strict" => 0,
9595
"warnings" => 0
9696
);

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ version 6.37
88

99
# SYNOPSIS
1010

11-
use base 'HTTP::Message';
11+
use parent 'HTTP::Message';
1212

1313
# DESCRIPTION
1414

cpanfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ requires "LWP::MediaTypes" => "6";
2020
requires "MIME::Base64" => "2.1";
2121
requires "MIME::QuotedPrint" => "0";
2222
requires "URI" => "1.10";
23-
requires "base" => "0";
23+
requires "parent" => "0";
2424
requires "perl" => "5.008001";
2525
requires "strict" => "0";
2626
requires "warnings" => "0";

lib/HTTP/Message.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ __END__
817817
818818
=head1 SYNOPSIS
819819
820-
use base 'HTTP::Message';
820+
use parent 'HTTP::Message';
821821
822822
=head1 DESCRIPTION
823823

lib/HTTP/Request.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use warnings;
55

66
our $VERSION = '6.38';
77

8-
use base 'HTTP::Message';
8+
use parent 'HTTP::Message';
99

1010
sub new
1111
{

lib/HTTP/Response.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use warnings;
55

66
our $VERSION = '6.38';
77

8-
use base 'HTTP::Message';
8+
use parent 'HTTP::Message';
99

1010
use HTTP::Status ();
1111

0 commit comments

Comments
 (0)