r39053 - in /branches/upstream/libdbix-class-timestamp-perl/current: Changes MANIFEST META.yml Makefile.PL lib/DBIx/Class/TimeStamp.pm t/generate_schema.pl t/sql/ t/sql/test.sqlite.sql
gregoa at users.alioth.debian.org
gregoa at users.alioth.debian.org
Wed Jul 1 15:25:09 UTC 2009
Author: gregoa
Date: Wed Jul 1 15:25:05 2009
New Revision: 39053
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=39053
Log:
[svn-upgrade] Integrating new upstream version, libdbix-class-timestamp-perl (0.12)
Added:
branches/upstream/libdbix-class-timestamp-perl/current/t/generate_schema.pl
branches/upstream/libdbix-class-timestamp-perl/current/t/sql/
branches/upstream/libdbix-class-timestamp-perl/current/t/sql/test.sqlite.sql
Modified:
branches/upstream/libdbix-class-timestamp-perl/current/Changes
branches/upstream/libdbix-class-timestamp-perl/current/MANIFEST
branches/upstream/libdbix-class-timestamp-perl/current/META.yml
branches/upstream/libdbix-class-timestamp-perl/current/Makefile.PL
branches/upstream/libdbix-class-timestamp-perl/current/lib/DBIx/Class/TimeStamp.pm
Modified: branches/upstream/libdbix-class-timestamp-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdbix-class-timestamp-perl/current/Changes?rev=39053&op=diff
==============================================================================
--- branches/upstream/libdbix-class-timestamp-perl/current/Changes (original)
+++ branches/upstream/libdbix-class-timestamp-perl/current/Changes Wed Jul 1 15:25:05 2009
@@ -1,4 +1,8 @@
Revision history for DBIx::Class::TimeStamp
+
+0.12 2009-06-30 22:25:17
+ - Ship with a pregenerated sql schema for the tests to avoid the test
+ dependency on SQL-Translator.
0.11 2009 07-32 14:43:00
- Make sure tests run at the 'top' of the second to reduce pointless
Modified: branches/upstream/libdbix-class-timestamp-perl/current/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdbix-class-timestamp-perl/current/MANIFEST?rev=39053&op=diff
==============================================================================
--- branches/upstream/libdbix-class-timestamp-perl/current/MANIFEST (original)
+++ branches/upstream/libdbix-class-timestamp-perl/current/MANIFEST Wed Jul 1 15:25:05 2009
@@ -14,9 +14,6 @@
Makefile.PL
MANIFEST This list of files
META.yml
-t/.06timestamp.t.swp
-t/.07date.t.swp
-t/.08noclobber.t.swp
t/02pod.t
t/03podcoverage.t
t/04basic.t
@@ -24,9 +21,11 @@
t/06timestamp.t
t/07date.t
t/08noclobber.t
+t/generate_schema.pl
t/lib/DBIC/Test.pm
t/lib/DBIC/Test/Schema.pm
t/lib/DBIC/Test/Schema/Test.pm
t/lib/DBIC/Test/Schema/TestDate.pm
t/lib/DBIC/Test/Schema/TestDatetime.pm
t/lib/DBIC/Test/Schema/TestTime.pm
+t/sql/test.sqlite.sql
Modified: branches/upstream/libdbix-class-timestamp-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdbix-class-timestamp-perl/current/META.yml?rev=39053&op=diff
==============================================================================
--- branches/upstream/libdbix-class-timestamp-perl/current/META.yml (original)
+++ branches/upstream/libdbix-class-timestamp-perl/current/META.yml Wed Jul 1 15:25:05 2009
@@ -28,4 +28,4 @@
DateTime: 0
resources:
license: http://dev.perl.org/licenses/
-version: 0.11
+version: 0.12
Modified: branches/upstream/libdbix-class-timestamp-perl/current/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdbix-class-timestamp-perl/current/Makefile.PL?rev=39053&op=diff
==============================================================================
--- branches/upstream/libdbix-class-timestamp-perl/current/Makefile.PL (original)
+++ branches/upstream/libdbix-class-timestamp-perl/current/Makefile.PL Wed Jul 1 15:25:05 2009
@@ -14,6 +14,13 @@
build_requires 'Time::HiRes';
build_requires 'Time::Warp';
+postamble(<<"EOM") if $Module::Install::AUTHOR;
+t/sql/test.sqlite.sql: t/lib/DBIC/Test/Schema.pm t/lib/DBIC/Test/Schema/*.pm
+\t\$(MKPATH) t/sql
+\t\$(PERL) t/generate_schema.pl > \$@
+
+manifest : t/sql/test.sqlite.sql
+EOM
+
auto_install;
WriteAll;
-
Modified: branches/upstream/libdbix-class-timestamp-perl/current/lib/DBIx/Class/TimeStamp.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdbix-class-timestamp-perl/current/lib/DBIx/Class/TimeStamp.pm?rev=39053&op=diff
==============================================================================
--- branches/upstream/libdbix-class-timestamp-perl/current/lib/DBIx/Class/TimeStamp.pm (original)
+++ branches/upstream/libdbix-class-timestamp-perl/current/lib/DBIx/Class/TimeStamp.pm Wed Jul 1 15:25:05 2009
@@ -7,7 +7,7 @@
use DateTime;
-our $VERSION = '0.11';
+our $VERSION = '0.12';
__PACKAGE__->load_components( qw/DynamicDefault InflateColumn::DateTime/ );
Added: branches/upstream/libdbix-class-timestamp-perl/current/t/generate_schema.pl
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdbix-class-timestamp-perl/current/t/generate_schema.pl?rev=39053&op=file
==============================================================================
--- branches/upstream/libdbix-class-timestamp-perl/current/t/generate_schema.pl (added)
+++ branches/upstream/libdbix-class-timestamp-perl/current/t/generate_schema.pl Wed Jul 1 15:25:05 2009
@@ -1,0 +1,12 @@
+use strict;
+use warnings;
+
+use FindBin;
+use lib "$FindBin::Bin/lib", "$FindBin::Bin/../lib";
+
+use DBIC::Test::Schema;
+
+my $schema = DBIC::Test::Schema->connect('dbi:SQLite:t/foo.sqlite');
+use Data::Dump qw/pp/;
+print $_, ";\n" for $schema->deployment_statements;
+unlink 't/foo.sqlite';
Added: branches/upstream/libdbix-class-timestamp-perl/current/t/sql/test.sqlite.sql
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdbix-class-timestamp-perl/current/t/sql/test.sqlite.sql?rev=39053&op=file
==============================================================================
--- branches/upstream/libdbix-class-timestamp-perl/current/t/sql/test.sqlite.sql (added)
+++ branches/upstream/libdbix-class-timestamp-perl/current/t/sql/test.sqlite.sql Wed Jul 1 15:25:05 2009
@@ -1,0 +1,44 @@
+--
+-- Created by SQL::Translator::Producer::SQLite
+-- Created on Tue Jun 30 22:26:36 2009
+--
+
+
+BEGIN TRANSACTION;
+--
+-- Table: test
+--
+CREATE TABLE test (
+ pk1 INTEGER PRIMARY KEY NOT NULL,
+ display_name varchar(128) NOT NULL,
+ t_created datetime NOT NULL,
+ t_updated datetime NOT NULL
+);
+--
+-- Table: test_date
+--
+CREATE TABLE test_date (
+ pk1 INTEGER PRIMARY KEY NOT NULL,
+ display_name varchar(128) NOT NULL,
+ t_created date NOT NULL,
+ t_updated date NOT NULL
+);
+--
+-- Table: test_datetime
+--
+CREATE TABLE test_datetime (
+ pk1 INTEGER PRIMARY KEY NOT NULL,
+ display_name varchar(128) NOT NULL,
+ t_created datetime NOT NULL,
+ t_updated datetime NOT NULL
+);
+--
+-- Table: test_time
+--
+CREATE TABLE test_time (
+ pk1 INTEGER PRIMARY KEY NOT NULL,
+ display_name varchar(128) NOT NULL,
+ t_created timestamp NOT NULL,
+ t_updated timestamp NOT NULL
+);
+COMMIT;
More information about the Pkg-perl-cvs-commits
mailing list