Skip to content

Commit fccbeba

Browse files
committed
release Portable-1.21
1 parent 1cd77dc commit fccbeba

File tree

8 files changed

+20
-24
lines changed

8 files changed

+20
-24
lines changed

Changes

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

3+
1.21 Wed 9 Apr 2014
4+
- avoiding Carp (due to Carp reload failures)
5+
36
1.20 Mon 7 Apr 2014
47
- missing test files
58

lib/CPAN/Mini/Portable.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use warnings;
66
use Portable ();
77
use CPAN::Mini 0.575 ();
88

9-
our $VERSION = '1.20';
9+
our $VERSION = '1.21';
1010
our @ISA = 'CPAN::Mini';
1111

1212
sub new {

lib/Portable.pm

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,10 @@ more details on how it works...
5151
use 5.008;
5252
use strict;
5353
use warnings;
54-
use Carp ();
5554
use Parse::CPAN::Meta 1.39 ();
5655
use Portable::FileSpec;
5756

58-
our $VERSION = '1.20';
57+
our $VERSION = '1.21';
5958

6059
# This variable is provided exclusively for the
6160
# use of test scripts.
@@ -137,16 +136,16 @@ sub new {
137136

138137
# Param checking
139138
unless ( exists $self->{dist_volume} ) {
140-
Carp::croak('Missing or invalid dist_volume param');
139+
die('Missing or invalid dist_volume param');
141140
}
142141
unless ( _STRING($self->dist_dirs) ) {
143-
Carp::croak('Missing or invalid dist_dirs param');
142+
die('Missing or invalid dist_dirs param');
144143
}
145144
unless ( _STRING($self->dist_root) ) {
146-
Carp::croak('Missing or invalid dist_root param');
145+
die('Missing or invalid dist_root param');
147146
}
148147
unless ( _HASH($self->{portable}) ) {
149-
Carp::croak('Missing or invalid portable param');
148+
die('Missing or invalid portable param');
150149
}
151150

152151
# Compulsory support for Config.pm
@@ -196,7 +195,7 @@ sub default {
196195
} reverse ( 0 .. $#d );
197196
my $dist_dirs = $tmp[0];
198197
unless ( defined $dist_dirs ) {
199-
Carp::croak("Failed to find the portable.perl file");
198+
die("Failed to find the portable.perl file");
200199
}
201200

202201
# Derive the main paths from the plain dirs
@@ -206,7 +205,7 @@ sub default {
206205
# Load the YAML file
207206
my $portable = Parse::CPAN::Meta::LoadFile( $conf );
208207
unless ( _HASH($portable) ) {
209-
Carp::croak("Missing or invalid portable.perl file");
208+
die("Missing or invalid portable.perl file");
210209
}
211210

212211
# Hand off to the main constructor,

lib/Portable/CPAN.pm

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ package Portable::CPAN;
33
use 5.008;
44
use strict;
55
use warnings;
6-
use Carp ();
76
use Portable::FileSpec;
87

9-
our $VERSION = '1.20';
8+
our $VERSION = '1.21';
109

1110
# Create the enumerations
1211
our %bin = map { $_ => 1 } qw{
@@ -31,7 +30,7 @@ sub new {
3130
my $class = shift;
3231
my $parent = shift;
3332
unless ( Portable::_HASH($parent->portable_cpan) ) {
34-
Carp::croak('Missing or invalid cpan key in portable.perl');
33+
die('Missing or invalid cpan key in portable.perl');
3534
}
3635

3736
# Create the object

lib/Portable/Config.pm

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ package Portable::Config;
33
use 5.008;
44
use strict;
55
use warnings;
6-
use Carp ();
76
use Portable::FileSpec;
87

9-
our $VERSION = '1.20';
8+
our $VERSION = '1.21';
109

1110
#####################################################################
1211
# Constructor
@@ -15,7 +14,7 @@ sub new {
1514
my $class = shift;
1615
my $parent = shift;
1716
unless ( Portable::_HASH($parent->portable_config) ) {
18-
Carp::croak('Missing or invalid config key in portable.perl');
17+
die('Missing or invalid config key in portable.perl');
1918
}
2019

2120
# Create the object

lib/Portable/FileSpec.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use 5.008;
66
use strict;
77
use warnings;
88

9-
our $VERSION = '1.20';
9+
our $VERSION = '1.21';
1010

1111
# Some regexes we use for path splitting
1212
my $DRIVE_RX = '[a-zA-Z]:';

lib/Portable/HomeDir.pm

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,9 @@ package Portable::HomeDir;
55
use 5.008;
66
use strict;
77
use warnings;
8-
use Carp ();
9-
use Scalar::Util 1.21 ();
10-
use File::HomeDir::Driver 0.86 ();
118
use Portable::FileSpec;
129

13-
our $VERSION = '1.20';
10+
our $VERSION = '1.21';
1411

1512
#####################################################################
1613
# Portable Driver API
@@ -19,7 +16,7 @@ sub new {
1916
my $class = shift;
2017
my $parent = shift;
2118
unless ( Portable::_HASH($parent->portable_homedir) ) {
22-
Carp::croak('Missing or invalid HomeDir key in portable.perl');
19+
die('Missing or invalid HomeDir key in portable.perl');
2320
}
2421

2522
# Create the object

lib/Portable/minicpan.pm

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ package Portable::minicpan;
33
use 5.008;
44
use strict;
55
use warnings;
6-
use Carp ();
76
use Portable::FileSpec;
87

9-
our $VERSION = '1.20';
8+
our $VERSION = '1.21';
109

1110
#####################################################################
1211
# Portable Driver API
@@ -15,7 +14,7 @@ sub new {
1514
my $class = shift;
1615
my $parent = shift;
1716
unless ( Portable::_HASH($parent->portable_minicpan) ) {
18-
Carp::croak('Missing or invalid minicpan key in portable.perl');
17+
die('Missing or invalid minicpan key in portable.perl');
1918
}
2019

2120
# Create the object

0 commit comments

Comments
 (0)