From: David Kamholz Date: Mon, 6 Feb 2006 02:10:14 +0000 (+0000) Subject: changes for 5.00001 dist X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a39e84a316835c1560df02133bb1d74d33336211;p=dbsrgits%2FDBIx-Class-Historic.git changes for 5.00001 dist --- diff --git a/MANIFEST b/MANIFEST index ed5d396..5f75b92 100644 --- a/MANIFEST +++ b/MANIFEST @@ -56,6 +56,7 @@ lib/DBIx/Class/Relationship/Helpers.pm lib/DBIx/Class/Relationship/ManyToMany.pm lib/DBIx/Class/Relationship/ProxyMethods.pm lib/DBIx/Class/ResultSet.pm +lib/DBIx/Class/ResultSetManager.pm lib/DBIx/Class/ResultSetProxy.pm lib/DBIx/Class/ResultSource.pm lib/DBIx/Class/ResultSource/Table.pm @@ -63,6 +64,7 @@ lib/DBIx/Class/ResultSourceProxy.pm lib/DBIx/Class/ResultSourceProxy/Table.pm lib/DBIx/Class/Row.pm lib/DBIx/Class/Schema.pm +lib/DBIx/Class/Serialize.pm lib/DBIx/Class/Storage/DBI.pm lib/DBIx/Class/Storage/DBI/Cursor.pm lib/DBIx/Class/Test/SQLite.pm @@ -81,6 +83,7 @@ t/18inserterror.t t/19quotes.t t/20setuperrors.t t/30dbicplain.t +t/40resultsetmanager.t t/basicrels/01core.t t/basicrels/04db.t t/basicrels/05multipk.t @@ -139,6 +142,8 @@ t/helperrels/19uuid.t t/helperrels/20unique.t t/lib/DBICTest.pm t/lib/DBICTest/BasicRels.pm +t/lib/DBICTest/Extra.pm +t/lib/DBICTest/Extra/Foo.pm t/lib/DBICTest/HelperRels.pm t/lib/DBICTest/Plain.pm t/lib/DBICTest/Plain/Test.pm @@ -157,6 +162,7 @@ t/lib/DBICTest/Schema/SelfRef.pm t/lib/DBICTest/Schema/SelfRefAlias.pm t/lib/DBICTest/Schema/Tag.pm t/lib/DBICTest/Schema/Track.pm +t/lib/DBICTest/Schema/TreeLike.pm t/lib/DBICTest/Schema/TwoKeys.pm t/lib/DBICTest/Setup.pm t/lib/sqlite.sql diff --git a/lib/DBIx/Class.pm b/lib/DBIx/Class.pm index 6f2f893..80a589f 100644 --- a/lib/DBIx/Class.pm +++ b/lib/DBIx/Class.pm @@ -94,23 +94,27 @@ manual below. =head1 SEE ALSO -=head2 L - DBIC Core Classes +=over 4 -=head2 L - User's manual +=item L - DBIC Core Classes -=head2 L - L Compat layer +=item L - User's manual -=head2 L - database-level methods +=item L - L Compat layer -=head2 L - table-level methods +=item L -=head2 L - row-level methods +=item L -=head2 L - primary key methods +=item L -=head2 L - search result-set methods +=item L - row-level methods -=head2 L - relationships between tables +=item L - primary key methods + +=item L - relationships between tables + +=back =head1 AUTHOR diff --git a/lib/DBIx/Class/ResultSetManager.pm b/lib/DBIx/Class/ResultSetManager.pm index 9989b2e..c3ab98d 100644 --- a/lib/DBIx/Class/ResultSetManager.pm +++ b/lib/DBIx/Class/ResultSetManager.pm @@ -28,7 +28,7 @@ sub _register_attributes { foreach my $meth (@{Class::Inspector->methods($self) || []}) { my $attrs = $cache->{$self->can($meth)}; next unless $attrs; - if ($attrs->[0] eq 'resultset') { + if ($attrs->[0] eq 'ResultSet') { no strict 'refs'; my $resultset_class = $self->_setup_resultset_class; *{"$resultset_class\::$meth"} = *{"$self\::$meth"}; @@ -79,7 +79,7 @@ __END__ This package implements two useful features for customizing resultset classes. C loads components in addition to C -(or whatever you set as C). Any methods tagged with the C +(or whatever you set as C). Any methods tagged with the C attribute will be moved into a table-specific resultset class (by default called C). diff --git a/t/lib/DBICTest/Extra/Foo.pm b/t/lib/DBICTest/Extra/Foo.pm index cee710e..65e539c 100644 --- a/t/lib/DBICTest/Extra/Foo.pm +++ b/t/lib/DBICTest/Extra/Foo.pm @@ -4,4 +4,4 @@ use base 'DBIx::Class'; __PACKAGE__->load_components(qw/ ResultSetManager Core /); __PACKAGE__->table('foo'); -sub bar : resultset { 'good' } +sub bar : ResultSet { 'good' }