+
+ - converted uses of Path::Class to Path::Tiny (Karen Etheridge)
+
0.03 Sat Jun 26 23:19:41 CDT 2010
- modified verification of RunnableClass values to use
Params::Util::_CLASS (Karen Etheridge)
requires 'Moose';
requires 'MooseX::Getopt'; # not really
requires 'MooseX::Types' => '0.10';
-requires 'MooseX::Types::Path::Class';
+requires 'Path::Tiny';
+requires 'MooseX::Types::Path::Tiny';
requires 'namespace::autoclean';
requires 'List::MoreUtils';
requires 'Params::Util';
use Moose::Role;
use MooseX::Types;
use MooseX::Types::Moose qw(ArrayRef RegexpRef Any Str);
-use MooseX::Types::Path::Class qw(Dir);
+use MooseX::Types::Path::Tiny qw(Path);
+use Path::Tiny; # exports path()
use File::ChangeNotify;
use namespace::autoclean;
has 'watch_directories' => (
is => 'ro',
- isa => ArrayRef[Dir],
+ isa => ArrayRef[Path],
required => 1,
coerce => 1,
- default => sub { [Path::Class::dir('.')] },
+ default => sub { [path('.')] },
);
has 'watcher' => (
}
}
my %result;
- $result{watch_directories} = [map { Path::Class::dir($_) } @dirs] if @dirs;
+ $result{watch_directories} = [map { path($_) } @dirs] if @dirs;
$result{watch_regexp} = $regexp if $regexp;
return \%result;
}
package MooseX::Runnable::Util::ArgParser;
use Moose;
use MooseX::Types::Moose qw(HashRef ArrayRef Str Bool);
-use MooseX::Types::Path::Class qw(Dir);
+use MooseX::Types::Path::Tiny qw(Path);
+use Path::Tiny; # exports path()
use List::MoreUtils qw(first_index);
use FindBin;
has 'include_paths' => (
is => 'ro',
- isa => ArrayRef[Dir],
+ isa => ArrayRef[Path],
lazy_build => 1,
auto_deref => 1,
);
sub _build_include_paths {
my $self = shift;
my @args = $self->argv;
- return [ map { Path::Class::dir($_) } _look_for_dash_something 'I', @args ];
+ return [ map { path($_) } _look_for_dash_something 'I', @args ];
}
sub _build_is_help {