From: Brandon Black Date: Tue, 24 Jul 2007 05:56:53 +0000 (+0000) Subject: 0.04002 - disable oracle.pm indexing and fix rescan return values X-Git-Tag: 0.04002^0 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c39e35077d88eb3c81696032a2e51fdf5cb69eab;p=dbsrgits%2FDBIx-Class-Schema-Loader.git 0.04002 - disable oracle.pm indexing and fix rescan return values --- diff --git a/Changes b/Changes index 1c6a082..88246a1 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,13 @@ Revision history for Perl extension DBIx::Class::Schema::Loader +0.04002 Tue Jul 24, 2007 + - rescan method now returns the actual list of new tables + loaded (previously, the return value wasn't taking + constraint/exclude into account, even though the meat + of the operation was). + - Hid the Oracle module so that search.cpan.org will stop + ignoring this package, temporary fix until perms are + sorted out - Fix Win32 test skip counts (RT #27715, Alexandr Ciornii) - Fix a small output quoting bug (RT #28073, Tokuhiro Matsuno) diff --git a/lib/DBIx/Class/Schema/Loader.pm b/lib/DBIx/Class/Schema/Loader.pm index c08d29a..a495e40 100644 --- a/lib/DBIx/Class/Schema/Loader.pm +++ b/lib/DBIx/Class/Schema/Loader.pm @@ -11,7 +11,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.04001'; +our $VERSION = '0.04002'; __PACKAGE__->mk_classaccessor('_loader_args' => {}); __PACKAGE__->mk_classaccessors(qw/dump_to_dir _loader_invoked _loader/); diff --git a/lib/DBIx/Class/Schema/Loader/Base.pm b/lib/DBIx/Class/Schema/Loader/Base.pm index d359936..a723beb 100644 --- a/lib/DBIx/Class/Schema/Loader/Base.pm +++ b/lib/DBIx/Class/Schema/Loader/Base.pm @@ -14,7 +14,7 @@ use Cwd qw//; use Digest::MD5 qw//; require DBIx::Class; -our $VERSION = '0.04001'; +our $VERSION = '0.04002'; __PACKAGE__->mk_ro_accessors(qw/ schema @@ -352,9 +352,9 @@ sub rescan { } } - $self->_load_tables(@created); + my $loaded = $self->_load_tables(@created); - return map { $self->monikers->{$_} } @created; + return map { $self->monikers->{$_} } @$loaded; } sub _load_tables { @@ -399,7 +399,7 @@ sub _load_tables { # Drop temporary cache delete $self->{_cache}; - 1; + return \@tables; } sub _get_dump_filename { diff --git a/lib/DBIx/Class/Schema/Loader/DBI.pm b/lib/DBIx/Class/Schema/Loader/DBI.pm index 6e6dd40..aa99c85 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI.pm @@ -7,7 +7,7 @@ use Class::C3; use Carp::Clan qw/^DBIx::Class/; use UNIVERSAL::require; -our $VERSION = '0.04001'; +our $VERSION = '0.04002'; =head1 NAME diff --git a/lib/DBIx/Class/Schema/Loader/DBI/DB2.pm b/lib/DBIx/Class/Schema/Loader/DBI/DB2.pm index b05befb..967b112 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/DB2.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/DB2.pm @@ -6,7 +6,7 @@ use base 'DBIx::Class::Schema::Loader::DBI'; use Carp::Clan qw/^DBIx::Class/; use Class::C3; -our $VERSION = '0.04001'; +our $VERSION = '0.04002'; =head1 NAME diff --git a/lib/DBIx/Class/Schema/Loader/DBI/Oracle.pm b/lib/DBIx/Class/Schema/Loader/DBI/Oracle.pm index b7cd131..6c17767 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/Oracle.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/Oracle.pm @@ -1,4 +1,6 @@ -package DBIx::Class::Schema::Loader::DBI::Oracle; +package # hide from pause/cpan for now, as there's a permissions + # issue and it's screwing the rest of the package + DBIx::Class::Schema::Loader::DBI::Oracle; use strict; use warnings; @@ -6,7 +8,7 @@ use base 'DBIx::Class::Schema::Loader::DBI'; use Carp::Clan qw/^DBIx::Class/; use Class::C3; -our $VERSION = '0.04001'; +our $VERSION = '0.04002'; =head1 NAME diff --git a/lib/DBIx/Class/Schema/Loader/DBI/Pg.pm b/lib/DBIx/Class/Schema/Loader/DBI/Pg.pm index ea50937..687266b 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/Pg.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/Pg.pm @@ -6,7 +6,7 @@ use base 'DBIx::Class::Schema::Loader::DBI'; use Carp::Clan qw/^DBIx::Class/; use Class::C3; -our $VERSION = '0.04001'; +our $VERSION = '0.04002'; =head1 NAME diff --git a/lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm b/lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm index 6831944..19befb2 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm @@ -7,7 +7,7 @@ use Carp::Clan qw/^DBIx::Class/; use Text::Balanced qw( extract_bracketed ); use Class::C3; -our $VERSION = '0.04001'; +our $VERSION = '0.04002'; =head1 NAME diff --git a/lib/DBIx/Class/Schema/Loader/DBI/Writing.pm b/lib/DBIx/Class/Schema/Loader/DBI/Writing.pm index da4b56d..e33c4f4 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/Writing.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/Writing.pm @@ -1,7 +1,7 @@ package DBIx::Class::Schema::Loader::DBI::Writing; use strict; -our $VERSION = '0.04001'; +our $VERSION = '0.04002'; # Empty. POD only. diff --git a/lib/DBIx/Class/Schema/Loader/DBI/mysql.pm b/lib/DBIx/Class/Schema/Loader/DBI/mysql.pm index 485b881..1797318 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/mysql.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/mysql.pm @@ -6,7 +6,7 @@ use base 'DBIx::Class::Schema::Loader::DBI'; use Carp::Clan qw/^DBIx::Class/; use Class::C3; -our $VERSION = '0.04001'; +our $VERSION = '0.04002'; =head1 NAME diff --git a/lib/DBIx/Class/Schema/Loader/RelBuilder.pm b/lib/DBIx/Class/Schema/Loader/RelBuilder.pm index 696f296..88382bc 100644 --- a/lib/DBIx/Class/Schema/Loader/RelBuilder.pm +++ b/lib/DBIx/Class/Schema/Loader/RelBuilder.pm @@ -5,7 +5,7 @@ use warnings; use Carp::Clan qw/^DBIx::Class/; use Lingua::EN::Inflect::Number (); -our $VERSION = '0.04001'; +our $VERSION = '0.04002'; =head1 NAME