The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
Changes 03
META.yml 11
lib/Catalyst/Plugin/ConfigLoader.pm 22
t/24-mock-shortappname.t 11
4 files changed (This is a version diff) 47
@@ -1,5 +1,8 @@
 Revision history for Perl extension Catalyst::Plugin::ConfigLoader.
 
+0.30  Fri Aug 20 2010
+    - Fix for Windows regarding changes from 0.29
+
 0.29  Fri Aug 20 2010
     - Fix issue with 2 character app names that are kept in versioned
       directories (e.g. app called QX in QX-2.1.5/)
@@ -27,4 +27,4 @@ requires:
 resources:
   license: http://dev.perl.org/licenses/
   repository: http://dev.catalystframework.org/repos/Catalyst/Catalyst-Plugin-ConfigLoader/trunk/
-version: 0.29
+version: 0.30
@@ -8,7 +8,7 @@ use MRO::Compat;
 use Data::Visitor::Callback;
 use Catalyst::Utils ();
 
-our $VERSION = '0.29';
+our $VERSION = '0.30';
 
 =head1 NAME
 
@@ -183,7 +183,7 @@ sub get_config_path {
         || $c->config->{ 'Plugin::ConfigLoader' }->{ file }
         || $c->path_to( $prefix );
 
-    my ( $extension ) = ( $path =~ m{\.([^/\.]{1,4})$} );
+    my ( $extension ) = ( $path =~ m{\.([^\/\\.]{1,4})$} );
 
     if ( -d $path ) {
         $path =~ s{[\/\\]$}{};
@@ -16,7 +16,7 @@ use Test::More;
 
 my $app = bless {}, 'QX';
 my ($path, $extension) = $app->get_config_path;
-is $path, '/home/foo/QX-0.9.5/qx';
+is $path, Path::Class::dir( '/home/foo/QX-0.9.5/qx' )->stringify;
 is $extension, undef;
 
 done_testing;