Skip to content

Commit 4f96d02

Browse files
committed
Update File-Fetch to CPAN version 1.04
[DELTA] 1.04 Tue Jan 18 20:46:04 2022 * Resolve test warnings reported in GitHub issue #22 relating to Github's deprecation and removal of git:// protocol * Pointed various RFC links in docs to ietf.org
1 parent 9471c77 commit 4f96d02

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Porting/Maintainers.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ package Maintainers;
505505
},
506506

507507
'File::Fetch' => {
508-
'DISTRIBUTION' => 'BINGOS/File-Fetch-1.02.tar.gz',
508+
'DISTRIBUTION' => 'BINGOS/File-Fetch-1.04.tar.gz',
509509
'FILES' => q[cpan/File-Fetch],
510510
},
511511

cpan/File-Fetch/lib/File/Fetch.pm

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use vars qw[ $VERBOSE $PREFER_BIN $FROM_EMAIL $USER_AGENT
2222
$FTP_PASSIVE $TIMEOUT $DEBUG $WARN $FORCEIPV4
2323
];
2424

25-
$VERSION = '1.02';
25+
$VERSION = '1.04';
2626
$VERSION = eval $VERSION; # avoid warnings with development releases
2727
$PREFER_BIN = 0; # XXX TODO implement
2828
$FROM_EMAIL = '[email protected]';
@@ -359,7 +359,7 @@ sub _parse_uri {
359359
$href->{scheme} = $1;
360360

361361
### See rfc 1738 section 3.10
362-
### http://www.faqs.org/rfcs/rfc1738.html
362+
### https://datatracker.ietf.org/doc/html/rfc1738#section-3.10
363363
### And wikipedia for more on windows file:// urls
364364
### http://en.wikipedia.org/wiki/File://
365365
if( $href->{scheme} eq 'file' ) {
@@ -1315,7 +1315,7 @@ sub _fetch_fetch {
13151315

13161316
### use File::Copy for fetching file:// urls ###
13171317
###
1318-
### See section 3.10 of RFC 1738 (http://www.faqs.org/rfcs/rfc1738.html)
1318+
### See section 3.10 of RFC 1738 (https://datatracker.ietf.org/doc/html/rfc1738#section-3.10)
13191319
### Also see wikipedia on file:// (http://en.wikipedia.org/wiki/File://)
13201320
###
13211321

@@ -1698,7 +1698,7 @@ the C<URI::Escape> module from CPAN, and pre-encode your URI before
16981698
passing it to C<File::Fetch>. You can read about the details of URIs
16991699
and URI encoding here:
17001700
1701-
http://www.faqs.org/rfcs/rfc2396.html
1701+
L<https://datatracker.ietf.org/doc/html/rfc2396>
17021702
17031703
=head1 TODO
17041704

cpan/File-Fetch/t/01_File-Fetch.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ for my $entry (@map) {
235235
}
236236

237237
### git:// tests ###
238-
{ my $uri = 'git://github.com/Perl-Toolchain-Gang/file-fetch.git';
238+
{ my $uri = 'https://github.com/Perl-Toolchain-Gang/file-fetch.git';
239239

240240
for (qw[git]) {
241241
local $ENV{GIT_CONFIG_NOSYSTEM} = 1;

0 commit comments

Comments
 (0)