[Catalyst-commits] r7700 - in
Catalyst-Controller-DBIC-Transaction/1.0/trunk: .
lib/Catalyst/Controller/DBIC
ruoso at dev.catalyst.perl.org
ruoso at dev.catalyst.perl.org
Tue May 6 23:01:18 BST 2008
Author: ruoso
Date: 2008-05-06 23:01:18 +0100 (Tue, 06 May 2008)
New Revision: 7700
Added:
Catalyst-Controller-DBIC-Transaction/1.0/trunk/Changes
Catalyst-Controller-DBIC-Transaction/1.0/trunk/MANIFEST
Catalyst-Controller-DBIC-Transaction/1.0/trunk/Makefile.PL
Catalyst-Controller-DBIC-Transaction/1.0/trunk/README
Modified:
Catalyst-Controller-DBIC-Transaction/1.0/trunk/lib/Catalyst/Controller/DBIC/Transaction.pm
Log:
[C-C-DBIC-Transaction] Finishing the packaging
Added: Catalyst-Controller-DBIC-Transaction/1.0/trunk/Changes
===================================================================
--- Catalyst-Controller-DBIC-Transaction/1.0/trunk/Changes (rev 0)
+++ Catalyst-Controller-DBIC-Transaction/1.0/trunk/Changes 2008-05-06 22:01:18 UTC (rev 7700)
@@ -0,0 +1,5 @@
+------------------------------------------------------------------------
+r7697 | matthewt | 2008-05-06 16:57:10 -0300 (Ter, 06 Mai 2008) | 1 line
+
+created new dir for ruoso
+------------------------------------------------------------------------
Added: Catalyst-Controller-DBIC-Transaction/1.0/trunk/MANIFEST
===================================================================
--- Catalyst-Controller-DBIC-Transaction/1.0/trunk/MANIFEST (rev 0)
+++ Catalyst-Controller-DBIC-Transaction/1.0/trunk/MANIFEST 2008-05-06 22:01:18 UTC (rev 7700)
@@ -0,0 +1,9 @@
+Changes
+lib/Catalyst/Action/DBIC/Transaction.pm
+lib/Catalyst/Controller/DBIC/Transaction.pm
+Makefile.PL
+MANIFEST
+README
+t/01_basic.t
+t/lib/TestApp/Controller/Foo.pm
+t/lib/TestApp.pm
Added: Catalyst-Controller-DBIC-Transaction/1.0/trunk/Makefile.PL
===================================================================
--- Catalyst-Controller-DBIC-Transaction/1.0/trunk/Makefile.PL (rev 0)
+++ Catalyst-Controller-DBIC-Transaction/1.0/trunk/Makefile.PL 2008-05-06 22:01:18 UTC (rev 7700)
@@ -0,0 +1,13 @@
+use 5.008008;
+use ExtUtils::MakeMaker;
+# See lib/ExtUtils/MakeMaker.pm for details of how to influence
+# the contents of the Makefile that is written.
+WriteMakefile(
+ NAME => 'Catalyst::Controller::DBIC::Transaction',
+ VERSION_FROM => 'lib/Catalyst/Controller/DBIC/Transaction.pm', # finds $VERSION
+ PREREQ_PM => { Catalyst::Runtime => 5.7011, Class::C3 => 0,
+ Sub::Name => 0},
+ ($] >= 5.005 ? ## Add these new keywords supported since 5.005
+ (ABSTRACT_FROM => 'lib/Catalyst/Controller/DBIC/Transaction.pm', # retrieve abstract from module
+ AUTHOR => 'Daniel Ruoso <daniel at ruoso.com>') : ()),
+);
Added: Catalyst-Controller-DBIC-Transaction/1.0/trunk/README
===================================================================
--- Catalyst-Controller-DBIC-Transaction/1.0/trunk/README (rev 0)
+++ Catalyst-Controller-DBIC-Transaction/1.0/trunk/README 2008-05-06 22:01:18 UTC (rev 7700)
@@ -0,0 +1,35 @@
+NAME
+ Catalyst::Controller::DBIC::Transaction - Encloses actions into
+ transactions
+
+SYNOPSIS
+ use base qw(Catalyst::Controller::DBIC::Transaction);
+ sub foo :DBICTransaction('DB::Schema') {
+ do $something or die $!;
+ }
+
+DESCRIPTION
+ This module enables the use of automatic transaction support into
+ Catalyst Actions, it will associate a given action with the appropriate
+ action class and save the DBIx::Class::Schema class name for later use.
+
+ The action will be executed inside a txn_do, and a die inside that
+ method will cause the transaction to be rolled back, as documented in
+ DBIx::Class::Schema.
+
+ This method will not, on the other hand, handle that exception, since
+ txn_do will rethrow it. This means that this handling is not much
+ intrusive in the action processing flow.
+
+AUTHORS
+ Daniel Ruoso <daniel at ruoso.com>
+
+BUG REPORTS
+ Please submit all bugs regarding
+ "Catalyst::Controller::DBIC::Transaction" to
+ "bug-catalyst-controller-dbic-transaction at rt.cpan.org"
+
+LICENSE
+ This library is free software, you can redistribute it and/or modify it
+ under the same terms as Perl itself.
+
Modified: Catalyst-Controller-DBIC-Transaction/1.0/trunk/lib/Catalyst/Controller/DBIC/Transaction.pm
===================================================================
--- Catalyst-Controller-DBIC-Transaction/1.0/trunk/lib/Catalyst/Controller/DBIC/Transaction.pm 2008-05-06 21:50:56 UTC (rev 7699)
+++ Catalyst-Controller-DBIC-Transaction/1.0/trunk/lib/Catalyst/Controller/DBIC/Transaction.pm 2008-05-06 22:01:18 UTC (rev 7700)
@@ -2,8 +2,10 @@
use strict;
use warnings;
- use base qw(Catalyst::Controller);
+ use base 'Catalyst::Controller';
+ our $VERSION = '0.1';
+
__PACKAGE__->mk_accessors qw(_dbic_transaction_schemas);
sub _parse_DBICTransaction_attr {
More information about the Catalyst-commits
mailing list