diff -Nru libdbix-safe-perl-1.2.5/debian/changelog libdbix-safe-perl-1.2.5/debian/changelog --- libdbix-safe-perl-1.2.5/debian/changelog 2015-05-07 10:22:06.000000000 +0000 +++ libdbix-safe-perl-1.2.5/debian/changelog 2015-05-02 19:08:51.000000000 +0000 @@ -1,3 +1,41 @@ +libdbix-safe-perl (1.2.5-2) unstable; urgency=low + + * Team upload. + + [ gregor herrmann ] + * debian/control: remove unversioned (build) dependency on perl- + modules. + + [ Ansgar Burchardt ] + * debian/control: Convert Vcs-* fields to Git. + + [ gregor herrmann ] + * debian/control: update {versioned,alternative} (build) dependencies. + + [ Salvatore Bonaccorso ] + * Change Vcs-Git to canonical URI (git://anonscm.debian.org) + * Change search.cpan.org based URIs to metacpan.org based URIs + + [ gregor herrmann ] + * Strip trailing slash from metacpan URLs. + + [ Salvatore Bonaccorso ] + * Update Vcs-Browser URL to cgit web frontend + + [ gregor herrmann ] + * Drop build dependency on libmodule-signature-perl. (Closes: #783965) + * Switch to "3.0 (quilt)" source format. + * debian/copyright: switch formatting to Copyright-Format 1.0. + * Declare compliance with Debian Policy 3.9.6. + * Mark package as autopkgtest-able. + * Revert direct changes to upstream code. + * Drop unused build dependency on libdbd-pg-perl. + * Bump debhelper compatibility level to 8. + * Update short/long description. + * Don't install README anymore. + + -- gregor herrmann Sat, 02 May 2015 21:08:43 +0200 + libdbix-safe-perl (1.2.5-1) unstable; urgency=low * Initial Release. (Closes: #528719) diff -Nru libdbix-safe-perl-1.2.5/debian/control libdbix-safe-perl-1.2.5/debian/control --- libdbix-safe-perl-1.2.5/debian/control 2015-05-07 10:22:06.000000000 +0000 +++ libdbix-safe-perl-1.2.5/debian/control 2015-05-02 19:08:51.000000000 +0000 @@ -1,26 +1,28 @@ Source: libdbix-safe-perl -Section: perl -Priority: optional -Build-Depends: debhelper (>= 7) -Build-Depends-Indep: perl, perl-modules, libmodule-signature-perl (>= 0.50), - libdbd-pg-perl (>= 1.49), libdbi-perl (>= 1.49) Maintainer: Debian Perl Group Uploaders: Krzysztof Krzyzaniak (eloy) -Standards-Version: 3.8.3 -Homepage: http://search.cpan.org/dist/DBIx-Safe/ -Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libdbix-safe-perl/ -Vcs-Browser: http://svn.debian.org/viewsvn/pkg-perl/trunk/libdbix-safe-perl/ - +Section: perl +Testsuite: autopkgtest-pkg-perl +Priority: optional +Build-Depends: debhelper (>= 8) +Build-Depends-Indep: perl, + libdbi-perl +Standards-Version: 3.9.6 +Vcs-Browser: https://anonscm.debian.org/cgit/pkg-perl/packages/libdbix-safe-perl.git +Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libdbix-safe-perl.git +Homepage: https://metacpan.org/release/DBIx-Safe Package: libdbix-safe-perl Architecture: all -Depends: ${perl:Depends}, ${misc:Depends}, libdbi-perl (>= 1.49) -Description: Safe wrapper to DBI interface - The purpose of this module is to give controlled, limited access to an - application, rather than simply passing it a raw database handle through DBI. - DBIx::Safe acts as a wrapper to the database, by only allowing through the - commands you tell it to. It filters all things related to the database handle - - methods and attributes. +Depends: ${perl:Depends}, + ${misc:Depends}, + libdbi-perl +Description: safe wrapper to DBI interface + The purpose of the DBIx::Safe module is to give controlled, limited access to + an application, rather than simply passing it a raw database handle through + DBI. DBIx::Safe acts as a wrapper to the database, by only allowing through + the commands you tell it to. It filters all things related to the database + handle - methods and attributes. . The typical usage is for your application to create a database handle via a normal DBI call to new(), then pass that to DBIx::Safe->new(), which will diff -Nru libdbix-safe-perl-1.2.5/debian/copyright libdbix-safe-perl-1.2.5/debian/copyright --- libdbix-safe-perl-1.2.5/debian/copyright 2015-05-07 10:22:06.000000000 +0000 +++ libdbix-safe-perl-1.2.5/debian/copyright 2015-05-02 19:08:51.000000000 +0000 @@ -1,49 +1,49 @@ -Format-Specification: - http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=196 -Upstream-Maintainer: Greg Sabino Mullane -Upstream-Source: http://search.cpan.org/dist/DBIx-Safe/ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: DBIx-Safe +Upstream-Contact: Greg Sabino Mullane +Source: https://metacpan.org/release/DBIx-Safe Files: * -Copyright: Greg Sabino Mullane -License: BSD | Artistic | GPL-1+ +Copyright: 2005-2007, Greg Sabino Mullane +License: BSD-2-clause or Artistic or GPL-1+ Files: debian/* Copyright: 2009, Krzysztof Krzyzaniak (eloy) -License: Artistic | GPL-1+ - -License: BSD - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED - WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO - EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - OF SUCH DAMAGE. +License: Artistic or GPL-1+ +License: BSD-2-clause + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + . + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + . + THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED + WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO + EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING + IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY + OF SUCH DAMAGE. License: Artistic - This program is free software; you can redistribute it and/or modify - it under the terms of the Artistic License, which comes with Perl. - On Debian GNU/Linux systems, the complete text of the Artistic License - can be found in `/usr/share/common-licenses/Artistic' + This program is free software; you can redistribute it and/or modify + it under the terms of the Artistic License, which comes with Perl. + . + On Debian systems, the complete text of the Artistic License can be + found in `/usr/share/common-licenses/Artistic'. License: GPL-1+ - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 1, or (at your option) - any later version. - On Debian GNU/Linux systems, the complete text of the GNU General - Public License can be found in `/usr/share/common-licenses/GPL' + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 1, or (at your option) + any later version. + . + On Debian systems, the complete text of version 1 of the GNU General + Public License can be found in `/usr/share/common-licenses/GPL-1'. diff -Nru libdbix-safe-perl-1.2.5/debian/libdbix-safe-perl.docs libdbix-safe-perl-1.2.5/debian/libdbix-safe-perl.docs --- libdbix-safe-perl-1.2.5/debian/libdbix-safe-perl.docs 2015-05-07 10:22:06.000000000 +0000 +++ libdbix-safe-perl-1.2.5/debian/libdbix-safe-perl.docs 2015-05-02 19:08:51.000000000 +0000 @@ -1,2 +1 @@ TODO -README diff -Nru libdbix-safe-perl-1.2.5/debian/source/format libdbix-safe-perl-1.2.5/debian/source/format --- libdbix-safe-perl-1.2.5/debian/source/format 1970-01-01 00:00:00.000000000 +0000 +++ libdbix-safe-perl-1.2.5/debian/source/format 2015-05-02 19:08:51.000000000 +0000 @@ -0,0 +1 @@ +3.0 (quilt) diff -Nru libdbix-safe-perl-1.2.5/debian/watch libdbix-safe-perl-1.2.5/debian/watch --- libdbix-safe-perl-1.2.5/debian/watch 2015-05-07 10:22:06.000000000 +0000 +++ libdbix-safe-perl-1.2.5/debian/watch 2015-05-02 19:08:51.000000000 +0000 @@ -1,2 +1,2 @@ version=3 -http://search.cpan.org/dist/DBIx-Safe/ .*/DBIx-Safe-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ +https://metacpan.org/release/DBIx-Safe .*/DBIx-Safe-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ diff -Nru libdbix-safe-perl-1.2.5/Safe.pm.html libdbix-safe-perl-1.2.5/Safe.pm.html --- libdbix-safe-perl-1.2.5/Safe.pm.html 2015-05-07 10:22:06.000000000 +0000 +++ libdbix-safe-perl-1.2.5/Safe.pm.html 2007-10-15 18:38:37.000000000 +0000 @@ -4,15 +4,13 @@ DBIx::Safe - Safer access to your database through a DBI database handle - + - - -

+ - -
-
+


@@ -90,7 +86,7 @@ a wrapper to the database, by only allowing through the commands you tell it to. It filters all things related to the database handle - methods and attributes.

The typical usage is for your application to create a database handle via a normal -DBI call to new(), then pass that to DBIx::Safe->new(), which will return you a +DBI call to new(), then pass that to DBIx::Safe->new(), which will return you a DBIx::Safe object. After specifying exactly what is and what is not allowed, you can pass the object to the untrusted application. The object will act very similar to a DBI database handle, and in most cases can be used interchangeably.

@@ -121,15 +117,15 @@

Deciding what attributes to allow

Database handle attributes are controlled by a single list of allowed keys. If the key is allowed, the underlying database handle value is returned or changed (or both). -Note that the attribute "AutoCommit" is never allowed to be changed.

+Note that the attribute ``AutoCommit'' is never allowed to be changed.

Methods

new()

-

Creates a new DBIx::Safe object. Requires a mandatory "dbh" argument containing an active database -handle. Optional arguments are "allow_command", "allow_regex", "deny_regex", and "allow_attribute".

+

Creates a new DBIx::Safe object. Requires a mandatory ``dbh'' argument containing an active database +handle. Optional arguments are ``allow_command'', ``allow_regex'', ``deny_regex'', and ``allow_attribute''.

allow_command()

@@ -152,7 +148,7 @@

deny_regex()

-

Specifies regular expressions which are NOT allowed to run. Arguments and return the same as allow_regex().

+

Specifies regular expressions which are NOT allowed to run. Arguments and return the same as allow_regex().

undeny regex()

diff -Nru libdbix-safe-perl-1.2.5/t/02perlcritic.t libdbix-safe-perl-1.2.5/t/02perlcritic.t --- libdbix-safe-perl-1.2.5/t/02perlcritic.t 2015-05-07 10:22:06.000000000 +0000 +++ libdbix-safe-perl-1.2.5/t/02perlcritic.t 2007-10-15 18:04:54.000000000 +0000 @@ -36,3 +36,13 @@ plan tests => 1; Test::Perl::Critic->import( -profile => $PROFILE ); critic_ok($CODE); +#all_critic_ok(); + +__DATA__ + +plan tests => 1; +my $critic = Perl::Critic->new(-profile => $PROFILE); +my @problems = $critic->critique($CODE); +is(@problems, 0, "Passed Perl::Critic run"); +use Data::Dumper; +