From 83529ec10275fa6aef95000ccb1f846b16a7e396 Mon Sep 17 00:00:00 2001 From: matthewt Date: Thu, 30 Apr 2009 17:18:53 +0000 Subject: changes for 0.002000, thank you xinming for reminding me, I'm a fucking idiot --- Changes | 10 ++++++++-- MANIFEST.SKIP | 5 ++--- Makefile.PL | 2 +- lib/Reaction.pm | 2 +- lib/Reaction/Meta/InterfaceModel/Action/Class.pm | 4 +--- lib/Reaction/Meta/InterfaceModel/Action/ParameterAttribute.pm | 2 +- lib/Reaction/Meta/InterfaceModel/Object/Class.pm | 4 +--- .../Meta/InterfaceModel/Object/DomainModelAttribute.pm | 6 +----- lib/Reaction/Meta/InterfaceModel/Object/ParameterAttribute.pm | 3 +-- lib/Reaction/UI/Controller.pm | 1 - t/var/.exists | 0 11 files changed, 17 insertions(+), 22 deletions(-) create mode 100644 t/var/.exists diff --git a/Changes b/Changes index 8476871..b30a4c7 100644 --- a/Changes +++ b/Changes @@ -1,8 +1,8 @@ Revision history for Reaction -0.002000 + +0.002000 - 29 Apr 2008 - Update CheckUniques role to use around instead of overrides - Stop using ACCEPT_CONTEXT, use InstancePerContext instead - - up the dependency version on Devel::Declare to 003004 - Added an error_message attribute to IM::Action - Updated ViewPort::Action to support action-wide messages and error messages via attribute message and model's error_message attribute. @@ -13,6 +13,12 @@ Revision history for Reaction - Eliminate memory leak related to InstancePerContext - Move the short-cut code from flush_view to flush to prevent events from happening if serving a static file + - lots more documentation + - dependencies all updated for Catalyst 5.80 + +0.001002 - 28 Apr 2008 + - the 002 changes is the real thing but mst shipped a broken dist + with this version :( 0.001001 - 12 Aug 2008 - Initital public release diff --git a/MANIFEST.SKIP b/MANIFEST.SKIP index fa7dc66..f98243f 100644 --- a/MANIFEST.SKIP +++ b/MANIFEST.SKIP @@ -32,7 +32,7 @@ \.DS_Store$ # Don't ship the test db -^t/var +^t/var/.+\.db$ # Don't ship the last dist we built :) \.tar\.gz$ @@ -40,6 +40,5 @@ # Skip maint stuff ^maint/ -t/im_dbic -t/ui_viewport t/ui_window +t/.*pod.* diff --git a/Makefile.PL b/Makefile.PL index 25a2155..cf1a802 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -8,7 +8,7 @@ perl_version '5.008001'; author 'Matt S Trout '; all_from 'lib/Reaction.pm'; -requires 'Catalyst' => '5.80001'; +requires 'Catalyst' => '5.80002'; requires 'Catalyst::Component::ACCEPT_CONTEXT' => '0.05'; requires 'Catalyst::Component::InstancePerContext' => '0.001001'; requires 'Catalyst::Model::DBIC::Schema' => '0.23'; diff --git a/lib/Reaction.pm b/lib/Reaction.pm index 2d5a83e..d9bf746 100644 --- a/lib/Reaction.pm +++ b/lib/Reaction.pm @@ -1,5 +1,5 @@ package Reaction; -our $VERSION = '0.001001'; +our $VERSION = '0.002000'; 1; diff --git a/lib/Reaction/Meta/InterfaceModel/Action/Class.pm b/lib/Reaction/Meta/InterfaceModel/Action/Class.pm index b25cfa2..8b23c73 100644 --- a/lib/Reaction/Meta/InterfaceModel/Action/Class.pm +++ b/lib/Reaction/Meta/InterfaceModel/Action/Class.pm @@ -6,8 +6,6 @@ use aliased 'Reaction::Meta::InterfaceModel::Action::ParameterAttribute'; use namespace::clean -except => [ qw(meta) ]; extends 'Reaction::Meta::Class'; -sub new { shift->SUPER::new(@_) }; - around initialize => sub { my $super = shift; my $class = shift; @@ -20,7 +18,7 @@ sub parameter_attributes { $self->get_all_attributes; }; -__PACKAGE__->meta->make_immutable; +__PACKAGE__->meta->make_immutable(inline_constructor => 0); 1; diff --git a/lib/Reaction/Meta/InterfaceModel/Action/ParameterAttribute.pm b/lib/Reaction/Meta/InterfaceModel/Action/ParameterAttribute.pm index d093be9..bee0197 100644 --- a/lib/Reaction/Meta/InterfaceModel/Action/ParameterAttribute.pm +++ b/lib/Reaction/Meta/InterfaceModel/Action/ParameterAttribute.pm @@ -70,7 +70,7 @@ sub valid_value_collection { return $valid; }; -__PACKAGE__->meta->make_immutable; +__PACKAGE__->meta->make_immutable(inline_constructor => 0); 1; diff --git a/lib/Reaction/Meta/InterfaceModel/Object/Class.pm b/lib/Reaction/Meta/InterfaceModel/Object/Class.pm index 47997ff..a755f91 100644 --- a/lib/Reaction/Meta/InterfaceModel/Object/Class.pm +++ b/lib/Reaction/Meta/InterfaceModel/Object/Class.pm @@ -8,8 +8,6 @@ use Reaction::Class; use namespace::clean -except => [ qw(meta) ]; extends 'Reaction::Meta::Class'; -sub new { shift->SUPER::new(@_) }; - around initialize => sub { my $super = shift; my $class = shift; @@ -32,7 +30,7 @@ sub domain_models { $self->get_all_attributes; }; -__PACKAGE__->meta->make_immutable; +__PACKAGE__->meta->make_immutable(inline_constructor => 0); 1; diff --git a/lib/Reaction/Meta/InterfaceModel/Object/DomainModelAttribute.pm b/lib/Reaction/Meta/InterfaceModel/Object/DomainModelAttribute.pm index 1d43266..2db918c 100644 --- a/lib/Reaction/Meta/InterfaceModel/Object/DomainModelAttribute.pm +++ b/lib/Reaction/Meta/InterfaceModel/Object/DomainModelAttribute.pm @@ -5,11 +5,7 @@ use Reaction::Class; use namespace::clean -except => [ qw(meta) ]; extends 'Reaction::Meta::Attribute'; - -#i feel like something should happen here, but i aint got nothin. -sub new { shift->SUPER::new(@_); }; # work around immutable - -__PACKAGE__->meta->make_immutable; +__PACKAGE__->meta->make_immutable(inline_constructor => 0); 1; diff --git a/lib/Reaction/Meta/InterfaceModel/Object/ParameterAttribute.pm b/lib/Reaction/Meta/InterfaceModel/Object/ParameterAttribute.pm index ebe16e1..602a9c5 100644 --- a/lib/Reaction/Meta/InterfaceModel/Object/ParameterAttribute.pm +++ b/lib/Reaction/Meta/InterfaceModel/Object/ParameterAttribute.pm @@ -17,9 +17,8 @@ has orig_attr_name => ( is => 'ro', predicate => 'has_orig_attr_name' ); -sub new { shift->SUPER::new(@_); }; # work around immutable -__PACKAGE__->meta->make_immutable; +__PACKAGE__->meta->make_immutable(inline_constructor => 0); 1; diff --git a/lib/Reaction/UI/Controller.pm b/lib/Reaction/UI/Controller.pm index a9eeb59..d5c2b28 100644 --- a/lib/Reaction/UI/Controller.pm +++ b/lib/Reaction/UI/Controller.pm @@ -12,7 +12,6 @@ with 'Catalyst::Component::InstancePerContext'; sub build_per_context_instance { my ($self, $c, @args) = @_; my $newself = $self->new($self->_application, {%$self, context => $c, @args}); - weaken $newself->{context}; #stopgap till cat 5.8 return $newself; } diff --git a/t/var/.exists b/t/var/.exists new file mode 100644 index 0000000..e69de29 -- cgit v1.2.3-54-g00ecf