maint/.Generated_Pod
examples/Schema/db
-t/dqlib
+lib/DBIx/Class/Bundled
## TEMPORARY (and non-portable)
## Get the dq stuff
##
-`rm -rf t/dqlib`;
-`mkdir t/dqlib`;
+`rm -rf lib/DBIx/Class/Bundled`;
+`mkdir lib/DBIx/Class/Bundled`;
for (
[ 'Data-Query' => 'master' ],
[ 'SQL-Abstract' => 'dq' ],
$_->[0],
scalar `GIT_DIR=$tdir/.git git rev-parse origin/$_->[1]`,
;
- `git archive --format=tar --remote=file://$tdir origin/$_->[1] lib/ | tar --strip-components=1 -xC t/dqlib`;
+ `git archive --format=tar --remote=file://$tdir origin/$_->[1] lib/ | tar --strip-components=1 -xC lib/DBIx/Class/Bundled`;
`rm -rf $tdir`;
}
`cpanm SQL::ReservedWords 2>&1`;
-use lib 't/dqlib';
+use lib 'lib/DBIx/Class/Bundled';
##
use strict;
use warnings;
+use DBIx::Class::Bundled;
+
our $VERSION;
# Always remember to do all digits for the version even if they're 0
# i.e. first release of 0.XX *must* be 0.XX000. This avoids fBSD ports
--- /dev/null
+package DBIx::Class::Bundled;
+
+use strict;
+use warnings;
+use File::Spec;
+
+our $HERE = File::Spec->catdir(
+ File::Spec->rel2abs(
+ join '', (File::Spec->splitpath(__FILE__))[0,1]
+ ),
+ 'Bundled'
+ );
+
+($HERE) = ($HERE =~ /^(.*)$/); # screw you, taint mode
+
+sub import {
+ unshift @INC, $HERE;
+}
+
+1;
use warnings;
use Test::More;
-use lib 't/dqlib';
-
BEGIN {
plan skip_all => 'A defined PERL5OPT may inject extra deps crashing this test'
if $ENV{PERL5OPT};
Data::Dumper::Concise
+ File::Spec
+
Module::Runtime
Data::Query::Constants
Data::Query::ExprHelpers
use Test::Exception;
use Test::Warn;
use lib qw(t/lib);
-use Data::Query::ExprDeclare;
-use Data::Query::ExprHelpers;
use DBICTest;
use DBIC::SqlMakerTest;
+use Data::Query::ExprDeclare;
+use Data::Query::ExprHelpers;
my $schema = DBICTest->init_schema();
use Test::Exception;
use Test::Warn;
use lib qw(t/lib);
-use Data::Query::ExprDeclare;
use DBICTest;
+use Data::Query::ExprDeclare;
use DBIC::SqlMakerTest;
my $schema = DBICTest->init_schema();
use strict;
use warnings;
-use lib 't/dqlib';
-
# this noop trick initializes the STDOUT, so that the TAP::Harness
# issued IO::Select->can_read calls (which are blocking wtf wtf wtf)
# keep spinning and scheduling jobs
use warnings;
use lib qw(t/lib);
-use lib qw(t/dqlib);
use Test::More;
use Test::Exception;