diff -Nru libdbicx-testdatabase-perl-0.04/Changes libdbicx-testdatabase-perl-0.05/Changes --- libdbicx-testdatabase-perl-0.04/Changes 2010-12-15 03:51:14.000000000 +0000 +++ libdbicx-testdatabase-perl-0.05/Changes 2013-07-29 09:19:00.000000000 +0000 @@ -1,3 +1,6 @@ +0.05 29 July 2013 + - add option to avoid automatic deployment (Phil Hallows) + 0.04 14 December 2010 - support unicode (patch by diegok) @@ -6,4 +9,3 @@ 0.01 7 October 2007 - first version, released upon an unsuspecting world - diff -Nru libdbicx-testdatabase-perl-0.04/MANIFEST libdbicx-testdatabase-perl-0.05/MANIFEST --- libdbicx-testdatabase-perl-0.04/MANIFEST 2008-07-07 05:45:15.000000000 +0000 +++ libdbicx-testdatabase-perl-0.05/MANIFEST 2013-07-29 09:30:46.000000000 +0000 @@ -14,6 +14,8 @@ MANIFEST This list of files MANIFEST.SKIP META.yml +MYMETA.json +MYMETA.yml README t/00-load.t t/author/pod-coverage.t @@ -23,3 +25,4 @@ t/lib/TestDatabase.pm t/subclass.t t/testdatabase.t +t/unicode.t diff -Nru libdbicx-testdatabase-perl-0.04/META.yml libdbicx-testdatabase-perl-0.05/META.yml --- libdbicx-testdatabase-perl-0.04/META.yml 2010-12-15 03:51:50.000000000 +0000 +++ libdbicx-testdatabase-perl-0.05/META.yml 2013-07-29 09:30:28.000000000 +0000 @@ -4,13 +4,14 @@ - 'Jonathan Rockway C<< >>' build_requires: DBIx::Class: 0 - ExtUtils::MakeMaker: 6.42 + ExtUtils::MakeMaker: 6.36 Test::More: 0 ok: 0 configure_requires: - ExtUtils::MakeMaker: 6.42 + ExtUtils::MakeMaker: 6.36 distribution_type: module -generated_by: 'Module::Install version 1.00' +dynamic_config: 1 +generated_by: 'Module::Install version 1.06' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -26,4 +27,4 @@ SQL::Translator: 0 resources: license: http://dev.perl.org/licenses/ -version: 0.04 +version: 0.05 diff -Nru libdbicx-testdatabase-perl-0.04/MYMETA.json libdbicx-testdatabase-perl-0.05/MYMETA.json --- libdbicx-testdatabase-perl-0.04/MYMETA.json 1970-01-01 00:00:00.000000000 +0000 +++ libdbicx-testdatabase-perl-0.05/MYMETA.json 2013-07-29 09:30:28.000000000 +0000 @@ -0,0 +1,46 @@ +{ + "abstract" : "create a temporary database from a DBIx::Class::Schema", + "author" : [ + "Jonathan Rockway C<< >>" + ], + "dynamic_config" : 0, + "generated_by" : "ExtUtils::MakeMaker version 6.72, CPAN::Meta::Converter version 2.131560", + "license" : [ + "perl_5" + ], + "meta-spec" : { + "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", + "version" : "2" + }, + "name" : "DBICx-TestDatabase", + "no_index" : { + "directory" : [ + "t", + "inc" + ] + }, + "prereqs" : { + "build" : { + "requires" : { + "DBIx::Class" : "0", + "ExtUtils::MakeMaker" : "6.36", + "Test::More" : "0", + "ok" : "0" + } + }, + "configure" : { + "requires" : { + "ExtUtils::MakeMaker" : "0" + } + }, + "runtime" : { + "requires" : { + "DBD::SQLite" : "1.29", + "File::Temp" : "0", + "SQL::Translator" : "0" + } + } + }, + "release_status" : "stable", + "version" : "0.05" +} diff -Nru libdbicx-testdatabase-perl-0.04/MYMETA.yml libdbicx-testdatabase-perl-0.05/MYMETA.yml --- libdbicx-testdatabase-perl-0.04/MYMETA.yml 1970-01-01 00:00:00.000000000 +0000 +++ libdbicx-testdatabase-perl-0.05/MYMETA.yml 2013-07-29 09:30:28.000000000 +0000 @@ -0,0 +1,27 @@ +--- +abstract: 'create a temporary database from a DBIx::Class::Schema' +author: + - 'Jonathan Rockway C<< >>' +build_requires: + DBIx::Class: 0 + ExtUtils::MakeMaker: 6.36 + Test::More: 0 + ok: 0 +configure_requires: + ExtUtils::MakeMaker: 0 +dynamic_config: 0 +generated_by: 'ExtUtils::MakeMaker version 6.72, CPAN::Meta::Converter version 2.131560' +license: perl +meta-spec: + url: http://module-build.sourceforge.net/META-spec-v1.4.html + version: 1.4 +name: DBICx-TestDatabase +no_index: + directory: + - t + - inc +requires: + DBD::SQLite: 1.29 + File::Temp: 0 + SQL::Translator: 0 +version: 0.05 diff -Nru libdbicx-testdatabase-perl-0.04/debian/changelog libdbicx-testdatabase-perl-0.05/debian/changelog --- libdbicx-testdatabase-perl-0.04/debian/changelog 2011-03-01 15:53:59.000000000 +0000 +++ libdbicx-testdatabase-perl-0.05/debian/changelog 2013-09-21 21:18:39.000000000 +0000 @@ -1,3 +1,25 @@ +libdbicx-testdatabase-perl (0.05-1) unstable; urgency=low + + [ Ansgar Burchardt ] + * debian/control: Convert Vcs-* fields to Git. + + [ gregor herrmann ] + * debian/control: update {versioned,alternative} (build) dependencies. + + [ Salvatore Bonaccorso ] + * Change search.cpan.org based URIs to metacpan.org based URIs + + [ Axel Beckert ] + * debian/copyright: migrate pre-1.0 format to 1.0 using "cme fix dpkg- + copyright" + + [ gregor herrmann ] + * New upstream release. + * Update copyright years. + * Declare compliance with Debian Policy 3.9.4. + + -- gregor herrmann Sat, 21 Sep 2013 23:18:25 +0200 + libdbicx-testdatabase-perl (0.04-1) unstable; urgency=low [ Jonathan Yu ] diff -Nru libdbicx-testdatabase-perl-0.04/debian/control libdbicx-testdatabase-perl-0.05/debian/control --- libdbicx-testdatabase-perl-0.04/debian/control 2011-03-01 15:53:59.000000000 +0000 +++ libdbicx-testdatabase-perl-0.05/debian/control 2013-09-21 21:18:39.000000000 +0000 @@ -1,28 +1,31 @@ Source: libdbicx-testdatabase-perl +Maintainer: Debian Perl Group +Uploaders: Antony Gelberg , + gregor herrmann , + Jonathan Yu Section: perl Priority: optional Build-Depends: debhelper (>= 8) Build-Depends-Indep: perl, - libdbd-sqlite3-perl (>= 1.29), - libdbix-class-perl, - libsql-translator-perl, - libtest-use-ok-perl -Maintainer: Debian Perl Group -Uploaders: Antony Gelberg , - gregor herrmann , Jonathan Yu -Standards-Version: 3.9.1 -Homepage: http://search.cpan.org/dist/DBICx-TestDatabase/ -Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libdbicx-testdatabase-perl/ -Vcs-Browser: http://svn.debian.org/viewsvn/pkg-perl/trunk/libdbicx-testdatabase-perl/ + libdbd-sqlite3-perl, + libdbix-class-perl, + libsql-translator-perl, + libtest-use-ok-perl +Standards-Version: 3.9.4 +Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/libdbicx-testdatabase-perl.git +Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libdbicx-testdatabase-perl.git +Homepage: https://metacpan.org/release/DBICx-TestDatabase/ Package: libdbicx-testdatabase-perl Architecture: all -Depends: ${perl:Depends}, ${misc:Depends}, - libsql-translator-perl, - libdbd-sqlite3-perl (>= 1.29) +Depends: ${perl:Depends}, + ${misc:Depends}, + libsql-translator-perl, + libdbd-sqlite3-perl Description: module for testing a DBIx::Class::Schema DBICx::TestDatabase is a Perl module useful for testing applications built with DBIx::Class (see libdbix-class-perl). It creates a temporary in-memory SQLite database, deploys your DBIC Schema, and then connects to it. This lets you easily test your schema using a fresh database for every test, ensuring that the ordering of tests will not affect failure. + diff -Nru libdbicx-testdatabase-perl-0.04/debian/copyright libdbicx-testdatabase-perl-0.05/debian/copyright --- libdbicx-testdatabase-perl-0.04/debian/copyright 2011-03-01 15:53:59.000000000 +0000 +++ libdbicx-testdatabase-perl-0.05/debian/copyright 2013-09-21 21:18:39.000000000 +0000 @@ -1,22 +1,22 @@ -Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135 -Maintainer: Jonathan Rockway -Source: http://search.cpan.org/dist/DBICx-TestDatabase/ -Name: DBICx-TestDatabase +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: DBICx-TestDatabase +Upstream-Contact: Jonathan Rockway +Source: https://metacpan.org/release/DBICx-TestDatabase/ Files: * Copyright: 2007, Jonathan Rockway License: Artistic or GPL-1+ Files: inc/Module/* -Copyright: 2002-2010, Adam Kennedy - 2002-2010, Audrey Tang - 2002-2010, Brian Ingerson +Copyright: 2002-2012, Adam Kennedy + 2002-2012, Audrey Tang + 2002-2012, Brian Ingerson License: Artistic or GPL-1+ Files: debian/* -Copyright: 2011, Jonathan Yu - 2008, Antony Gelberg - 2008, gregor herrmann +Copyright: 2008, Antony Gelberg + 2008-2013, gregor herrmann + 2011, Jonathan Yu License: Artistic or GPL-1+ License: Artistic diff -Nru libdbicx-testdatabase-perl-0.04/debian/watch libdbicx-testdatabase-perl-0.05/debian/watch --- libdbicx-testdatabase-perl-0.04/debian/watch 2009-06-06 12:08:14.000000000 +0000 +++ libdbicx-testdatabase-perl-0.05/debian/watch 2013-09-21 21:18:39.000000000 +0000 @@ -1,4 +1,2 @@ -# format version number, currently 3; this line is compulsory! version=3 -# URL to the package page followed by a regex to search -http://search.cpan.org/dist/DBICx-TestDatabase/ .*/DBICx-TestDatabase-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ +https://metacpan.org/release/DBICx-TestDatabase/ .*/DBICx-TestDatabase-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ diff -Nru libdbicx-testdatabase-perl-0.04/inc/Module/Install/Base.pm libdbicx-testdatabase-perl-0.05/inc/Module/Install/Base.pm --- libdbicx-testdatabase-perl-0.04/inc/Module/Install/Base.pm 2010-12-15 03:51:50.000000000 +0000 +++ libdbicx-testdatabase-perl-0.05/inc/Module/Install/Base.pm 2013-07-29 09:30:28.000000000 +0000 @@ -4,7 +4,7 @@ use strict 'vars'; use vars qw{$VERSION}; BEGIN { - $VERSION = '1.00'; + $VERSION = '1.06'; } # Suspend handler for "redefined" warnings diff -Nru libdbicx-testdatabase-perl-0.04/inc/Module/Install/Can.pm libdbicx-testdatabase-perl-0.05/inc/Module/Install/Can.pm --- libdbicx-testdatabase-perl-0.04/inc/Module/Install/Can.pm 2010-12-15 03:51:50.000000000 +0000 +++ libdbicx-testdatabase-perl-0.05/inc/Module/Install/Can.pm 2013-07-29 09:30:28.000000000 +0000 @@ -3,13 +3,12 @@ use strict; use Config (); -use File::Spec (); use ExtUtils::MakeMaker (); use Module::Install::Base (); use vars qw{$VERSION @ISA $ISCORE}; BEGIN { - $VERSION = '1.00'; + $VERSION = '1.06'; @ISA = 'Module::Install::Base'; $ISCORE = 1; } @@ -29,7 +28,7 @@ eval { require $mod; $pkg->VERSION($ver || 0); 1 }; } -# check if we can run some command +# Check if we can run some command sub can_run { my ($self, $cmd) = @_; @@ -38,14 +37,88 @@ for my $dir ((split /$Config::Config{path_sep}/, $ENV{PATH}), '.') { next if $dir eq ''; - my $abs = File::Spec->catfile($dir, $_[1]); + require File::Spec; + my $abs = File::Spec->catfile($dir, $cmd); return $abs if (-x $abs or $abs = MM->maybe_command($abs)); } return; } -# can we locate a (the) C compiler +# Can our C compiler environment build XS files +sub can_xs { + my $self = shift; + + # Ensure we have the CBuilder module + $self->configure_requires( 'ExtUtils::CBuilder' => 0.27 ); + + # Do we have the configure_requires checker? + local $@; + eval "require ExtUtils::CBuilder;"; + if ( $@ ) { + # They don't obey configure_requires, so it is + # someone old and delicate. Try to avoid hurting + # them by falling back to an older simpler test. + return $self->can_cc(); + } + + # Do we have a working C compiler + my $builder = ExtUtils::CBuilder->new( + quiet => 1, + ); + unless ( $builder->have_compiler ) { + # No working C compiler + return 0; + } + + # Write a C file representative of what XS becomes + require File::Temp; + my ( $FH, $tmpfile ) = File::Temp::tempfile( + "compilexs-XXXXX", + SUFFIX => '.c', + ); + binmode $FH; + print $FH <<'END_C'; +#include "EXTERN.h" +#include "perl.h" +#include "XSUB.h" + +int main(int argc, char **argv) { + return 0; +} + +int boot_sanexs() { + return 1; +} + +END_C + close $FH; + + # Can the C compiler access the same headers XS does + my @libs = (); + my $object = undef; + eval { + local $^W = 0; + $object = $builder->compile( + source => $tmpfile, + ); + @libs = $builder->link( + objects => $object, + module_name => 'sanexs', + ); + }; + my $result = $@ ? 0 : 1; + + # Clean up all the build files + foreach ( $tmpfile, $object, @libs ) { + next unless defined $_; + 1 while unlink; + } + + return $result; +} + +# Can we locate a (the) C compiler sub can_cc { my $self = shift; my @chunks = split(/ /, $Config::Config{cc}) or return; @@ -78,4 +151,4 @@ __END__ -#line 156 +#line 236 diff -Nru libdbicx-testdatabase-perl-0.04/inc/Module/Install/Fetch.pm libdbicx-testdatabase-perl-0.05/inc/Module/Install/Fetch.pm --- libdbicx-testdatabase-perl-0.04/inc/Module/Install/Fetch.pm 2010-12-15 03:51:50.000000000 +0000 +++ libdbicx-testdatabase-perl-0.05/inc/Module/Install/Fetch.pm 2013-07-29 09:30:28.000000000 +0000 @@ -6,7 +6,7 @@ use vars qw{$VERSION @ISA $ISCORE}; BEGIN { - $VERSION = '1.00'; + $VERSION = '1.06'; @ISA = 'Module::Install::Base'; $ISCORE = 1; } diff -Nru libdbicx-testdatabase-perl-0.04/inc/Module/Install/Makefile.pm libdbicx-testdatabase-perl-0.05/inc/Module/Install/Makefile.pm --- libdbicx-testdatabase-perl-0.04/inc/Module/Install/Makefile.pm 2010-12-15 03:51:50.000000000 +0000 +++ libdbicx-testdatabase-perl-0.05/inc/Module/Install/Makefile.pm 2013-07-29 09:30:28.000000000 +0000 @@ -8,7 +8,7 @@ use vars qw{$VERSION @ISA $ISCORE}; BEGIN { - $VERSION = '1.00'; + $VERSION = '1.06'; @ISA = 'Module::Install::Base'; $ISCORE = 1; } @@ -215,18 +215,22 @@ require ExtUtils::MakeMaker; if ( $perl_version and $self->_cmp($perl_version, '5.006') >= 0 ) { - # MakeMaker can complain about module versions that include - # an underscore, even though its own version may contain one! - # Hence the funny regexp to get rid of it. See RT #35800 - # for details. - my $v = $ExtUtils::MakeMaker::VERSION =~ /^(\d+\.\d+)/; - $self->build_requires( 'ExtUtils::MakeMaker' => $v ); - $self->configure_requires( 'ExtUtils::MakeMaker' => $v ); + # This previous attempted to inherit the version of + # ExtUtils::MakeMaker in use by the module author, but this + # was found to be untenable as some authors build releases + # using future dev versions of EU:MM that nobody else has. + # Instead, #toolchain suggests we use 6.59 which is the most + # stable version on CPAN at time of writing and is, to quote + # ribasushi, "not terminally fucked, > and tested enough". + # TODO: We will now need to maintain this over time to push + # the version up as new versions are released. + $self->build_requires( 'ExtUtils::MakeMaker' => 6.59 ); + $self->configure_requires( 'ExtUtils::MakeMaker' => 6.59 ); } else { # Allow legacy-compatibility with 5.005 by depending on the # most recent EU:MM that supported 5.005. - $self->build_requires( 'ExtUtils::MakeMaker' => 6.42 ); - $self->configure_requires( 'ExtUtils::MakeMaker' => 6.42 ); + $self->build_requires( 'ExtUtils::MakeMaker' => 6.36 ); + $self->configure_requires( 'ExtUtils::MakeMaker' => 6.36 ); } # Generate the MakeMaker params @@ -241,7 +245,6 @@ 'all_from' if you prefer) in Makefile.PL. EOT - $DB::single = 1; if ( $self->tests ) { my @tests = split ' ', $self->tests; my %seen; @@ -412,4 +415,4 @@ __END__ -#line 541 +#line 544 diff -Nru libdbicx-testdatabase-perl-0.04/inc/Module/Install/Metadata.pm libdbicx-testdatabase-perl-0.05/inc/Module/Install/Metadata.pm --- libdbicx-testdatabase-perl-0.04/inc/Module/Install/Metadata.pm 2010-12-15 03:51:50.000000000 +0000 +++ libdbicx-testdatabase-perl-0.05/inc/Module/Install/Metadata.pm 2013-07-29 09:30:28.000000000 +0000 @@ -6,7 +6,7 @@ use vars qw{$VERSION @ISA $ISCORE}; BEGIN { - $VERSION = '1.00'; + $VERSION = '1.06'; @ISA = 'Module::Install::Base'; $ISCORE = 1; } @@ -151,15 +151,21 @@ sub install_as_vendor { $_[0]->installdirs('vendor') } sub dynamic_config { - my $self = shift; - unless ( @_ ) { - warn "You MUST provide an explicit true/false value to dynamic_config\n"; - return $self; + my $self = shift; + my $value = @_ ? shift : 1; + if ( $self->{values}->{dynamic_config} ) { + # Once dynamic we never change to static, for safety + return 0; } - $self->{values}->{dynamic_config} = $_[0] ? 1 : 0; + $self->{values}->{dynamic_config} = $value ? 1 : 0; return 1; } +# Convenience command +sub static_config { + shift->dynamic_config(0); +} + sub perl_version { my $self = shift; return $self->{values}->{perl_version} unless @_; @@ -170,7 +176,7 @@ # Normalize the version $version = $self->_perl_version($version); - # We don't support the reall old versions + # We don't support the really old versions unless ( $version >= 5.005 ) { die "Module::Install only supports 5.005 or newer (use ExtUtils::MakeMaker)\n"; } @@ -515,6 +521,7 @@ 'GNU Free Documentation license' => 'unrestricted', 1, 'GNU Affero General Public License' => 'open_source', 1, '(?:Free)?BSD license' => 'bsd', 1, + 'Artistic license 2\.0' => 'artistic_2', 1, 'Artistic license' => 'artistic', 1, 'Apache (?:Software )?license' => 'apache', 1, 'GPL' => 'gpl', 1, @@ -550,9 +557,9 @@ sub _extract_bugtracker { my @links = $_[0] =~ m#L<( - \Qhttp://rt.cpan.org/\E[^>]+| - \Qhttp://github.com/\E[\w_]+/[\w_]+/issues| - \Qhttp://code.google.com/p/\E[\w_\-]+/issues/list + https?\Q://rt.cpan.org/\E[^>]+| + https?\Q://github.com/\E[\w_]+/[\w_]+/issues| + https?\Q://code.google.com/p/\E[\w_\-]+/issues/list )>#gx; my %links; @links{@links}=(); @@ -581,7 +588,7 @@ sub requires_from { my $self = shift; my $content = Module::Install::_readperl($_[0]); - my @requires = $content =~ m/^use\s+([^\W\d]\w*(?:::\w+)*)\s+([\d\.]+)/mg; + my @requires = $content =~ m/^use\s+([^\W\d]\w*(?:::\w+)*)\s+(v?[\d\.]+)/mg; while ( @requires ) { my $module = shift @requires; my $version = shift @requires; diff -Nru libdbicx-testdatabase-perl-0.04/inc/Module/Install/Win32.pm libdbicx-testdatabase-perl-0.05/inc/Module/Install/Win32.pm --- libdbicx-testdatabase-perl-0.04/inc/Module/Install/Win32.pm 2010-12-15 03:51:50.000000000 +0000 +++ libdbicx-testdatabase-perl-0.05/inc/Module/Install/Win32.pm 2013-07-29 09:30:28.000000000 +0000 @@ -6,7 +6,7 @@ use vars qw{$VERSION @ISA $ISCORE}; BEGIN { - $VERSION = '1.00'; + $VERSION = '1.06'; @ISA = 'Module::Install::Base'; $ISCORE = 1; } diff -Nru libdbicx-testdatabase-perl-0.04/inc/Module/Install/WriteAll.pm libdbicx-testdatabase-perl-0.05/inc/Module/Install/WriteAll.pm --- libdbicx-testdatabase-perl-0.04/inc/Module/Install/WriteAll.pm 2010-12-15 03:51:50.000000000 +0000 +++ libdbicx-testdatabase-perl-0.05/inc/Module/Install/WriteAll.pm 2013-07-29 09:30:28.000000000 +0000 @@ -6,7 +6,7 @@ use vars qw{$VERSION @ISA $ISCORE}; BEGIN { - $VERSION = '1.00'; + $VERSION = '1.06'; @ISA = qw{Module::Install::Base}; $ISCORE = 1; } diff -Nru libdbicx-testdatabase-perl-0.04/inc/Module/Install.pm libdbicx-testdatabase-perl-0.05/inc/Module/Install.pm --- libdbicx-testdatabase-perl-0.04/inc/Module/Install.pm 2010-12-15 03:51:50.000000000 +0000 +++ libdbicx-testdatabase-perl-0.05/inc/Module/Install.pm 2013-07-29 09:30:28.000000000 +0000 @@ -31,7 +31,7 @@ # This is not enforced yet, but will be some time in the next few # releases once we can make sure it won't clash with custom # Module::Install extensions. - $VERSION = '1.00'; + $VERSION = '1.06'; # Storage for the pseudo-singleton $MAIN = undef; @@ -451,7 +451,7 @@ } sub _cmp ($$) { - _version($_[0]) <=> _version($_[1]); + _version($_[1]) <=> _version($_[2]); } # Cloned from Params::Util::_CLASS @@ -467,4 +467,4 @@ 1; -# Copyright 2008 - 2010 Adam Kennedy. +# Copyright 2008 - 2012 Adam Kennedy. diff -Nru libdbicx-testdatabase-perl-0.04/lib/DBICx/TestDatabase.pm libdbicx-testdatabase-perl-0.05/lib/DBICx/TestDatabase.pm --- libdbicx-testdatabase-perl-0.04/lib/DBICx/TestDatabase.pm 2010-12-15 03:50:40.000000000 +0000 +++ libdbicx-testdatabase-perl-0.05/lib/DBICx/TestDatabase.pm 2013-07-29 09:18:04.000000000 +0000 @@ -4,13 +4,13 @@ use File::Temp 'tempfile'; -our $VERSION = '0.04'; +our $VERSION = '0.05'; # avoid contaminating the schema with the tempfile my @TMPFILES; sub new { - my ($class, $schema_class) = @_; + my ($class, $schema_class, $opts) = @_; eval "require $schema_class" or die "failed to require $schema_class: $@"; @@ -26,7 +26,7 @@ { sqlite_unicode => 1 } ) or die "failed to connect to DBI:SQLite:$filename ($schema_class)"; - $schema->deploy; + $schema->deploy unless $opts->{nodeploy}; return $schema; } diff -Nru libdbicx-testdatabase-perl-0.04/t/unicode.t libdbicx-testdatabase-perl-0.05/t/unicode.t --- libdbicx-testdatabase-perl-0.04/t/unicode.t 1970-01-01 00:00:00.000000000 +0000 +++ libdbicx-testdatabase-perl-0.05/t/unicode.t 2013-07-29 09:18:04.000000000 +0000 @@ -0,0 +1,24 @@ +#!/usr/bin/env perl + +use strict; +use warnings; +use utf8; +use Test::More tests => 5; + +use FindBin qw($Bin); +use lib "$Bin/lib"; + +use DBICx::TestDatabase; + +my $schema = DBICx::TestDatabase->connect('MySchema'); +ok $schema; +isa_ok $schema, 'MySchema', '$schema'; + +my $row = $schema->resultset('Foo')->create({ value => 'ñandú' }); +ok $row, 'got a row'; +is $row->id, 1, 'id 1'; + +$row = $schema->resultset('Foo')->find(1); +is( $row->value, 'ñandú', 'Unicode string was retrieved fine'); + +# it works.