Skip to content

Commit 6c6fe8d

Browse files
SineSwiperoalders
authored andcommitted
Modernize and document new modules/methods
1 parent ef0392a commit 6c6fe8d

File tree

7 files changed

+46
-12
lines changed

7 files changed

+46
-12
lines changed

dist.ini

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ skip = URI::_idna
9191
skip = URI::_login
9292
skip = URI::_ldap
9393
skip = URI::file::QNX
94+
skip = URI::ftpes
95+
skip = URI::ftps
96+
skip = URI::irc
9497
skip = URI::nntp
9598
skip = URI::urn::isbn
9699
skip = URI::urn::oid
@@ -111,7 +114,7 @@ trustme = URI::file::Mac => qr/^(?:dir|file)$/
111114
trustme = URI::file::OS2 => qr/^(?:file)$/
112115
trustme = URI::file::Unix => qr/^(?:file)$/
113116
trustme = URI::file::Win32 => qr/^(?:file|fix_path)$/
114-
trustme = URI::ftp => qr/^(?:password|user)$/
117+
trustme = URI::ftp => qr/^(?:password|user|encrypt_mode)$/
115118
trustme = URI::gopher => qr/^(?:gopher_type|gtype|search|selector|string)$/
116119
trustme = URI::ldapi => qr/^(?:un_path)$/
117120
trustme = URI::mailto => qr/^(?:headers|to)$/

lib/URI.pm

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -970,6 +970,9 @@ C<URI> objects belonging to the ftp scheme support the common,
970970
generic and server methods. In addition, they provide two methods for
971971
accessing the userinfo sub-components: $uri->user and $uri->password.
972972
973+
It also supports accessing to the encryption mode ($uri->encrypt_mode),
974+
which has its own defaults for I<ftps> and I<ftpes> URI schemes.
975+
973976
=item B<gopher>:
974977
975978
The I<gopher> URI scheme is specified in
@@ -1020,6 +1023,15 @@ The scheme is used to reference ICAP servers through SSL
10201023
connections. Its syntax is the same as icap, including the same
10211024
default port.
10221025
1026+
=item B<irc>:
1027+
1028+
The I<irc> URI scheme is specified in L<draft-butcher-irc-url-04|https://datatracker.ietf.org/doc/html/draft-butcher-irc-url-04>.
1029+
The scheme is used to reference IRC servers and their resources.
1030+
1031+
C<URI> objects belonging to the irc or ircs scheme support login
1032+
methods, and the following IRC-specific ones: $uri->entity,
1033+
$uri->flags, $uri->options.
1034+
10231035
=item B<ldap>:
10241036
10251037
The I<ldap> URI scheme is specified in RFC 2255. LDAP is the

lib/URI/ftpes.pm

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
package URI::ftpes;
22

3-
require URI::ftp;
4-
@ISA=qw(URI::ftp);
3+
use strict;
4+
use warnings;
5+
6+
our $VERSION = '5.29';
7+
8+
use parent 'URI::ftp';
59

610
sub secure { 1 }
711

lib/URI/ftps.pm

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
package URI::ftps;
22

3-
require URI::ftp;
4-
@ISA=qw(URI::ftp);
3+
use strict;
4+
use warnings;
5+
6+
our $VERSION = '5.29';
7+
8+
use parent 'URI::ftp';
59

610
sub default_port { 990 }
711

lib/URI/irc.pm

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
package URI::irc; # draft-butcher-irc-url-04
22

3-
require URI::_login;
4-
@ISA=qw(URI::_login);
5-
63
use strict;
4+
use warnings;
5+
6+
our $VERSION = '5.29';
7+
8+
use parent 'URI::_login';
79

810
use overload (
911
'""' => sub { $_[0]->as_string },

lib/URI/ircs.pm

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
package URI::ircs;
22

3-
require URI::irc;
4-
@ISA=qw(URI::irc);
3+
use strict;
4+
use warnings;
5+
6+
our $VERSION = '5.29';
7+
8+
use parent 'URI::irc';
59

610
sub default_port { 994 }
711

lib/URI/scp.pm

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
package URI::scp;
2-
require URI::ssh;
3-
@ISA=qw(URI::ssh);
2+
3+
use strict;
4+
use warnings;
5+
6+
our $VERSION = '5.29';
7+
8+
use parent 'URI::ssh';
49

510
1;

0 commit comments

Comments
 (0)