Skip to content

Commit

Permalink
Checking in changes prior to tagging of version 1.00.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tokuhirom committed Jul 28, 2014
1 parent 07ccd4a commit 8c0caf9
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 27 deletions.
33 changes: 13 additions & 20 deletions Build.PL
Expand Up @@ -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',
Expand All @@ -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';
Expand All @@ -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";
}

16 changes: 16 additions & 0 deletions Changes
Expand Up @@ -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.
Expand Down
9 changes: 4 additions & 5 deletions META.json
Expand Up @@ -4,7 +4,7 @@
"tokuhirom <tokuhirom@gmail.com>"
],
"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"
],
Expand All @@ -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"
}
Expand Down Expand Up @@ -73,7 +72,7 @@
"web" : "https://github.com/tokuhirom/HTTP-Session2"
}
},
"version" : "0.05",
"version" : "1.00",
"x_contributors" : [
"magai <xxmagai@gmail.com>"
]
Expand Down
2 changes: 1 addition & 1 deletion lib/HTTP/Session2.pm
Expand Up @@ -3,7 +3,7 @@ use 5.008005;
use strict;
use warnings;

our $VERSION = "0.05";
our $VERSION = "1.00";

1;
__END__
Expand Down
2 changes: 1 addition & 1 deletion lib/HTTP/Session2/ServerStore.pm
Expand Up @@ -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;
Expand Down

0 comments on commit 8c0caf9

Please sign in to comment.