release 0.15, bump Schema::Loader rec, fixed create=static bug
Brandon L. Black [Tue, 6 Jun 2006 01:34:19 +0000 (01:34 +0000)]
Build.PL
Changes
lib/Catalyst/Helper/Model/DBIC/Schema.pm
lib/Catalyst/Model/DBIC/Schema.pm

index e03c661..24bf8de 100644 (file)
--- a/Build.PL
+++ b/Build.PL
@@ -12,7 +12,7 @@ my %arguments = (
         'Class::Accessor::Fast' => 0.22,
     },
     recommends         => {
-        'DBIx::Class::Schema::Loader' => 0.03001,
+        'DBIx::Class::Schema::Loader' => 0.03002,
     },
     build_requires     => {
         'Test::More'            => 0.32,
diff --git a/Changes b/Changes
index c393416..f1ac0cf 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,5 +1,11 @@
 Revision history for Perl extension Catalyst::Model::DBIC::Schema
 
+0.15  Tue Jun  6 01:33:57 UTC 2006
+        - Fixed a serious bug in create=static usage
+        - Re-arranged output generation so that the more likely
+          failure to generate Schemas via create= will cause the
+          helper to abort before generating the Model class itself
+
 0.14  Mon Jun  5 23:34:35 UTC 2006
         - Helpers merged, helper syntax changed
         - Everything updated for Schema::Loader 0.03001 support, including
index a1baf9f..a2e6396 100644 (file)
@@ -90,9 +90,6 @@ sub mk_compclass {
         $helper->{connect_info} = \@helper_connect_info;
     }
 
-    my $file = $helper->{file};
-    $helper->render_file( 'compclass', $file );
-
     if($create eq 'dynamic') {
         my @schema_parts = split(/\:\:/, $helper->{schema_class});
         my $schema_file_part = pop @schema_parts;
@@ -113,6 +110,9 @@ sub mk_compclass {
            \@connect_info,
        );
     }
+
+    my $file = $helper->{file};
+    $helper->render_file( 'compclass', $file );
 }
 
 =head1 SEE ALSO
index 19d9c54..320cb29 100644 (file)
@@ -7,7 +7,7 @@ use UNIVERSAL::require;
 use Carp;
 require DBIx::Class;
 
-our $VERSION = '0.14';
+our $VERSION = '0.15';
 
 __PACKAGE__->mk_classaccessor('composed_schema');
 __PACKAGE__->mk_accessors('schema');