Navigation Menu

Skip to content

Commit

Permalink
fixed Morbo to ignore hidden directories
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Dec 20, 2011
1 parent c728047 commit ea85cb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Changes
@@ -1,6 +1,6 @@
This file documents the revision history for Perl extension Mojolicious.

2.39 2011-12-20 00:00:00
2.39 2011-12-21 00:00:00
- Deprecated all keep_alive_timeout attributes and parameters in
favor of inactivity_timeout.
- Added EXPERIMENTAL local_address attribute to Mojo::UserAgent.
Expand All @@ -12,6 +12,7 @@ This file documents the revision history for Perl extension Mojolicious.
variables.
- Improved documentation. (marcus, vervain, sri)
- Improved tests for many environment variables.
- Fixed Morbo to ignore hidden directories.
- Fixed small argument bug in client method of Mojo::IOLoop.
- Fixed small memory leak in Mojo::IOLoop::Stream.

Expand Down
3 changes: 2 additions & 1 deletion lib/Mojo/Home.pm
Expand Up @@ -10,6 +10,7 @@ use File::Basename 'dirname';
use File::Find 'find';
use File::Spec;
use FindBin;
use List::Util 'first';
use Mojo::Asset::File;
use Mojo::Command;
use Mojo::Loader;
Expand Down Expand Up @@ -93,7 +94,7 @@ sub list_files {
wanted => sub {
my @parts =
File::Spec->splitdir(File::Spec->abs2rel($File::Find::name, $dir));
push @files, join '/', @parts unless $parts[-1] =~ /^\./;
push @files, join '/', @parts unless first {/^\./} @parts;
},
no_chdir => 1
}, $dir;
Expand Down

0 comments on commit ea85cb3

Please sign in to comment.