From 623dce2f8a9b7ba144fd91ca7c1cc01eb45e313e Mon Sep 17 00:00:00 2001 From: Olaf Alders Date: Tue, 4 Feb 2014 10:38:58 -0500 Subject: [PATCH] Bumps version to 0.06 --- README | 12 ++++++++---- dist.ini | 7 ++++++- t/load.t | 2 +- t/procedural.t | 1 - 4 files changed, 15 insertions(+), 7 deletions(-) diff --git a/README b/README index d04cc55..7800e5e 100644 --- a/README +++ b/README @@ -3,7 +3,7 @@ NAME HTTP::Cookies VERSION - version 0.05 + version 0.06 SYNOPSIS # Use the functional interface for quick read-only access @@ -38,8 +38,8 @@ DESCRIPTION This module was created because messing around with HTTP::Cookies is non-trivial. HTTP::Cookies a very useful module, but using it is not always as easy and clean as it could be. For instance, if you want to - find a particular cookie, you can just ask for it by name. Instead, you - have to use a callback: + find a particular cookie, you can't just ask for it by name. Instead, + you have to use a callback: $cookie_jar->scan( \&callback ) @@ -87,7 +87,7 @@ DESCRIPTION This gives you fast access to a cookie without a callback, iterating over a list etc. It's good for quick hacks and you can dump the cookie - quite easily to inspect it's contents in a highly readable way: + quite easily to inspect its contents in a highly readable way: use Data::Printer; p $cookie; @@ -158,6 +158,10 @@ DESCRIPTION $monster->set_cookie( $cookie ); + delete_cookie( $cookie ) + Deletes a cookie and updates the cookie jar. Requires a + HTTP::CookieMonster::Cookie object. + get_cookie( $name ) Be aware that this method may surprise you by what it returns. When called in scalar context, get_cookie() returns the first cookie which diff --git a/dist.ini b/dist.ini index 1f93a7b..0ffb507 100644 --- a/dist.ini +++ b/dist.ini @@ -3,7 +3,7 @@ author = Olaf Alders license = Perl_5 copyright_holder = Olaf Alders copyright_year = 2012 -version = 0.05 +version = 0.06 [GatherDir] [PruneCruft] @@ -18,6 +18,9 @@ version = 0.05 [MakeMaker] [Manifest] +[NextRelease] +format = %-1v %{yyyy-MM-dd HH:mm:ss VVVV}d + [TestRelease] [ConfirmRelease] [UploadToCPAN] @@ -41,3 +44,5 @@ module = http://prepan.org/module/429En4oFdi [ModuleBuild] [PodWeaver] [CopyReadmeFromBuild] + +[@Git] diff --git a/t/load.t b/t/load.t index 0e0248c..13e061c 100644 --- a/t/load.t +++ b/t/load.t @@ -13,7 +13,7 @@ my $serializer = Data::Serializer->new; my $jar = $serializer->retrieve( 't/cookie_jar.txt' ); my $obj = HTTP::CookieMonster->new( cookie_jar => $jar ); -ok ( $obj, "can create object with 2 args" ); +ok( $obj, "can create object with 2 args" ); my $monster = HTTP::CookieMonster->new( $jar ); ok( $monster, "got a monster" ); diff --git a/t/procedural.t b/t/procedural.t index 99ea1ac..81654b8 100644 --- a/t/procedural.t +++ b/t/procedural.t @@ -5,7 +5,6 @@ use warnings; use Test::Most; -use Data::Printer; use Data::Serializer; use HTTP::CookieMonster qw( cookies );