### This may look crazy, but it in fact tangibly ( by 50(!)% ) shortens
# the skip-test time when everything requested is unavailable
-use if $ENV{RELEASE_TESTING} => 'warnings';
-use if $ENV{RELEASE_TESTING} => 'strict';
+BEGIN {
+ if ( $ENV{RELEASE_TESTING} ) {
+ require warnings and warnings->import;
+ require strict and strict->import;
+ }
+}
sub croak {
require Carp;
# POD is generated automatically by calling _gen_pod from the
# Makefile.PL in $AUTHOR mode
-# *DELIBERATELY* not making a group for these - they must disappear
-# forever as optdeps in the first place
-my $moose_basic = {
- 'Moose' => '0.98',
- 'MooseX::Types' => '0.21',
- 'MooseX::Types::LoadableClass' => '0.011',
-};
-
my $dbic_reqs = {
# NOTE: the rationale for 2 JSON::Any versions is that
},
},
+ _types_common => {
+ req => {
+ 'Type::Utils' => '0',
+ 'Type::Library' => '0',
+ 'Types::Standard' => '0',
+ 'Types::LoadableClass' => '0',
+ },
+ },
+
# a common placeholder for engines with IC::DT support based off DT::F::S
_icdt_strptime_based => {
augment => {
},
replicated => {
- req => $moose_basic,
+ include => '_types_common',
pod => {
title => 'Storage::Replicated',
desc => 'Modules required for L<DBIx::Class::Storage::DBI::Replicated>',
test_replicated => {
include => 'replicated',
- req => {
- 'Test::Moose' => '0',
- },
},
admin => {
- include => '_json_any',
- req => {
- %$moose_basic,
- 'MooseX::Types::Path::Class' => '0.05',
- 'MooseX::Types::JSON' => '0.02',
- },
+ include => [qw(_json_any _types_common)],
pod => {
title => 'DBIx::Class::Admin',
desc => 'Modules required for the DBIx::Class administrative library',
test_strictures => {
req => {
- 'Test::Strict' => '0.20',
+ 'Test::Strict' => '0.24',
},
release_testing_mandatory => 1,
},