Revision history for Perl extension Catalyst::Plugin::Static::Simple
-0.12
+0.13 2005-12-15 10:00:00
+ - Fixed bug in ignore_dirs under win32.
+
+0.12 (released only with Catalyst)
- Made prepare_action play nice with other plugins by not short-
circuiting.
- Added tmpl to the ignored extensions.
---
name: Catalyst-Plugin-Static-Simple
-version: 0.12
+version: 0.13
author:
- 'Andy Grundman, <andy@hybridized.org>'
abstract: Make serving static pages painless.
provides:
Catalyst::Plugin::Static::Simple:
file: lib/Catalyst/Plugin/Static/Simple.pm
- version: 0.12
-generated_by: Module::Build version 0.26
+ version: 0.13
+generated_by: Module::Build version 0.2611
use MIME::Types;
use NEXT;
-our $VERSION = '0.12';
+our $VERSION = '0.13';
__PACKAGE__->mk_classdata( qw/_static_mime_types/ );
__PACKAGE__->mk_accessors( qw/_static_file
next DIR_CHECK;
}
} else {
- $dir =~ s/\/$//xms;
+ $dir =~ s/(\/|\\)$//xms;
if ( -d $dir && -f $dir . '/' . $path ) {
# do we need to ignore the file?
for my $ignore ( @{ $c->config->{static}->{ignore_dirs} } ) {
- $ignore =~ s{/$}{};
- if ( $path =~ /^$ignore\// ) {
+ $ignore =~ s{(/|\\)$}{};
+ if ( $path =~ /^$ignore(\/|\\)/ ) {
$c->_debug_msg( "Ignoring directory `$ignore`" )
if ( $c->config->{static}->{debug} );
next DIR_CHECK;