pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/p5-Jifty-DBI Update p5-Jifty-DBI from versio...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6183cf613312
branches:  trunk
changeset: 398101:6183cf613312
user:      seb <seb%pkgsrc.org@localhost>
date:      Sun Aug 23 22:27:47 2009 +0000

description:
Update p5-Jifty-DBI from version 0.53 to version 0.58.

Pkgsrc changes:
- Perl 5.10, which includes version.pm, is now required by pkgsrc, hence
the dependency on devel/p5-version can be removed
- Set LICENSE

Upstream changes:
0.58 Tue Jul 14 03:21:21 EST 2009
- Possible incompatibilities:
    * Modules which use Jifty::DBI::Schema will have strict and warnings
      automatically applied to them.

- Features:
    * Jifty::DBI::Handle now has methods for supported_drivers,
      available_drivers, and is_available_driver.

- Fixes:
    * Remove unused _limit_clause method
    * Various error message improvements
    * Use ->new_item instead of ->record_class->new since it was a performance
        hit in Jifty
    * Avoid cals to ->new_item where possible

- Documentation:
    * Document connect's quirky return value

0.57 Tue May 19 08:02:03 EDT 2009
- Major bugfixes:
    * Use eval {} in Jifty::DBI::Handle's DESTROY block when manipulating DBI
        Alterations to the DBI object in the DESTROY block must be wrapped in
        an eval {}, as object destruction order is not guaranteed during
        global destruction, and this interacts poorly with DBI's tie'd object.
    * During DESTROY, don't explicitly disconnect a dbh set InactiveDestroy
        The InactiveDestroy flag on DBI objects prevent them from being
        implicitly disconnected when they go out of scope -- for example, in
        the case where a process has forked, and two processes hold the socket
        open.
        However, it does not prevent them from being _explicitly_
        disconnected, as we were doing in Jifty::DBI::Handle's DESTROY method.
        This caused InactiveDestroy to never kick in, causing either a shared
        socket, or two closed handles after a fork.  We prevent this by having
        Jifty::DBI::Handle respect InactiveDestroy in its DESTROY method.
    * Do not use Scalar::Defer defaults for columns' defaults in the db

- New features:
    * Add a display_length attribute on columns
    * add schema manipulation tables: rename_column and rename_table
    * If a column's default is a record, call its id method

- Fixes:
    * Improve SQL error message and avoid its duplication
    * Pull the input_ and output_filters out of the instance hash

- Tests:
    * Added a unit test for the SaltHash filter
    * use drop_table_if_exists in tests
    * add drop_table_if_exists in t/utils.t
    * unconditionaly drop tables for testing
    * test rename_table
    * add tests for rename_column
    * SaltHash test does not need an is_deeply()
    * Don't explicitly disconnect the handle, DESTROY handles it better
    * Test for warnings instead of letting them leak into the test output

diffstat:

 databases/p5-Jifty-DBI/Makefile |  6 +++---
 databases/p5-Jifty-DBI/distinfo |  8 ++++----
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (41 lines):

diff -r 1d950e4a39d1 -r 6183cf613312 databases/p5-Jifty-DBI/Makefile
--- a/databases/p5-Jifty-DBI/Makefile   Sun Aug 23 22:22:33 2009 +0000
+++ b/databases/p5-Jifty-DBI/Makefile   Sun Aug 23 22:27:47 2009 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.3 2009/04/12 10:35:45 he Exp $
+# $NetBSD: Makefile,v 1.4 2009/08/23 22:27:47 seb Exp $
 
-DISTNAME=      Jifty-DBI-0.53
+DISTNAME=      Jifty-DBI-0.58
 PKGNAME=       p5-${DISTNAME}
 CATEGORIES=    databases perl5
 MASTER_SITES=  ${MASTER_SITE_PERL_CPAN:=Jifty/}
@@ -8,6 +8,7 @@
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=      http://search.cpan.org/dist/Jifty-DBI/
 COMMENT=       Perl 5 object-relational persistence framework
+LICENSE=       ${PERL5_LICENSE}
 
 PKG_DESTDIR_SUPPORT=   user-destdir
 
@@ -40,7 +41,6 @@
 DEPENDS+=      p5-UNIVERSAL-require>=0.11:../../devel/p5-UNIVERSAL-require
 DEPENDS+=      p5-URI-[0-9]*:../../www/p5-URI
 DEPENDS+=      p5-YAML-Syck-[0-9]*:../../textproc/p5-YAML-Syck
-DEPENDS+=      {perl>=5.10,p5-version-[0-9]*}:../../devel/p5-version
 
 .include "../../lang/perl5/module.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 1d950e4a39d1 -r 6183cf613312 databases/p5-Jifty-DBI/distinfo
--- a/databases/p5-Jifty-DBI/distinfo   Sun Aug 23 22:22:33 2009 +0000
+++ b/databases/p5-Jifty-DBI/distinfo   Sun Aug 23 22:27:47 2009 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.2 2009/04/12 10:35:45 he Exp $
+$NetBSD: distinfo,v 1.3 2009/08/23 22:27:47 seb Exp $
 
-SHA1 (Jifty-DBI-0.53.tar.gz) = eae11300fa0b8cf48b54e365ba97c008ac0f9cc5
-RMD160 (Jifty-DBI-0.53.tar.gz) = 3ca6888883b67abcd57ed972fed2a53c62c9aaf0
-Size (Jifty-DBI-0.53.tar.gz) = 150214 bytes
+SHA1 (Jifty-DBI-0.58.tar.gz) = b3d93b56fc3e9b622393bfa5af8cdaee5cc87d41
+RMD160 (Jifty-DBI-0.58.tar.gz) = 99b03f2463faaadcf2e5d7f10470f86be15ff305
+Size (Jifty-DBI-0.58.tar.gz) = 149874 bytes



Home | Main Index | Thread Index | Old Index