File tree Expand file tree Collapse file tree 8 files changed +58
-11
lines changed Expand file tree Collapse file tree 8 files changed +58
-11
lines changed Original file line number Diff line number Diff line change 1
1
Changes for Perl extension Portable.
2
2
3
+ 0.11 Wed 2 Jul 2008
4
+ - Debugged the minicpan backend to the point where it will
5
+ actually build and install properly.
6
+
3
7
0.10 Wed 2 Jul 2008
4
8
- Working on a proper implementation of the minicpan backend.
5
9
- Added missing test_requires Test::Exception.
Original file line number Diff line number Diff line change @@ -6,16 +6,16 @@ use warnings;
6
6
use Portable ();
7
7
use CPAN::Mini ();
8
8
9
- our $VERSION = ' 0.10 ' ;
9
+ our $VERSION = ' 0.11 ' ;
10
10
our @ISA = ' CPAN::Mini' ;
11
11
12
12
sub new {
13
- # Use the portable values as defaults
14
- my $portable = Portable-> default-> portable;
13
+ # Use the portable values as defaults,
14
+ # completely ignoring any passed params
15
+ my $minicpan = Portable-> default-> minicpan;
15
16
16
17
# Hand off to the parent class
17
- my $class = shift ;
18
- return $class -> SUPER::new( %$portable , @_ );
18
+ return $_ [0]-> SUPER::new( %$minicpan );
19
19
}
20
20
21
21
1;
Original file line number Diff line number Diff line change @@ -54,13 +54,12 @@ more details on how it works...
54
54
use 5.008;
55
55
use strict;
56
56
use warnings;
57
- # use feature 'state';
58
57
use Carp ();
59
58
use File::Spec ();
60
59
use List::Util ();
61
60
use Parse::CPAN::Meta ();
62
61
63
- our $VERSION = ' 0.10 ' ;
62
+ our $VERSION = ' 0.11 ' ;
64
63
65
64
# This variable is provided exclusively for the
66
65
# use of test scripts.
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ use strict;
5
5
use warnings;
6
6
use Carp ();
7
7
8
- our $VERSION = ' 0.10 ' ;
8
+ our $VERSION = ' 0.11 ' ;
9
9
10
10
# Create the enumerations
11
11
our %bin = map { $_ => 1 } qw{
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ use warnings;
6
6
use Carp ();
7
7
use File::Spec ();
8
8
9
- our $VERSION = ' 0.10 ' ;
9
+ our $VERSION = ' 0.11 ' ;
10
10
11
11
12
12
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ use Carp ();
9
9
use Scalar::Util ();
10
10
use File::HomeDir::Driver ();
11
11
12
- our $VERSION = ' 0.10 ' ;
12
+ our $VERSION = ' 0.11 ' ;
13
13
14
14
15
15
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ use strict;
5
5
use warnings;
6
6
use Carp ();
7
7
8
- our $VERSION = ' 0.10 ' ;
8
+ our $VERSION = ' 0.11 ' ;
9
9
10
10
11
11
@@ -41,6 +41,17 @@ sub new {
41
41
);
42
42
}
43
43
44
+ # Add the literal params
45
+ foreach my $key ( qw{
46
+ remote
47
+ quiet force offline
48
+ also_mirror exact_mirror
49
+ module_filters path_filters
50
+ skip_cleanup skip_perl
51
+ } ) {
52
+ $self -> {$key } = $minicpan -> {$key };
53
+ }
54
+
44
55
return $self ;
45
56
}
46
57
Original file line number Diff line number Diff line change
1
+ # !/usr/bin/perl
2
+
3
+ use strict;
4
+ BEGIN {
5
+ $| = 1;
6
+ $^W = 1;
7
+ }
8
+
9
+ use Test::More tests => 3;
10
+ use File::Spec::Functions ' :ALL' ;
11
+
12
+ # Override the perl path for testing purposes
13
+ $Portable::FAKE_PERL =
14
+ $Portable::FAKE_PERL = rel2abs(
15
+ catfile( qw{
16
+ t data perl bin perl.exe
17
+ } )
18
+ );
19
+
20
+ # Create a default object
21
+ use_ok( ' CPAN::Mini::Portable' );
22
+ my $object = CPAN::Mini::Portable-> new(
23
+ ' local' => 1,
24
+ ' remote' => 1,
25
+ );
26
+ isa_ok( $object , ' CPAN::Mini::Portable' );
27
+ is(
28
+ $object -> {remote },
29
+ ' http://cpan.strawberryperl.com/' ,
30
+ ' ->remote ok' ,
31
+ );
32
+
33
+ 1;
You can’t perform that action at this time.
0 commit comments