Merge 'trunk' into 'DBIx-Class-current'
Justin Guenther [Thu, 16 Mar 2006 16:26:06 +0000 (17:26 +0100)]
r9906@haferschleim (orig r1105):  jguenther | 2006-03-16 10:26:06 +0100
fixed e-mail address

1  2 
lib/DBIx/Class.pm

diff --combined lib/DBIx/Class.pm
@@@ -13,25 -13,19 +13,25 @@@ sub component_base_class { 'DBIx::Class
  # 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.05007';
 +$VERSION = '0.05999_04';
  
  sub MODIFY_CODE_ATTRIBUTES {
      my ($class,$code,@attrs) = @_;
 -    unless ($class->can('_attr_cache')) {
 -        $class->mk_classdata('_attr_cache');
 -        $class->_attr_cache({});
 +    unless ($class->can('__attr_cache')) {
 +        $class->mk_classdata('__attr_cache');
 +        $class->__attr_cache({});
      }
 -    my $cache = $class->_attr_cache;
 -    $class->_attr_cache->{$code} = [@attrs];
 +    $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 };
 +}
 +
  1;
  
  =head1 NAME 
@@@ -166,20 -160,12 +166,18 @@@ Jesper Krog
  
  Brandon Black
  
 +Christopher H. Laco
 +
  Scotty Allen <scotty@scottyallen.com>
  
  sc_
  
- Robert Sedlacek <phaylon@dunkelheit.at>
- Justin Guenther <jguenther@agr.gc.ca>
+ Justin Guenther <guentherj@agr.gc.ca>
  
 +Daisuke Murase <typester@cpan.org>
 +
 +Scott McWhirter (konobi)
 +
  =head1 LICENSE
  
  You may distribute this code under the same terms as Perl itself.