Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix panda to work with new compiled suffixes
  • Loading branch information
nbrown committed Aug 2, 2014
1 parent 3f8d8b3 commit f23974c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Panda/Builder.pm
Expand Up @@ -79,7 +79,7 @@ method build($where) {
$file.copy: "blib/$file";
next unless $file ~~ /\.pm6?$/;
my $dest = "blib/{$file.directory}/"
~ "{$file.basename.subst(/\.pm6?$/, ".{compsuffix}" )}";
~ $file.basename ~ '.' ~ compsuffix ;
#note "$dest modified: ", $dest.IO.modified;
#note "$file modified: ", $file.IO.modified;
#if $dest.IO.modified >= $file.IO.modified {
Expand Down
2 changes: 1 addition & 1 deletion t/builder.t
Expand Up @@ -9,7 +9,7 @@ my $srcdir = 'testmodules';

lives_ok { Panda::Builder.build("$srcdir/dummymodule") };

ok "$srcdir/dummymodule/blib/lib/foo.{compsuffix}".IO ~~ :f, 'module compiled';
ok "$srcdir/dummymodule/blib/lib/foo.pm.{compsuffix}".IO ~~ :f, 'module compiled';
ok "$srcdir/dummymodule/blib/lib/foo.pm".IO ~~ :f, 'and copied to blib';
ok "$srcdir/dummymodule/blib/lib/manual.pod".IO ~~ :f, 'pod copied too';
ok "$srcdir/dummymodule/blib/lib/bar.{compsuffix}".IO !~~ :f, 'pod not compiled';
Expand Down

0 comments on commit f23974c

Please sign in to comment.