From: Tomas Doran Date: Fri, 4 Dec 2009 11:12:27 +0000 (+0000) Subject: Fix bug regerating applications X-Git-Tag: 1.22~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=dcc3047078dcaa00bfa8580f12bdbf5ae5c16ff1;hp=5e29a102f2925c119b7de59fa6dc53f61ba9ea69;p=catagits%2FCatalyst-Devel.git Fix bug regerating applications --- diff --git a/Changes b/Changes index 6ff5ce0..c0fe52f 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,10 @@ This file documents the revision history for Perl extension Catalyst-Devel. + - Use MooseX::Emulate::Class::Accessor::Fast so that options + supplied to ->new are put into the hash even if attributes + do not exist for them. This fixes -force recreating application + scripts. + 1.21_01 2009-12-01 03:34:23 - Update generated scripts to use the new Catalyst::Script:: classes available from Catalyst 5.80014_02. diff --git a/Makefile.PL b/Makefile.PL index af938ce..0ffa8b7 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -4,6 +4,7 @@ name 'Catalyst-Devel'; all_from 'lib/Catalyst/Devel.pm'; requires 'Moose'; +requires 'MooseX::Emulate::Class::Accessor::Fast'; requires 'File::ShareDir'; requires 'namespace::clean'; requires 'namespace::autoclean'; diff --git a/lib/Catalyst/Helper.pm b/lib/Catalyst/Helper.pm index 5011e91..2866e46 100644 --- a/lib/Catalyst/Helper.pm +++ b/lib/Catalyst/Helper.pm @@ -15,6 +15,8 @@ use Path::Class qw/dir file/; use File::ShareDir qw/dist_dir/; use namespace::autoclean; +with 'MooseX::Emulate::Class::Accessor::Fast'; + my %cache; =head1 NAME