X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class.git;a=blobdiff_plain;f=lib%2FDBIx%2FClass.pm;h=42742f2d50f9ed8af12d96a8d95153081839fac9;hp=1b8b4e3dc373147aeb97c91baa9619ff047ed406;hb=77d518d13cfe80f3efdfeb0d52f1b3de10fcb7e4;hpb=a9adcd7e3da559799076349f10a052e4b43fb319 diff --git a/lib/DBIx/Class.pm b/lib/DBIx/Class.pm index 1b8b4e3..42742f2 100644 --- a/lib/DBIx/Class.pm +++ b/lib/DBIx/Class.pm @@ -4,30 +4,40 @@ use strict; use warnings; use vars qw($VERSION); -use base qw/DBIx::Class::Componentised Class::Data::Accessor/; +use base qw/DBIx::Class::Componentised Class::Accessor::Grouped/; + + +sub mk_classdata { + shift->mk_classaccessor(@_); +} + +sub mk_classaccessor { + my $self = shift; + $self->mk_group_accessors('inherited', $_[0]); + $self->set_inherited(@_) if @_ > 1; +} -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.07000'; +$VERSION = '0.08002'; sub MODIFY_CODE_ATTRIBUTES { - my ($class,$code,@attrs) = @_; - $class->mk_classdata('__attr_cache' => {}) - unless $class->can('__attr_cache'); - $class->__attr_cache->{$code} = [@attrs]; - return (); + my ($class,$code,@attrs) = @_; + $class->mk_classdata('__attr_cache' => {}) + unless $class->can('__attr_cache'); + $class->__attr_cache->{$code} = [@attrs]; + return (); } sub _attr_cache { - my $self = shift; - my $cache = $self->can('__attr_cache') ? $self->__attr_cache : {}; - my $rest = eval { $self->next::method }; - return $@ ? $cache : { %$cache, %$rest }; + my $self = shift; + my $cache = $self->can('__attr_cache') ? $self->__attr_cache : {}; + my $rest = eval { $self->next::method }; + return $@ ? $cache : { %$cache, %$rest }; } 1; @@ -180,63 +190,80 @@ andyg: Andy Grundman ank: Andres Kievsky +ash: Ash Berlin + blblack: Brandon L. Black bluefeet: Aran Deltac -LTJake: Brian Cassidy +captainL: Luke Saunders + +castaway: Jess Robinson claco: Christopher H. Laco clkao: CL Kao -typester: Daisuke Murase +da5id: David Jack Olrik dkubb: Dan Kubb -Numa: Dan Sully +dnm: Justin Wheeler + +draven: Marcus Ramberg dwc: Daniel Westermann-Clark -ningu: David Kamholz +dyfrgi: Michael Leuchtenburg + +gphat: Cory G Watson jesper: Jesper Krogh -castaway: Jess Robinson +jguenther: Justin Guenther -quicksilver: Jules Bean +jshirley: J. Shirley -jguenther: Justin Guenther +konobi: Scott McWhirter -captainL: Luke Saunders +LTJake: Brian Cassidy -draven: Marcus Ramberg +ned: Neil de Carteret nigel: Nigel Metheringham +ningu: David Kamholz + +Numa: Dan Sully + paulm: Paul Makepeace +penguin: K J Cheetham + phaylon: Robert Sedlacek -sc_: Just Another Perl Hacker +quicksilver: Jules Bean -konobi: Scott McWhirter +sc_: Just Another Perl Hacker scotty: Scotty Allen sszabo: Stephan Szabo -zamolxes: Bogdan Lucaciu - Todd Lipcon +typester: Daisuke Murase + +victori: Victor Igumnov + wdh: Will Hawes -gphat: Cory G Watson +willert: Sebastian Willert + +zamolxes: Bogdan Lucaciu =head1 LICENSE You may distribute this code under the same terms as Perl itself. =cut -