changes for 0.05006 release
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class.pm
index bbfdc17..2514c87 100644 (file)
@@ -4,10 +4,27 @@ use strict;
 use warnings;
 
 use vars qw($VERSION);
-use base qw/DBIx::Class::Componentised Class::Data::Inheritable/;
+use base qw/DBIx::Class::Componentised Class::Data::Accessor/;
 
-$VERSION = '0.04001';
+sub mk_classdata { shift->mk_classaccessor(@_); }
+sub component_base_class { 'DBIx::Class' }
 
+# 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
+
+$VERSION = '0.05006';
+
+sub MODIFY_CODE_ATTRIBUTES {
+    my ($class,$code,@attrs) = @_;
+    unless ($class->can('_attr_cache')) {
+        $class->mk_classdata('_attr_cache');
+        $class->_attr_cache({});
+    }
+    my $cache = $class->_attr_cache;
+    $class->_attr_cache->{$code} = [@attrs];
+    return ();
+}
 
 1;
 
@@ -54,7 +71,7 @@ Some examples where different database connections are useful are:
 different users with different rights
 different databases with the same schema.
 
-=head1 Simple
+=head2 Simple
 
 First you need to create a base class which all other classes will inherit from.
 See L<DBIx::Class::DB> for information on how to do this.
@@ -77,21 +94,27 @@ manual below.
 
 =head1 SEE ALSO
 
-=head2 L<DBIx::Class::Core> - DBIC Core Classes
+=over 4
+
+=item L<DBIx::Class::Core> - DBIC Core Classes
+
+=item L<DBIx::Class::Manual> - User's manual
+
+=item L<DBIx::Class::CDBICompat> - L<Class::DBI> Compat layer
 
-=head2 L<DBIx::Class::Manual> - User's manual
+=item L<DBIx::Class::Schema>
 
-=head2 L<DBIx::Class::CDBICompat> - L<Class::DBI> Compat layer
+=item L<DBIx::Class::ResultSet>
 
-=head2 L<DBIx::Class::DB> - database-level methods
+=item L<DBIx::Class::ResultSource>
 
-=head2 L<DBIx::Class::Table> - table-level methods
+=item L<DBIx::Class::Row> - row-level methods
 
-=head2 L<DBIx::Class::Row> - row-level methods
+=item L<DBIx::Class::PK> - primary key methods
 
-=head2 L<DBIx::Class::PK> - primary key methods
+=item L<DBIx::Class::Relationship> - relationships between tables
 
-=head2 L<DBIx::Class::Relationship> - relationships between tables
+=back
 
 =head1 AUTHOR
 
@@ -115,6 +138,30 @@ Marcus Ramberg <mramberg@cpan.org>
 
 Paul Makepeace
 
+CL Kao
+
+Jess Robinson
+
+Marcus Ramberg
+
+Will Hawes
+
+Todd Lipcon
+
+Daniel Westermann-Clark <danieltwc@cpan.org>
+
+Alexander Hartmaier <alex_hartmaier@hotmail.com>
+
+Zbigniew Lukasiak
+
+Nigel Metheringham <nigelm@cpan.org>
+
+Jesper Krogh
+
+Brandon Black
+
+Scotty Allen <scotty@scottyallen.com>
+
 =head1 LICENSE
 
 You may distribute this code under the same terms as Perl itself.