Skip to content

Commit 62aa515

Browse files
committed
Making CPAN::Config work properly, and prepping for CPAN::Mini
1 parent 3e0c45f commit 62aa515

File tree

8 files changed

+40
-10
lines changed

8 files changed

+40
-10
lines changed

Changes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
Changes for Perl extension Portable
22

3+
0.09 Wed 2 Jul 2008
4+
- Fixing my_documents, my_data, etc in Portable::HomeDir.
5+
- Implementing my_data also fixes Portable::CPAN.
6+
- Adding CPAN::Mini as a dependency for that backend.
7+
38
0.08 Tue 1 Jul 2008
49
- Adding a dependency on a new version of File::HomeDir
510

Makefile.PL

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ requires 'List::Util' => '1.19';
55
requires 'File::Spec' => '0.80';
66
requires 'Parse::CPAN::Meta' => '0.03';
77
requires 'File::HomeDir' => '0.80';
8+
requires 'CPAN::Mini' => '0.570';
89
test_requires 'Test::More' => '0.42';
910
test_requires 'Class::Inspector' => '1.20';
1011

lib/CPAN/Mini/Portable.pm

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ package CPAN::Mini::Portable;
33
use 5.008;
44
use strict;
55
use warnings;
6-
use base 'CPAN::Mini';
7-
use Portable ();
6+
use CPAN::Mini ();
7+
use Portable ();
88

9-
our $VERSION = '0.08';
9+
our $VERSION = '0.09';
10+
our @ISA = 'CPAN::Mini';
1011

1112
sub new {
1213
my $class = shift;

lib/Portable.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ use File::Spec ();
6060
use List::Util ();
6161
use Parse::CPAN::Meta ();
6262

63-
our $VERSION = '0.08';
63+
our $VERSION = '0.09';
6464

6565
# This variable is provided exclusively for the
6666
# use of test scripts.

lib/Portable/CPAN.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use strict;
55
use warnings;
66
use Carp ();
77

8-
our $VERSION = '0.08';
8+
our $VERSION = '0.09';
99

1010
# Create the enumerations
1111
our %bin = map { $_ => 1 } qw{

lib/Portable/Config.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use warnings;
66
use Carp ();
77
use File::Spec ();
88

9-
our $VERSION = '0.08';
9+
our $VERSION = '0.09';
1010

1111

1212

lib/Portable/HomeDir.pm

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ use Carp ();
99
use Scalar::Util ();
1010
use File::HomeDir::Driver ();
1111

12-
our $VERSION = '0.08';
13-
our @ISA = ();
12+
our $VERSION = '0.09';
1413

1514

1615

@@ -89,4 +88,29 @@ sub my_home {
8988
_SELF(@_)->{my_home};
9089
}
9190

91+
# The concept of "my_desktop" is incompatible with the idea of
92+
# a Portable Perl distribution (because Windows won't overwrite
93+
# the desktop with anything on the flash drive)
94+
# sub my_desktop
95+
96+
sub my_documents {
97+
_SELF(@_)->{my_documents};
98+
}
99+
100+
sub my_music {
101+
_SELF(@_)->{my_music};
102+
}
103+
104+
sub my_pictures {
105+
_SELF(@_)->{my_pictures};
106+
}
107+
108+
sub my_videos {
109+
_SELF(@_)->{my_videos};
110+
}
111+
112+
sub my_data {
113+
_SELF(@_)->{my_data};
114+
}
115+
92116
1;

lib/Portable/minicpan.pm

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ use strict;
55
use warnings;
66
use Carp ();
77

8-
our $VERSION = '0.08';
9-
our @ISA = ();
8+
our $VERSION = '0.09';
109

1110

1211

0 commit comments

Comments
 (0)