From 8c0caf9d4637bcc23af38cfe95d27687d7f20344 Mon Sep 17 00:00:00 2001 From: Tokuhiro Matsuno Date: Mon, 28 Jul 2014 13:10:10 +0900 Subject: [PATCH] Checking in changes prior to tagging of version 1.00. Changelog diff is: diff --git Changes Changes index 548783b..e4f103f 100644 --- Changes +++ Changes @@ -2,6 +2,22 @@ Revision history for Perl extension HTTP-Session2 {{$NEXT}} +1.00 2014-07-28T04:09:47Z + + [INCOMPATIBLE CHANGE] + - I changed HMAC strategy on ServerSide mode. + Previous version uses + + hmac_hex(data: $session_id, key: $secret) + + New version is: + + hmac_hex(data: $secret, key: $session) + + This version is even secure. But, it's not a critical issue. + + I think this change won't break your code. + 0.05 2014-03-18T18:52:37Z - use Cookie::Baker for generating cookie string for Plack response object. --- Build.PL | 33 +++++++++++++------------------- Changes | 16 ++++++++++++++++ META.json | 9 ++++----- lib/HTTP/Session2.pm | 2 +- lib/HTTP/Session2/ServerStore.pm | 2 +- 5 files changed, 35 insertions(+), 27 deletions(-) diff --git a/Build.PL b/Build.PL index d6cb61b..5f32083 100644 --- a/Build.PL +++ b/Build.PL @@ -12,8 +12,6 @@ use utf8; use Module::Build; use File::Basename; use File::Spec; -use CPAN::Meta; -use CPAN::Meta::Prereqs; my %args = ( license => 'perl', @@ -34,7 +32,7 @@ my %args = ( test_files => ((-d '.git' || $ENV{RELEASE_TESTING}) && -d 'xt') ? 't/ xt/' : 't/', recursive_test_files => 1, - + ); if (-d 'share') { $args{share_dir} = 'share'; @@ -53,20 +51,15 @@ my $builder = Module::Build->subclass( )->new(%args); $builder->create_build_script(); -my $mbmeta = CPAN::Meta->load_file('MYMETA.json'); -my $meta = CPAN::Meta->load_file('META.json'); -my $prereqs_hash = CPAN::Meta::Prereqs->new( - $meta->prereqs -)->with_merged_prereqs( - CPAN::Meta::Prereqs->new($mbmeta->prereqs) -)->as_string_hash; -my $mymeta = CPAN::Meta->new( - { - %{$meta->as_struct}, - prereqs => $prereqs_hash - } -); -print "Merging cpanfile prereqs to MYMETA.yml\n"; -$mymeta->save('MYMETA.yml', { version => 1.4 }); -print "Merging cpanfile prereqs to MYMETA.json\n"; -$mymeta->save('MYMETA.json', { version => 2 }); +use File::Copy; + +print "cp META.json MYMETA.json\n"; +copy("META.json","MYMETA.json") or die "Copy failed(META.json): $!"; + +if (-f 'META.yml') { + print "cp META.yml MYMETA.yml\n"; + copy("META.yml","MYMETA.yml") or die "Copy failed(META.yml): $!"; +} else { + print "There is no META.yml... You may install this module from the repository...\n"; +} + diff --git a/Changes b/Changes index 548783b..e4f103f 100644 --- a/Changes +++ b/Changes @@ -2,6 +2,22 @@ Revision history for Perl extension HTTP-Session2 {{$NEXT}} +1.00 2014-07-28T04:09:47Z + + [INCOMPATIBLE CHANGE] + - I changed HMAC strategy on ServerSide mode. + Previous version uses + + hmac_hex(data: $session_id, key: $secret) + + New version is: + + hmac_hex(data: $secret, key: $session) + + This version is even secure. But, it's not a critical issue. + + I think this change won't break your code. + 0.05 2014-03-18T18:52:37Z - use Cookie::Baker for generating cookie string for Plack response object. diff --git a/META.json b/META.json index c757f3a..ae09304 100644 --- a/META.json +++ b/META.json @@ -4,7 +4,7 @@ "tokuhirom " ], "dynamic_config" : 0, - "generated_by" : "Minilla/v0.12.0, CPAN::Meta::Converter version 2.133380", + "generated_by" : "Minilla/v2.1.1, CPAN::Meta::Converter version 2.141520", "license" : [ "perl_5" ], @@ -28,15 +28,14 @@ "prereqs" : { "configure" : { "requires" : { - "CPAN::Meta" : "0", - "CPAN::Meta::Prereqs" : "0", "Module::Build" : "0.38" } }, "develop" : { "requires" : { "Test::CPAN::Meta" : "0", - "Test::MinimumVersion" : "0.10108", + "Test::MinimumVersion::Fast" : "0.04", + "Test::PAUSE::Permissions" : "0.04", "Test::Pod" : "1.41", "Test::Spellunker" : "v0.2.7" } @@ -73,7 +72,7 @@ "web" : "https://github.com/tokuhirom/HTTP-Session2" } }, - "version" : "0.05", + "version" : "1.00", "x_contributors" : [ "magai " ] diff --git a/lib/HTTP/Session2.pm b/lib/HTTP/Session2.pm index 3d90fb2..f0f5498 100644 --- a/lib/HTTP/Session2.pm +++ b/lib/HTTP/Session2.pm @@ -3,7 +3,7 @@ use 5.008005; use strict; use warnings; -our $VERSION = "0.05"; +our $VERSION = "1.00"; 1; __END__ diff --git a/lib/HTTP/Session2/ServerStore.pm b/lib/HTTP/Session2/ServerStore.pm index 020387f..0665ea1 100644 --- a/lib/HTTP/Session2/ServerStore.pm +++ b/lib/HTTP/Session2/ServerStore.pm @@ -4,7 +4,7 @@ use warnings; use utf8; use 5.008_001; -our $VERSION = "0.05"; +our $VERSION = "1.00"; use Carp (); use Digest::HMAC;