From: Peter Rabbitson Date: Mon, 27 Apr 2015 09:01:29 +0000 (+0200) Subject: (optdeps) Rename an inconsistent 'icdt' marker to 'ic_dt' before we've shipped it X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=bf3587cecb3637047323634b0e00a5fbcb4a3409;p=dbsrgits%2FDBIx-Class-Historic.git (optdeps) Rename an inconsistent 'icdt' marker to 'ic_dt' before we've shipped it --- diff --git a/Changes b/Changes index 07ae071..106968e 100644 --- a/Changes +++ b/Changes @@ -2,7 +2,7 @@ Revision history for DBIx::Class * New Features - DBIx::Class::Optional::Dependencies now properly understands combinations of requirements and does the right thing with e.g. - ->req_list_for([qw( rdbms_oracle icdt )]) bringing in the Oracle + ->req_list_for([qw( rdbms_oracle ic_dt )]) bringing in the Oracle specific DateTime::Format dependencies * Fixes diff --git a/lib/DBIx/Class/Optional/Dependencies.pm b/lib/DBIx/Class/Optional/Dependencies.pm index d7996b8..600a48e 100644 --- a/lib/DBIx/Class/Optional/Dependencies.pm +++ b/lib/DBIx/Class/Optional/Dependencies.pm @@ -47,9 +47,9 @@ my $dbic_reqs = { }, # a common placeholder for engines with IC::DT support based off DT::F::S - _icdt_strptime_based => { + _ic_dt_strptime_based => { augment => { - icdt => { + ic_dt => { req => { 'DateTime::Format::Strptime' => '1.2', }, @@ -133,7 +133,7 @@ my $dbic_reqs = { }, }, - icdt => { + ic_dt => { req => { 'DateTime' => '0.55', }, @@ -236,7 +236,7 @@ my $dbic_reqs = { desc => 'Modules required to connect to SQLite', }, augment => { - icdt => { + ic_dt => { req => { 'DateTime::Format::SQLite' => '0', }, @@ -246,9 +246,9 @@ my $dbic_reqs = { # centralize the specification, as we have ICDT tests which can # test the full behavior of RDBMS-specific ICDT on top of bare SQLite - _icdt_pg_base => { + _ic_dt_pg_base => { augment => { - icdt => { + ic_dt => { req => { 'DateTime::Format::Pg' => '0.16004', }, @@ -256,12 +256,12 @@ my $dbic_reqs = { }, }, - icdt_pg => { - include => [qw( icdt _icdt_pg_base )], + ic_dt_pg => { + include => [qw( ic_dt _ic_dt_pg_base )], }, rdbms_pg => { - include => '_icdt_pg_base', + include => '_ic_dt_pg_base', req => { # when changing this list make sure to adjust xt/optional_deps.t 'DBD::Pg' => 0, @@ -273,7 +273,7 @@ my $dbic_reqs = { }, _rdbms_mssql_common => { - include => '_icdt_strptime_based', + include => '_ic_dt_strptime_based', }, rdbms_mssql_odbc => { @@ -304,7 +304,7 @@ my $dbic_reqs = { }, _rdbms_msaccess_common => { - include => '_icdt_strptime_based', + include => '_ic_dt_strptime_based', }, rdbms_msaccess_odbc => { @@ -325,9 +325,9 @@ my $dbic_reqs = { # centralize the specification, as we have ICDT tests which can # test the full behavior of RDBMS-specific ICDT on top of bare SQLite - _icdt_mysql_base => { + _ic_dt_mysql_base => { augment => { - icdt => { + ic_dt => { req => { 'DateTime::Format::MySQL' => '0', }, @@ -335,12 +335,12 @@ my $dbic_reqs = { }, }, - icdt_mysql => { - include => [qw( icdt _icdt_mysql_base )], + ic_dt_mysql => { + include => [qw( ic_dt _ic_dt_mysql_base )], }, rdbms_mysql => { - include => '_icdt_mysql_base', + include => '_ic_dt_mysql_base', req => { 'DBD::mysql' => 0, }, @@ -360,7 +360,7 @@ my $dbic_reqs = { desc => 'Modules required to connect to Oracle', }, augment => { - icdt => { + ic_dt => { req => { 'DateTime::Format::Oracle' => '0', }, @@ -369,7 +369,7 @@ my $dbic_reqs = { }, rdbms_ase => { - include => '_icdt_strptime_based', + include => '_ic_dt_strptime_based', req => { 'DBD::Sybase' => 0, }, @@ -381,7 +381,7 @@ my $dbic_reqs = { _rdbms_db2_common => { augment => { - icdt => { + ic_dt => { req => { 'DateTime::Format::DB2' => '0', }, @@ -409,7 +409,7 @@ my $dbic_reqs = { }, rdbms_informix => { - include => '_icdt_strptime_based', + include => '_ic_dt_strptime_based', req => { 'DBD::Informix' => 0, }, @@ -420,7 +420,7 @@ my $dbic_reqs = { }, _rdbms_sqlanywhere_common => { - inclide => '_icdt_strptime_based', + include => '_ic_dt_strptime_based', }, rdbms_sqlanywhere => { @@ -443,7 +443,7 @@ my $dbic_reqs = { }, _rdbms_firebird_common => { - include => '_icdt_strptime_based', + include => '_ic_dt_strptime_based', }, rdbms_firebird => { @@ -1227,7 +1227,7 @@ Somewhere in your build-file (e.g. L's F): my %DBIC_DEPLOY_AND_ORACLE_DEPS = %{ eval { require $class; - $class->req_list_for([qw( deploy rdbms_oracle icdt )]); + $class->req_list_for([qw( deploy rdbms_oracle ic_dt )]); } || {} }; \$EUMM_ARGS{PREREQ_PM} = { diff --git a/t/52leaks.t b/t/52leaks.t index ece1a45..6ed7b41 100644 --- a/t/52leaks.t +++ b/t/52leaks.t @@ -99,7 +99,7 @@ if ( !$ENV{DBICTEST_VIA_REPLICATED} and !DBICTest::RunMode->is_plain ) { # Load them and empty the registry # this loads the DT armada - $has_dt = DBIx::Class::Optional::Dependencies->req_ok_for([qw( test_rdbms_sqlite icdt )]); + $has_dt = DBIx::Class::Optional::Dependencies->req_ok_for([qw( test_rdbms_sqlite ic_dt )]); require Errno; require DBI; diff --git a/t/cdbi/68-inflate_has_a.t b/t/cdbi/68-inflate_has_a.t index ed4f4fe..37eac4b 100644 --- a/t/cdbi/68-inflate_has_a.t +++ b/t/cdbi/68-inflate_has_a.t @@ -1,4 +1,4 @@ -use DBIx::Class::Optional::Dependencies -skip_all_without => qw( icdt cdbicompat ); +use DBIx::Class::Optional::Dependencies -skip_all_without => qw( ic_dt cdbicompat ); use strict; use warnings; diff --git a/t/cdbi/70_implicit_inflate.t b/t/cdbi/70_implicit_inflate.t index 4a3fd6f..fa53816 100644 --- a/t/cdbi/70_implicit_inflate.t +++ b/t/cdbi/70_implicit_inflate.t @@ -1,4 +1,4 @@ -use DBIx::Class::Optional::Dependencies -skip_all_without => qw( cdbicompat rdbms_sqlite icdt ); +use DBIx::Class::Optional::Dependencies -skip_all_without => qw( cdbicompat rdbms_sqlite ic_dt ); use strict; use warnings; diff --git a/t/cdbi/set_to_undef.t b/t/cdbi/set_to_undef.t index 81f6f8a..5b642e0 100644 --- a/t/cdbi/set_to_undef.t +++ b/t/cdbi/set_to_undef.t @@ -1,4 +1,4 @@ -use DBIx::Class::Optional::Dependencies -skip_all_without => qw( icdt cdbicompat ); +use DBIx::Class::Optional::Dependencies -skip_all_without => qw( ic_dt cdbicompat ); use strict; use warnings; diff --git a/t/cdbi/set_vs_DateTime.t b/t/cdbi/set_vs_DateTime.t index e246b13..2fe0879 100644 --- a/t/cdbi/set_vs_DateTime.t +++ b/t/cdbi/set_vs_DateTime.t @@ -1,4 +1,4 @@ -use DBIx::Class::Optional::Dependencies -skip_all_without => qw( icdt cdbicompat ); +use DBIx::Class::Optional::Dependencies -skip_all_without => qw( ic_dt cdbicompat ); use strict; use warnings; diff --git a/t/icdt/core.t b/t/icdt/core.t index aa92602..8f0c83c 100644 --- a/t/icdt/core.t +++ b/t/icdt/core.t @@ -1,4 +1,4 @@ -use DBIx::Class::Optional::Dependencies -skip_all_without => qw( test_rdbms_sqlite icdt ); +use DBIx::Class::Optional::Dependencies -skip_all_without => qw( test_rdbms_sqlite ic_dt ); use strict; use warnings; diff --git a/t/icdt/engine_specific/firebird.t b/t/icdt/engine_specific/firebird.t index 3247851..ffe6852 100644 --- a/t/icdt/engine_specific/firebird.t +++ b/t/icdt/engine_specific/firebird.t @@ -1,4 +1,4 @@ -use DBIx::Class::Optional::Dependencies -skip_all_without => qw( icdt _rdbms_firebird_common ); +use DBIx::Class::Optional::Dependencies -skip_all_without => qw( ic_dt _rdbms_firebird_common ); use strict; use warnings; diff --git a/t/icdt/engine_specific/informix.t b/t/icdt/engine_specific/informix.t index 339d8cb..c82274b 100644 --- a/t/icdt/engine_specific/informix.t +++ b/t/icdt/engine_specific/informix.t @@ -1,4 +1,4 @@ -use DBIx::Class::Optional::Dependencies -skip_all_without => qw( icdt test_rdbms_informix ); +use DBIx::Class::Optional::Dependencies -skip_all_without => qw( ic_dt test_rdbms_informix ); use strict; use warnings; diff --git a/t/icdt/engine_specific/msaccess.t b/t/icdt/engine_specific/msaccess.t index 4436922..ed5830f 100644 --- a/t/icdt/engine_specific/msaccess.t +++ b/t/icdt/engine_specific/msaccess.t @@ -1,4 +1,4 @@ -use DBIx::Class::Optional::Dependencies -skip_all_without => qw( icdt _rdbms_msaccess_common ); +use DBIx::Class::Optional::Dependencies -skip_all_without => qw( ic_dt _rdbms_msaccess_common ); use strict; use warnings; diff --git a/t/icdt/engine_specific/mssql.t b/t/icdt/engine_specific/mssql.t index 8e2dee4..523530a 100644 --- a/t/icdt/engine_specific/mssql.t +++ b/t/icdt/engine_specific/mssql.t @@ -1,4 +1,4 @@ -use DBIx::Class::Optional::Dependencies -skip_all_without => qw( icdt _rdbms_mssql_common ); +use DBIx::Class::Optional::Dependencies -skip_all_without => qw( ic_dt _rdbms_mssql_common ); use strict; use warnings; diff --git a/t/icdt/engine_specific/oracle.t b/t/icdt/engine_specific/oracle.t index d88a268..4dc94b3 100644 --- a/t/icdt/engine_specific/oracle.t +++ b/t/icdt/engine_specific/oracle.t @@ -1,4 +1,4 @@ -use DBIx::Class::Optional::Dependencies -skip_all_without => qw( icdt test_rdbms_oracle ); +use DBIx::Class::Optional::Dependencies -skip_all_without => qw( ic_dt test_rdbms_oracle ); use strict; use warnings; diff --git a/t/icdt/engine_specific/sqlanywhere.t b/t/icdt/engine_specific/sqlanywhere.t index 1c7b3ec..f186f93 100644 --- a/t/icdt/engine_specific/sqlanywhere.t +++ b/t/icdt/engine_specific/sqlanywhere.t @@ -1,4 +1,4 @@ -use DBIx::Class::Optional::Dependencies -skip_all_without => qw( icdt _rdbms_sqlanywhere_common ); +use DBIx::Class::Optional::Dependencies -skip_all_without => qw( ic_dt _rdbms_sqlanywhere_common ); use strict; use warnings; diff --git a/t/icdt/engine_specific/sqlite.t b/t/icdt/engine_specific/sqlite.t index 837d62f..f9b3210 100644 --- a/t/icdt/engine_specific/sqlite.t +++ b/t/icdt/engine_specific/sqlite.t @@ -1,4 +1,4 @@ -use DBIx::Class::Optional::Dependencies -skip_all_without => qw( icdt test_rdbms_sqlite ); +use DBIx::Class::Optional::Dependencies -skip_all_without => qw( ic_dt test_rdbms_sqlite ); use strict; use warnings; diff --git a/t/icdt/engine_specific/sybase.t b/t/icdt/engine_specific/sybase.t index bf834aa..5f6efc8 100644 --- a/t/icdt/engine_specific/sybase.t +++ b/t/icdt/engine_specific/sybase.t @@ -1,4 +1,4 @@ -use DBIx::Class::Optional::Dependencies -skip_all_without => qw( icdt test_rdbms_ase ); +use DBIx::Class::Optional::Dependencies -skip_all_without => qw( ic_dt test_rdbms_ase ); use strict; use warnings; diff --git a/t/icdt/offline_mysql.t b/t/icdt/offline_mysql.t index 11302b8..91bd3f6 100644 --- a/t/icdt/offline_mysql.t +++ b/t/icdt/offline_mysql.t @@ -1,4 +1,4 @@ -use DBIx::Class::Optional::Dependencies -skip_all_without => qw( icdt_mysql ); +use DBIx::Class::Optional::Dependencies -skip_all_without => qw( ic_dt_mysql ); use strict; use warnings; diff --git a/t/icdt/offline_pg.t b/t/icdt/offline_pg.t index 0a04be6..aca2cc3 100644 --- a/t/icdt/offline_pg.t +++ b/t/icdt/offline_pg.t @@ -1,4 +1,4 @@ -use DBIx::Class::Optional::Dependencies -skip_all_without => qw( icdt_pg ); +use DBIx::Class::Optional::Dependencies -skip_all_without => qw( ic_dt_pg ); use strict; use warnings; diff --git a/xt/extra/internals/optional_deps.t b/xt/extra/internals/optional_deps.t index c0ffb74..b77b29f 100644 --- a/xt/extra/internals/optional_deps.t +++ b/xt/extra/internals/optional_deps.t @@ -193,7 +193,9 @@ is_deeply ( ); # ICDT augmentation - my $mysql_icdt = [shuffle qw( test_rdbms_mysql icdt )]; + my %expected_icdt_base = ( DateTime => '0.55', 'DateTime::TimeZone::OlsonDB' => 0 ); + + my $mysql_icdt = [shuffle qw( test_rdbms_mysql ic_dt )]; is_deeply( DBIx::Class::Optional::Dependencies->modreq_list_for($mysql_icdt), @@ -222,7 +224,7 @@ is_deeply ( # test multi-level include with a variable and mandatory part converging on same included dep local $ENV{DBICTEST_MSACCESS_ODBC_DSN}; local $ENV{DBICTEST_MSSQL_ODBC_DSN} = 'foo'; - my $msaccess_mssql_icdt = [ shuffle qw( test_rdbms_msaccess_odbc test_rdbms_mssql_odbc icdt ) ]; + my $msaccess_mssql_icdt = [ shuffle qw( test_rdbms_msaccess_odbc test_rdbms_mssql_odbc ic_dt ) ]; is_deeply( DBIx::Class::Optional::Dependencies->req_missing_for($msaccess_mssql_icdt), 'Data::GUID DateTime~0.55 DateTime::Format::Strptime~1.2 DBD::ODBC as well as the following group(s) of environment variables: DBICTEST_MSACCESS_ODBC_DSN/..._USER/..._PASS',