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=54a9a08890c1784af806b643a3671faf1312c2fc;p=dbsrgits%2FDBIx-Class.git (optdeps) Rename an inconsistent 'icdt' marker to 'ic_dt' before we've shipped it --- diff --git a/Changes b/Changes index 153c3a8..8fe9a0a 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 13ce5c3..6ac9e50 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', 'DateTime::TimeZone::OlsonDB' => 0, @@ -237,7 +237,7 @@ my $dbic_reqs = { desc => 'Modules required to connect to SQLite', }, augment => { - icdt => { + ic_dt => { req => { 'DateTime::Format::SQLite' => '0', }, @@ -247,9 +247,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', }, @@ -257,12 +257,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, @@ -274,7 +274,7 @@ my $dbic_reqs = { }, _rdbms_mssql_common => { - include => '_icdt_strptime_based', + include => '_ic_dt_strptime_based', }, rdbms_mssql_odbc => { @@ -305,7 +305,7 @@ my $dbic_reqs = { }, _rdbms_msaccess_common => { - include => '_icdt_strptime_based', + include => '_ic_dt_strptime_based', }, rdbms_msaccess_odbc => { @@ -326,9 +326,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', }, @@ -336,12 +336,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, }, @@ -361,7 +361,7 @@ my $dbic_reqs = { desc => 'Modules required to connect to Oracle', }, augment => { - icdt => { + ic_dt => { req => { 'DateTime::Format::Oracle' => '0', }, @@ -370,7 +370,7 @@ my $dbic_reqs = { }, rdbms_ase => { - include => '_icdt_strptime_based', + include => '_ic_dt_strptime_based', req => { 'DBD::Sybase' => 0, }, @@ -382,7 +382,7 @@ my $dbic_reqs = { _rdbms_db2_common => { augment => { - icdt => { + ic_dt => { req => { 'DateTime::Format::DB2' => '0', }, @@ -410,7 +410,7 @@ my $dbic_reqs = { }, rdbms_informix => { - include => '_icdt_strptime_based', + include => '_ic_dt_strptime_based', req => { 'DBD::Informix' => 0, }, @@ -421,7 +421,7 @@ my $dbic_reqs = { }, _rdbms_sqlanywhere_common => { - inclide => '_icdt_strptime_based', + include => '_ic_dt_strptime_based', }, rdbms_sqlanywhere => { @@ -444,7 +444,7 @@ my $dbic_reqs = { }, _rdbms_firebird_common => { - include => '_icdt_strptime_based', + include => '_ic_dt_strptime_based', }, rdbms_firebird => { @@ -1238,7 +1238,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 2af797c..b427175 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 15e9f66..a227476 100644 --- a/xt/extra/internals/optional_deps.t +++ b/xt/extra/internals/optional_deps.t @@ -195,7 +195,7 @@ is_deeply ( # ICDT augmentation my %expected_icdt_base = ( DateTime => '0.55', 'DateTime::TimeZone::OlsonDB' => 0 ); - my $mysql_icdt = [shuffle qw( test_rdbms_mysql icdt )]; + my $mysql_icdt = [shuffle qw( test_rdbms_mysql ic_dt )]; is_deeply( DBIx::Class::Optional::Dependencies->modreq_list_for($mysql_icdt), @@ -222,7 +222,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 DateTime::TimeZone::OlsonDB DBD::ODBC as well as the following group(s) of environment variables: DBICTEST_MSACCESS_ODBC_DSN/..._USER/..._PASS',