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=6fb476020a003e77aa3023f0c5866d9c75e4c354;hp=ecf6c94413070c263443caea0c8f17ae074287ae;hb=b4e9f590228d1d73d4089c2ec88372e683e17aeb;hpb=86b9a583838f35e9d3228f65a445ed4c0cacc5ee diff --git a/lib/DBIx/Class.pm b/lib/DBIx/Class.pm index ecf6c94..6fb4760 100644 --- a/lib/DBIx/Class.pm +++ b/lib/DBIx/Class.pm @@ -3,15 +3,57 @@ package DBIx::Class; use strict; use warnings; -use MRO::Compat; +BEGIN { + package DBIx::Class::_ENV_; + + if ($] < 5.009_005) { + require MRO::Compat; + *OLD_MRO = sub () { 1 }; + } + else { + require mro; + *OLD_MRO = sub () { 0 }; + } + + # ::Runmode would only be loaded by DBICTest, which in turn implies t/ + *DBICTEST = eval { DBICTest::RunMode->is_author } + ? sub () { 1 } + : sub () { 0 } + ; + + # During 5.13 dev cycle HELEMs started to leak on copy + *PEEPEENESS = (defined $ENV{DBICTEST_ALL_LEAKS} + # request for all tests would force "non-leaky" illusion and vice-versa + ? ! $ENV{DBICTEST_ALL_LEAKS} + + # otherwise confess that this perl is busted ONLY on smokers + : do { + if (eval { DBICTest::RunMode->is_smoker }) { + + # leaky 5.13.6 (fixed in blead/cefd5c7c) + if ($] == '5.013006') { 1 } + + # not sure why this one leaks, but disable anyway - ANDK seems to make it weep + elsif ($] == '5.013005') { 1 } + + else { 0 } + } + else { 0 } + } + ) ? sub () { 1 } : sub () { 0 }; +} + use mro 'c3'; use DBIx::Class::Optional::Dependencies; use vars qw($VERSION); -use base qw/DBIx::Class::Componentised Class::Accessor::Grouped/; +use base qw/DBIx::Class::Componentised DBIx::Class::AccessorGroup/; use DBIx::Class::StartupCheck; +__PACKAGE__->mk_group_accessors(inherited => '_skip_namespace_frames'); +__PACKAGE__->_skip_namespace_frames('^DBIx::Class|^SQL::Abstract|^Try::Tiny'); + sub mk_classdata { shift->mk_classaccessor(@_); } @@ -298,6 +340,8 @@ goraxe: Gordon Irving gphat: Cory G Watson +Grant Street Group L + groditi: Guillermo Roditi Haarg: Graham Knop @@ -308,6 +352,8 @@ ilmari: Dagfinn Ilmari MannsEker initself: Mike Baas +jawnsy: Jonathan Yu + jasonmay: Jason May jesper: Jesper Krogh @@ -336,8 +382,12 @@ marcus: Marcus Ramberg mattlaw: Matt Lawrence +mattp: Matt Phillips + michaelr: Michael Reddick +milki: Jonathan Chu + ned: Neil de Carteret nigel: Nigel Metheringham @@ -388,6 +438,8 @@ rjbs: Ricardo Signes robkinyon: Rob Kinyon +Robert Olson + Roman: Roman Filippov Sadrak: Felix Antonius Wilhelm Ostmann @@ -408,6 +460,8 @@ sszabo: Stephan Szabo talexb: Alex Beamish +tamias: Ronald J Kimball + teejay : Aaron Trevena Todd Lipcon