commit perl-CGI-Session for openSUSE:Factory
Hello community, here is the log from the commit of package perl-CGI-Session for openSUSE:Factory checked in at Thu Mar 26 00:53:04 CET 2009. -------- --- perl-CGI-Session/perl-CGI-Session.changes 2009-01-20 16:08:29.000000000 +0100 +++ perl-CGI-Session/perl-CGI-Session.changes 2009-03-23 17:12:50.000000000 +0100 @@ -1,0 +2,9 @@ +Mon Mar 23 17:09:40 CET 2009 - anicka@suse.cz + +- update to 4.41 + * FIX: RT#43290. In CGI::Session::Driver::sqlite, ensure database + handle is still defined in DESTROY() before calling ping(). + * DOCUMENTATION: Add comments about using the header() method + to set the charset to 'utf-8'. + +------------------------------------------------------------------- calling whatdependson for head-i586 Old: ---- CGI-Session-4.40.tar.bz2 New: ---- CGI-Session-4.41.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-CGI-Session.spec ++++++ --- /var/tmp/diff_new_pack.n16651/_old 2009-03-26 00:50:45.000000000 +0100 +++ /var/tmp/diff_new_pack.n16651/_new 2009-03-26 00:50:45.000000000 +0100 @@ -1,5 +1,5 @@ # -# spec file for package perl-CGI-Session (Version 4.40) +# spec file for package perl-CGI-Session (Version 4.41) # # Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # @@ -19,7 +19,7 @@ Name: perl-CGI-Session -Version: 4.40 +Version: 4.41 Release: 1 Requires: perl = %{perl_version} AutoReqProv: on @@ -70,6 +70,12 @@ /var/adm/perl-modules/%{name} %changelog +* Mon Mar 23 2009 anicka@suse.cz +- update to 4.41 + * FIX: RT#43290. In CGI::Session::Driver::sqlite, ensure database + handle is still defined in DESTROY() before calling ping(). + * DOCUMENTATION: Add comments about using the header() method + to set the charset to 'utf-8'. * Tue Jan 20 2009 anicka@suse.cz - update to 4.40 * many fixes, improved documentation ++++++ CGI-Session-4.40.tar.bz2 -> CGI-Session-4.41.tar.bz2 ++++++ diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/CGI-Session-4.40/Changes new/CGI-Session-4.41/Changes --- old/CGI-Session-4.40/Changes 2009-01-03 02:15:15.000000000 +0100 +++ new/CGI-Session-4.41/Changes 2009-03-21 02:59:06.000000000 +0100 @@ -1,6 +1,11 @@ CGI::Session Change Log ===================================================================== +4.41 - Friday, March 20, 2009 + * FIX: RT#43290. In CGI::Session::Driver::sqlite, ensure database handle is still defined in DESTROY() + before calling ping(). For more detail see RT#35925 as discussed under V 4.31 below. + * DOCUMENTATION: Add comments about using the header() method to set the charset to 'utf-8'. + 4.40 - Friday, January 2, 2009 No code changes. * DOCUMENTATION: Clarify that users should use the mailing list @@ -417,4 +422,4 @@ * Bug in POD documentation is fixed (thanks to Graham Barr) -$Id: Changes 456 2009-01-03 01:16:43Z markstos $ +$Id: Changes 459 2009-03-21 02:00:17Z markstos $ diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/CGI-Session-4.40/lib/CGI/Session/Driver/sqlite.pm new/CGI-Session-4.41/lib/CGI/Session/Driver/sqlite.pm --- old/CGI-Session-4.40/lib/CGI/Session/Driver/sqlite.pm 2008-11-01 04:45:35.000000000 +0100 +++ new/CGI-Session-4.41/lib/CGI/Session/Driver/sqlite.pm 2009-03-21 02:59:06.000000000 +0100 @@ -1,6 +1,6 @@ package CGI::Session::Driver::sqlite; -# $Id: sqlite.pm 447 2008-11-01 03:46:08Z markstos $ +# $Id: sqlite.pm 459 2009-03-21 02:00:17Z markstos $ use strict; @@ -9,7 +9,7 @@ use DBI qw(SQL_BLOB); use Fcntl; -$CGI::Session::Driver::sqlite::VERSION = '4.38'; +$CGI::Session::Driver::sqlite::VERSION = '4.41'; sub init { my $self = shift; @@ -50,7 +50,7 @@ sub DESTROY { my $self = shift; - unless ( $self->{Handle} -> ping ) { + unless ( defined( $self->{Handle} ) && $self->{Handle} -> ping ) { $self->set_error(__PACKAGE__ . '::DESTROY(). Database handle has gone away'); return; } diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/CGI-Session-4.40/lib/CGI/Session.pm new/CGI-Session-4.41/lib/CGI/Session.pm --- old/CGI-Session-4.40/lib/CGI/Session.pm 2009-01-03 02:15:16.000000000 +0100 +++ new/CGI-Session-4.41/lib/CGI/Session.pm 2009-03-21 02:59:06.000000000 +0100 @@ -1,13 +1,13 @@ package CGI::Session; -# $Id: Session.pm 456 2009-01-03 01:16:43Z markstos $ +# $Id: Session.pm 459 2009-03-21 02:00:17Z markstos $ use strict; use Carp; use CGI::Session::ErrorHandler; @CGI::Session::ISA = qw( CGI::Session::ErrorHandler ); -$CGI::Session::VERSION = '4.40'; +$CGI::Session::VERSION = '4.41'; $CGI::Session::NAME = 'CGISESSID'; $CGI::Session::IP_MATCH = 0; @@ -455,7 +455,7 @@ return 1; } -# $Id: Session.pm 456 2009-01-03 01:16:43Z markstos $ +# $Id: Session.pm 459 2009-03-21 02:00:17Z markstos $ =pod @@ -1190,10 +1190,11 @@ =head2 header() -Replacement for L<CGI.pm|CGI>'s header() method. Without this method, you usually need to create a CGI::Cookie object and send it as part of the HTTP header: +A wrapper for L<CGI.pm|CGI>'s header() method. Calling this method +is equivalent to something like this: $cookie = CGI::Cookie->new(-name=>$session->name, -value=>$session->id); - print $cgi->header(-cookie=>$cookie); + print $cgi->header(-cookie=>$cookie, @_); You can minimize the above into: @@ -1202,9 +1203,10 @@ It will retrieve the name of the session cookie from C<$session->name()> which defaults to C<$CGI::Session::NAME>. If you want to use a different name for your session cookie, do something like following before creating session object: CGI::Session->name("MY_SID"); - $session = new CGI::Session(undef, $cgi, \%attrs); + $session = CGI::Session->new(undef, $cgi, \%attrs); -Now, $session->header() uses "MY_SID" as a name for the session cookie. +Now, $session->header() uses "MY_SID" as a name for the session cookie. For all additional options that can +be passed, see the C<header()> docs in L<CGI>. =head2 query() @@ -1346,6 +1348,13 @@ For details, see: http://rt.cpan.org/Public/Bug/Display.html?id=28516 (and ...id=21981). +Lastly, note that parameters such as 'utf-8' can be passed to the C<header()> method +when C<header()> is used to send a cookie. E.g.: + + print $session->header(charset => 'utf-8'); + +See L</header()> for a fuller discussion of the use of the C<header()> method in conjunction with cookies. + =head1 TRANSLATIONS This document is also available in Japanese. diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/CGI-Session-4.40/META.yml new/CGI-Session-4.41/META.yml --- old/CGI-Session-4.40/META.yml 2009-01-03 02:15:51.000000000 +0100 +++ new/CGI-Session-4.41/META.yml 2009-03-21 02:59:19.000000000 +0100 @@ -1,22 +1,15 @@ ---- #YAML:1.0 -name: CGI-Session -version: 4.40 -abstract: Persistent session data in CGI applications -license: ~ -author: - - Sherzod Ruzmetov <sherzodr@cpan.org> -generated_by: ExtUtils::MakeMaker version 6.44 -distribution_type: module -requires: +# http://module-build.sourceforge.net/META-spec.html +#XXXXXXX This is a prototype!!! It will change in the future!!! XXXXX# +name: CGI-Session +version: 4.41 +version_from: lib/CGI/Session.pm +installdirs: site +requires: CGI: 3.26 Data::Dumper: Digest::MD5: Scalar::Util: Test::More: -meta-spec: - url: http://module-build.sourceforge.net/META-spec-v1.3.html - version: 1.3 -no_index: - package: - - CGI::Session::Test::SimpleObjectClass +distribution_type: module +generated_by: ExtUtils::MakeMaker version 6.30_01 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@Hilbert.suse.de