[Bast-commits] r6790 - in DBIx-Class-Schema-PopulateMore/truck: .
lib/DBIx/Class/Schema lib/DBIx/Class/Schema/PopulateMore/Test
lib/DBIx/Class/Schema/PopulateMore/Test/Schema/Result t
jnapiorkowski at dev.catalyst.perl.org
jnapiorkowski at dev.catalyst.perl.org
Thu Jun 25 21:13:39 GMT 2009
Author: jnapiorkowski
Date: 2009-06-25 21:13:38 +0000 (Thu, 25 Jun 2009)
New Revision: 6790
Added:
DBIx-Class-Schema-PopulateMore/truck/t/var/
Removed:
DBIx-Class-Schema-PopulateMore/truck/META.yml
Modified:
DBIx-Class-Schema-PopulateMore/truck/Changes
DBIx-Class-Schema-PopulateMore/truck/Makefile.PL
DBIx-Class-Schema-PopulateMore/truck/lib/DBIx/Class/Schema/PopulateMore.pm
DBIx-Class-Schema-PopulateMore/truck/lib/DBIx/Class/Schema/PopulateMore/Test/Schema.pm
DBIx-Class-Schema-PopulateMore/truck/lib/DBIx/Class/Schema/PopulateMore/Test/Schema/Result/EmploymentHistory.pm
DBIx-Class-Schema-PopulateMore/truck/lib/DBIx/Class/Schema/PopulateMore/Test/Schema/Result/Person.pm
Log:
prepping for new release. fixed all the outstanding test errors and updated requirements
Modified: DBIx-Class-Schema-PopulateMore/truck/Changes
===================================================================
--- DBIx-Class-Schema-PopulateMore/truck/Changes 2009-06-25 09:04:26 UTC (rev 6789)
+++ DBIx-Class-Schema-PopulateMore/truck/Changes 2009-06-25 21:13:38 UTC (rev 6790)
@@ -1,5 +1,15 @@
Revision history for Perl extension DBIx-Class-Schema-PopulateMore.
+0.05 Friday, June 25, 2009
+ - Updated all the required versions to more recent items, since that
+ is what I can test on, plus most of that older stuff has known
+ compatibility issues.
+ - Requires Perl 5.8.8 since I can't test this on 5.8.6 anywhere (patches
+ or test cases welcomed.)
+ - changed the way we set default timestamp on sqlite. this fixes a lot of
+ failed test cases. Now all tests pass for me and I cleared most of the
+ types of test failues I see in the backlog.
+ - Updated Docs a bit.
0.04 Friday, June 04, 2008
- Moved namespace of component from DBIx-Class-PopulateMore
- Minor documentation updates
Deleted: DBIx-Class-Schema-PopulateMore/truck/META.yml
===================================================================
--- DBIx-Class-Schema-PopulateMore/truck/META.yml 2009-06-25 09:04:26 UTC (rev 6789)
+++ DBIx-Class-Schema-PopulateMore/truck/META.yml 2009-06-25 21:13:38 UTC (rev 6790)
@@ -1,30 +0,0 @@
----
-abstract: 'An enhanced populate method'
-author:
- - 'John Napiorkowski <jjn1056 at yahoo.com>'
-build_requires:
- DBIx::Class: 0.08010
- File::Find: 0
- File::Temp: 0
- Test::More: 0
- YAML::Tiny: 0
-distribution_type: module
-generated_by: 'Module::Install version 0.72'
-license: perl
-meta-spec:
- url: http://module-build.sourceforge.net/META-spec-v1.3.html
- version: 1.3
-name: DBIx-Class-Schema-PopulateMore
-no_index:
- directory:
- - inc
- - t
-requires:
- Data::Visitor: 0.15
- DateTimeX::Easy: 0.082
- List::MoreUtils: 0.22
- Module::Pluggable: 3.8
- Moose: 0.48
- MooseX::AttributeHelpers: 0.09
- perl: 5.8.6
-version: 0.04
Modified: DBIx-Class-Schema-PopulateMore/truck/Makefile.PL
===================================================================
--- DBIx-Class-Schema-PopulateMore/truck/Makefile.PL 2009-06-25 09:04:26 UTC (rev 6789)
+++ DBIx-Class-Schema-PopulateMore/truck/Makefile.PL 2009-06-25 21:13:38 UTC (rev 6790)
@@ -1,22 +1,22 @@
use inc::Module::Install;
-perl_version '5.008006';
+perl_version '5.008008';
name 'DBIx-Class-Schema-PopulateMore';
all_from 'lib/DBIx/Class/Schema/PopulateMore.pm';
author 'John Napiorkowski <jjn1056 at yahoo.com>';
-requires 'Moose' => '0.48';
-requires 'MooseX::AttributeHelpers' => '0.09';
-requires 'DateTimeX::Easy' => '0.082';
+requires 'Moose' => '0.83';
+requires 'MooseX::AttributeHelpers' => '0.19';
+requires 'DateTimeX::Easy' => '0.087';
requires 'List::MoreUtils' => '0.22';
-requires 'Module::Pluggable' => '3.8';
-requires 'Data::Visitor' => '0.15';
+requires 'Module::Pluggable' => '3.9';
+requires 'Data::Visitor' => '0.25';
-build_requires 'DBIx::Class' => '0.08010';
+build_requires 'DBIx::Class' => '0.08107';
build_requires 'Test::More';
build_requires 'File::Find';
-build_requires 'File::Temp';
build_requires 'YAML::Tiny';
+build_requires 'Path::Class';
auto_install;
Modified: DBIx-Class-Schema-PopulateMore/truck/lib/DBIx/Class/Schema/PopulateMore/Test/Schema/Result/EmploymentHistory.pm
===================================================================
--- DBIx-Class-Schema-PopulateMore/truck/lib/DBIx/Class/Schema/PopulateMore/Test/Schema/Result/EmploymentHistory.pm 2009-06-25 09:04:26 UTC (rev 6789)
+++ DBIx-Class-Schema-PopulateMore/truck/lib/DBIx/Class/Schema/PopulateMore/Test/Schema/Result/EmploymentHistory.pm 2009-06-25 21:13:38 UTC (rev 6790)
@@ -56,7 +56,7 @@
},
started => {
data_type=>'datetime',
- default_value=>'date("now")',
+ default_value=>\'CURRENT_TIMESTAMP',
});
Modified: DBIx-Class-Schema-PopulateMore/truck/lib/DBIx/Class/Schema/PopulateMore/Test/Schema/Result/Person.pm
===================================================================
--- DBIx-Class-Schema-PopulateMore/truck/lib/DBIx/Class/Schema/PopulateMore/Test/Schema/Result/Person.pm 2009-06-25 09:04:26 UTC (rev 6789)
+++ DBIx-Class-Schema-PopulateMore/truck/lib/DBIx/Class/Schema/PopulateMore/Test/Schema/Result/Person.pm 2009-06-25 21:13:38 UTC (rev 6790)
@@ -69,7 +69,7 @@
},
created => {
data_type=>'datetime',
- default_value=>'date("now")',
+ default_value=>\'CURRENT_TIMESTAMP',
});
Modified: DBIx-Class-Schema-PopulateMore/truck/lib/DBIx/Class/Schema/PopulateMore/Test/Schema.pm
===================================================================
--- DBIx-Class-Schema-PopulateMore/truck/lib/DBIx/Class/Schema/PopulateMore/Test/Schema.pm 2009-06-25 09:04:26 UTC (rev 6789)
+++ DBIx-Class-Schema-PopulateMore/truck/lib/DBIx/Class/Schema/PopulateMore/Test/Schema.pm 2009-06-25 21:13:38 UTC (rev 6790)
@@ -1,7 +1,7 @@
package # hide from PAUSE
DBIx::Class::Schema::PopulateMore::Test::Schema;
-use File::Temp qw(tempfile);
+use Path::Class;
use base 'DBIx::Class::Schema';
@@ -25,7 +25,7 @@
=cut
__PACKAGE__->load_components(qw/
- +DBIx::Class::Schema::PopulateMore
+ Schema::PopulateMore
/);
@@ -69,6 +69,9 @@
->setup;
}
+sub test_dbfile_path {
+ return Path::Class::File->new(qw/t var dbfile.sqlite/);
+}
=head2 default_dsn
@@ -80,7 +83,7 @@
sub default_dsn
{
my $class = shift @_;
- my ($fh, $filename) = tempfile(UNLINK=>1);
+ my $filename=$class->test_dbfile_path;
return "dbi:SQLite:${filename}";
}
@@ -97,7 +100,21 @@
return $self;
}
+=head2 cleanup
+cleanup any temporary files
+
+=cut
+
+sub cleanup {
+ my $self = shift @_;
+ unlink $self->test_dbfile_path;
+}
+
+sub DESTROY {
+ (shift)->cleanup;
+}
+
=head1 AUTHOR
Please see L<DBIx::Class::Schema::PopulateMore> For authorship information
Modified: DBIx-Class-Schema-PopulateMore/truck/lib/DBIx/Class/Schema/PopulateMore.pm
===================================================================
--- DBIx-Class-Schema-PopulateMore/truck/lib/DBIx/Class/Schema/PopulateMore.pm 2009-06-25 09:04:26 UTC (rev 6789)
+++ DBIx-Class-Schema-PopulateMore/truck/lib/DBIx/Class/Schema/PopulateMore.pm 2009-06-25 21:13:38 UTC (rev 6790)
@@ -11,11 +11,11 @@
=head1 VERSION
-Version 0.04
+Version 0.05
=cut
-our $VERSION = '0.04';
+our $VERSION = '0.05';
=head1 SYNOPSIS
@@ -24,7 +24,7 @@
package Myapp::Schema;
use base qw/DBIx::Class::Schema/;
- __PACKAGE__->load_components(qw/+DBIx::Class::Schema::PopulateMore/);
+ __PACKAGE__->load_components(qw/Schema::PopulateMore/);
__PACKAGE__->load_namespaces();
## All the rest of your setup
More information about the Bast-commits
mailing list