Skip to content

Commit

Permalink
release preparation
Browse files Browse the repository at this point in the history
  • Loading branch information
und3f committed Sep 2, 2024
1 parent f1a11df commit 383281a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
This file documents the revision history for Perl extension Protocol::Redis

1.0020 03.09.2024 00:00:00
- Protocol::Redis implementation should fail on instantiating with unknown version (Grinnz)

1.0011 25.12.2019 00:00:00
- Fix improper integer value in protocol test (Grinnz)

Expand Down
9 changes: 4 additions & 5 deletions README.pod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Protocol::Redis - Redis protocol parser/encoder with asynchronous capabilities.
=head1 SYNOPSIS

use Protocol::Redis;
my $redis = Protocol::Redis->new(api => 1) or die "API v1 not supported";
my $redis = Protocol::Redis->new(api => 1);

$redis->parse("+foo\r\n");

Expand Down Expand Up @@ -42,11 +42,10 @@ should specify API version during Protocol::Redis construction.

=head2 C<new>

my $redis = Protocol::Redis->new(api => 1)
or die "API v1 not supported";
my $redis = Protocol::Redis->new(api => 1);

Construct Protocol::Redis object with specific API version support.
If specified API version not supported constructor returns undef.
If specified API version not supported constructor should raise an exception.
Client libraries should always specify API version.

=head2 C<parse>
Expand Down Expand Up @@ -124,7 +123,7 @@ Yaroslav Korshak (yko)

=head1 COPYRIGHT AND LICENSE

Copyright (C) 2011-2019, Sergey Zasenko.
Copyright (C) 2011-2024, Serhii Zasenko.

This program is free software, you can redistribute it and/or modify it under
the same terms as Perl 5.10.
Expand Down
9 changes: 4 additions & 5 deletions lib/Protocol/Redis.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use strict;
use warnings;
use 5.008_001;

our $VERSION = '1.0011';
our $VERSION = '1.0020';

require Carp;

Expand Down Expand Up @@ -170,7 +170,7 @@ Protocol::Redis - Redis protocol parser/encoder with asynchronous capabilities.
=head1 SYNOPSIS
use Protocol::Redis;
my $redis = Protocol::Redis->new(api => 1) or die "API v1 not supported";
my $redis = Protocol::Redis->new(api => 1);
$redis->parse("+foo\r\n");
Expand Down Expand Up @@ -207,11 +207,10 @@ should specify API version during Protocol::Redis construction.
=head2 C<new>
my $redis = Protocol::Redis->new(api => 1)
or die "API v1 not supported";
my $redis = Protocol::Redis->new(api => 1);
Construct Protocol::Redis object with specific API version support.
If specified API version not supported constructor returns undef.
If specified API version not supported constructor should raise an exception.
Client libraries should always specify API version.
=head2 C<parse>
Expand Down

0 comments on commit 383281a

Please sign in to comment.