replaced with shibboleth from File::HomeDir::Tiny
Revision history for Devel-REPL
{{ $NEXT }}
+ - removed File::HomeDir dependency
1.003028 2016-02-16 01:13:08Z
- increase the required version of Data::Dump::Streamer (see RT#105466)
our $VERSION = '1.003029';
use Devel::REPL::Plugin;
-use File::HomeDir;
use File::Spec;
use namespace::autoclean;
my $hist_file = $ENV{PERLREPL_HISTFILE} ||
- File::Spec->catfile(File::HomeDir->my_home, '.perlreplhist');
+ File::Spec->catfile(($^O eq 'MSWin32' && "$]" < 5.016 ? $ENV{HOME} || $ENV{USERPROFILE} : (<~>)[0]), '.perlreplhist');
# HISTLEN should probably be in a config file to stop people accidentally
# truncating their history if they start the program and forget to set
use Moose;
use Devel::REPL;
-use File::HomeDir;
use File::Spec;
use Module::Runtime 'use_module';
use namespace::autoclean;
# plain name => ~/.re.pl/${rc_file}
if ($rc_file !~ m!/!) {
- $rc_file = File::Spec->catfile(File::HomeDir->my_home, '.re.pl', $rc_file);
+ $rc_file = File::Spec->catfile(($^O eq 'MSWin32' && "$]" < 5.016 ? $ENV{HOME} || $ENV{USERPROFILE} : (<~>)[0]), '.re.pl', $rc_file);
}
$self->apply_script($rc_file);