Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
no longer use the legacy API
  • Loading branch information
kraih committed Jan 2, 2017
1 parent 62aa528 commit 6f233e1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

7.14 2017-01-01
7.14 2017-01-02

7.13 2016-12-23
- Deprecated Mojo::Message::Response::is_status_class in favor of new is_*
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojolicious/Command.pm
Expand Up @@ -4,7 +4,7 @@ use Mojo::Base -base;
use Carp 'croak';
use Cwd 'getcwd';
use File::Basename 'dirname';
use File::Path 'mkpath';
use File::Path 'make_path';
use File::Spec::Functions qw(catdir catfile);
use Mojo::Loader 'data_section';
use Mojo::Server;
Expand All @@ -28,7 +28,7 @@ sub chmod_rel_file { $_[0]->chmod_file($_[0]->rel_file($_[1]), $_[2]) }
sub create_dir {
my ($self, $path) = @_;
return $self->_loud(" [exist] $path") if -d $path;
mkpath $path or croak qq{Can't make directory "$path": $!};
make_path $path or croak qq{Can't make directory "$path": $!};
return $self->_loud(" [mkdir] $path");
}

Expand Down
4 changes: 2 additions & 2 deletions t/mojo/morbo.t
Expand Up @@ -7,7 +7,7 @@ use Test::More;
plan skip_all => 'set TEST_MORBO to enable this test (developer only!)'
unless $ENV{TEST_MORBO};

use File::Path 'mkpath';
use File::Path 'make_path';
use File::Spec::Functions qw(catdir catfile);
use File::Temp 'tempdir';
use FindBin;
Expand All @@ -23,7 +23,7 @@ use Socket qw(SO_REUSEPORT SOL_SOCKET);
my $dir = tempdir CLEANUP => 1;
my $script = catfile $dir, 'myapp.pl';
my $subdir = catdir $dir, 'test', 'stuff';
mkpath $subdir;
make_path $subdir;
my $morbo = Mojo::Server::Morbo->new(watch => [$subdir, $script]);
is_deeply $morbo->modified_files, [], 'no files have changed';
spurt <<EOF, $script;
Expand Down

0 comments on commit 6f233e1

Please sign in to comment.