On Wed Oct 01 18:51:13 2014, TomLB wrote:
Hi Tom, et. al.,
stills seems to be broken. Also found a second issue that prevents the creation of a new view.
Here is the patch I used to fix it:
--- Catalyst/Helper/View/Bootstrap.pm.orig 2014-11-13 11:37:00.018319923 -0500
+++ Catalyst/Helper/View/Bootstrap.pm 2014-11-13 11:40:18.901298464 -0500
@@ -24,7 +24,7 @@
}
my $file = file( $dist_dir, @filename);
Carp::confess("Cannot find $file") unless -r $file;
- my $contents = $file->(iomode => "<:raw");
+ my $contents = $file->slurp(iomode => "<:raw");
return $contents;
}
@@ -78,10 +78,10 @@
my $jsMinifier = 0;
eval {
$SIG{__DIE__} = 'IGNORE';
- if(require 'JavaScript::Minifier::XS')) {
+ if(require 'JavaScript::Minifier::XS') {
$jsMinifier = 1;
}
- elsif(require 'JavaScript::Minifier')) {
+ elsif(require 'JavaScript::Minifier') {
$jsMinifier = 2;
}
Best regards,
Christian
Show quoted text> My app stopped working after upgrading to 0.0006; investigation
> suggests that Bootstrap.pm has syntax errors that prevent it from
> running:
>
> perl -c Catalyst/Helper/View/Bootstrap.pm
> syntax error at Bootstrap.pm line 81, near ")) "
> syntax error at Bootstrap.pm line 84, near "elsif"
> syntax error at Bootstrap.pm line 88, near "}"
> Global symbol "$jsdir" requires explicit package name ...
> Bootstrap.pm has too many errors.
>
> It looks like lines 81 and 84 (the "require MinifierXXX" lines) have
> unbalanced parentheses.
>
> Cheers,
> Tom