INSTALLDIRS => 'site',
PL_FILES => { },
PREREQ_PM => {
- 'Moose' => '2.0100', # inline_as
+ 'Moose' => '0.41', # class_type
'DateTime' => '0.4302',
'DateTime::Locale' => '0.4001',
'DateTime::TimeZone' => '0.95',
subtype( Now,
as Str,
where { $_ eq 'now' },
- Moose::Util::TypeConstraints::inline_as {
- 'no warnings "uninitialized";'.
- '!ref(' . $_[1] . ') and '. $_[1] .' eq "now"';
- },
+ ($Moose::VERSION >= 2.0100
+ ? Moose::Util::TypeConstraints::inline_as {
+ 'no warnings "uninitialized";'.
+ '!ref(' . $_[1] . ') and '. $_[1] .' eq "now"';
+ }
+ : Moose::Util::TypeConstraints::optimize_as {
+ no warnings 'uninitialized';
+ !ref($_[0]) and $_[0] eq 'now';
+ }
+ ),
);
our %coercions = (