Revision history for Perl extension Catalyst::Plugin::ConfigLoader.\r
\r
+0.09 Wed May 24 2006\r
+ - ignore non-ref model/view/controller/component keys\r
+\r
0.08 Tue May 23 2006\r
- added get_config_path() which extracts the path finding code\r
- added the ability to specify a MYAPP_CONFIG ENV variable\r
require => 1;\r
use Data::Visitor::Callback;\r
\r
-our $VERSION = '0.08';\r
+our $VERSION = '0.09';\r
\r
=head1 NAME\r
\r
map +{\r
prefix => $_ eq 'Component' ? '' : $_ . '::',\r
values => delete $config->{ lc $_ } || delete $config->{ $_ }\r
- }, qw( Component Model View Controller )\r
+ },\r
+ grep {\r
+ ref $config->{ lc $_ } || ref $config->{ $_ }\r
+ }\r
+ qw( Component Model View Controller )\r
);\r
\r
foreach my $comp ( @components ) {\r
-use Test::More tests => 5;\r
+use Test::More tests => 6;\r
\r
my $app = MockApp->new;\r
$app->setup;\r
is( $app->config->{ 'Controller::Foo' }->{ new }, 'key' );\r
is( $app->config->{ 'Model::Baz' }->{ qux }, 'xyzzy' );\r
is( $app->config->{ 'Model::Baz' }->{ another }, 'new key' );\r
+is( $app->config->{ 'view' }, 'View::TT::New' );\r
\r
package MockApp;\r
\r
{\r
name => 'TestApp',\r
+ view => 'View::TT',\r
'Controller::Foo' => {\r
foo => 'bar'\r
},\r
{\r
+ view => 'View::TT::New',\r
'Controller::Foo' => {\r
new => 'key'\r
},\r