mirror of
https://github.com/DBD-SQLite/DBD-SQLite
synced 2025-06-07 22:28:47 -04:00
Updating version to a production release
This commit is contained in:
parent
7b3cb9c9c1
commit
4b18420835
3 changed files with 48 additions and 47 deletions
3
Changes
3
Changes
|
@ -1,6 +1,7 @@
|
||||||
Changes for Perl extension DBD-SQLite.
|
Changes for Perl extension DBD-SQLite.
|
||||||
|
|
||||||
1.19_11 to be released
|
1.20 to be released
|
||||||
|
- Moving to the first production release of the new era.
|
||||||
- Check DBI version in Makefile.PL (CHORNY)
|
- Check DBI version in Makefile.PL (CHORNY)
|
||||||
- Bundling Test::NoWarings into /inc to remove a dependency (ADAMK)
|
- Bundling Test::NoWarings into /inc to remove a dependency (ADAMK)
|
||||||
- Correcting use 5.00503 to 5.006 in SQLite.pm (ADAMK)
|
- Correcting use 5.00503 to 5.006 in SQLite.pm (ADAMK)
|
||||||
|
|
|
@ -8,7 +8,7 @@ use DynaLoader ();
|
||||||
use vars qw($VERSION @ISA);
|
use vars qw($VERSION @ISA);
|
||||||
use vars qw{$err $errstr $drh $sqlite_version};
|
use vars qw{$err $errstr $drh $sqlite_version};
|
||||||
BEGIN {
|
BEGIN {
|
||||||
$VERSION = '1.19_11';
|
$VERSION = '1.20';
|
||||||
@ISA = ('DynaLoader');
|
@ISA = ('DynaLoader');
|
||||||
|
|
||||||
# Driver singleton
|
# Driver singleton
|
||||||
|
|
|
@ -1,45 +1,45 @@
|
||||||
package t::lib::Test;
|
package t::lib::Test;
|
||||||
|
|
||||||
# Support code for DBD::SQLite tests
|
# Support code for DBD::SQLite tests
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use Exporter ();
|
use Exporter ();
|
||||||
use File::Spec ();
|
use File::Spec ();
|
||||||
use Test::More ();
|
use Test::More ();
|
||||||
|
|
||||||
use vars qw{$VERSION @ISA @EXPORT};
|
use vars qw{$VERSION @ISA @EXPORT};
|
||||||
BEGIN {
|
BEGIN {
|
||||||
$VERSION = '1.19_11';
|
$VERSION = '1.20';
|
||||||
@ISA = qw{ Exporter };
|
@ISA = qw{ Exporter };
|
||||||
@EXPORT = qw{ connect_ok };
|
@EXPORT = qw{ connect_ok };
|
||||||
|
|
||||||
# Allow tests to load modules bundled in /inc
|
# Allow tests to load modules bundled in /inc
|
||||||
unshift @INC, 'inc';
|
unshift @INC, 'inc';
|
||||||
}
|
}
|
||||||
|
|
||||||
# Always load the DBI module
|
# Always load the DBI module
|
||||||
use DBI ();
|
use DBI ();
|
||||||
|
|
||||||
# Delete temporary files
|
# Delete temporary files
|
||||||
sub clean {
|
sub clean {
|
||||||
unlink( 'foo' );
|
unlink( 'foo' );
|
||||||
unlink( 'foo-journal' );
|
unlink( 'foo-journal' );
|
||||||
}
|
}
|
||||||
|
|
||||||
# Clean up temporary test files both at the beginning and end of the
|
# Clean up temporary test files both at the beginning and end of the
|
||||||
# test script.
|
# test script.
|
||||||
BEGIN { clean() }
|
BEGIN { clean() }
|
||||||
END { clean() }
|
END { clean() }
|
||||||
|
|
||||||
# A simplified connect function for the most common case
|
# A simplified connect function for the most common case
|
||||||
sub connect_ok {
|
sub connect_ok {
|
||||||
my @params = ( 'dbi:SQLite:dbname=foo', '', '' );
|
my @params = ( 'dbi:SQLite:dbname=foo', '', '' );
|
||||||
if ( @_ ) {
|
if ( @_ ) {
|
||||||
push @params, { @_ };
|
push @params, { @_ };
|
||||||
}
|
}
|
||||||
my $dbh = DBI->connect( @params );
|
my $dbh = DBI->connect( @params );
|
||||||
Test::More::isa_ok( $dbh, 'DBI::db' );
|
Test::More::isa_ok( $dbh, 'DBI::db' );
|
||||||
return $dbh;
|
return $dbh;
|
||||||
}
|
}
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue