From: Brandon Black Date: Tue, 6 Jun 2006 02:21:15 +0000 (+0000) Subject: 0.03003 fixes for external layered definitions while dumping X-Git-Tag: 0.03003 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e50425a9c9dc13cc97ebc1ec3d3d0106a9d2c550;p=dbsrgits%2FDBIx-Class-Schema-Loader.git 0.03003 fixes for external layered definitions while dumping --- diff --git a/Changes b/Changes index d60b6c3..a25350d 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,9 @@ Revision history for Perl extension DBIx::Class::Schema::Loader +0.03003 Tue Jun 6 02:22:49 UTC 2006 + - Fix inclusion of external add-on class definitions + in dump_to_dir output. + 0.03002 Tue Jun 6 01:27:25 UTC 2006 - rethrow exceptions that occur during make_schema_at diff --git a/lib/DBIx/Class/Schema/Loader.pm b/lib/DBIx/Class/Schema/Loader.pm index 0bd0049..0a17552 100644 --- a/lib/DBIx/Class/Schema/Loader.pm +++ b/lib/DBIx/Class/Schema/Loader.pm @@ -13,7 +13,7 @@ use Scalar::Util qw/ weaken /; # 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 # brain damage and presumably various other packaging systems too -our $VERSION = '0.03002'; +our $VERSION = '0.03003'; __PACKAGE__->mk_classaccessor('dump_to_dir'); __PACKAGE__->mk_classaccessor('loader'); diff --git a/lib/DBIx/Class/Schema/Loader/Base.pm b/lib/DBIx/Class/Schema/Loader/Base.pm index 1bed409..14d7123 100644 --- a/lib/DBIx/Class/Schema/Loader/Base.pm +++ b/lib/DBIx/Class/Schema/Loader/Base.pm @@ -258,6 +258,7 @@ sub _load_external { if($self->dump_directory) { my $class_path = $table_class; $class_path =~ s{::}{/}g; + $class_path .= '.pm'; my $filename = $INC{$class_path}; croak 'Failed to locate actual external module file for ' . "'$table_class'"