Skip to content

Commit 383281a

Browse files
committed
release preparation
1 parent f1a11df commit 383281a

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

Changes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
This file documents the revision history for Perl extension Protocol::Redis
22

3+
1.0020 03.09.2024 00:00:00
4+
- Protocol::Redis implementation should fail on instantiating with unknown version (Grinnz)
5+
36
1.0011 25.12.2019 00:00:00
47
- Fix improper integer value in protocol test (Grinnz)
58

README.pod

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Protocol::Redis - Redis protocol parser/encoder with asynchronous capabilities.
55
=head1 SYNOPSIS
66

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

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

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

4343
=head2 C<new>
4444

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

4847
Construct Protocol::Redis object with specific API version support.
49-
If specified API version not supported constructor returns undef.
48+
If specified API version not supported constructor should raise an exception.
5049
Client libraries should always specify API version.
5150

5251
=head2 C<parse>
@@ -124,7 +123,7 @@ Yaroslav Korshak (yko)
124123

125124
=head1 COPYRIGHT AND LICENSE
126125

127-
Copyright (C) 2011-2019, Sergey Zasenko.
126+
Copyright (C) 2011-2024, Serhii Zasenko.
128127

129128
This program is free software, you can redistribute it and/or modify it under
130129
the same terms as Perl 5.10.

lib/Protocol/Redis.pm

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use strict;
44
use warnings;
55
use 5.008_001;
66

7-
our $VERSION = '1.0011';
7+
our $VERSION = '1.0020';
88

99
require Carp;
1010

@@ -170,7 +170,7 @@ Protocol::Redis - Redis protocol parser/encoder with asynchronous capabilities.
170170
=head1 SYNOPSIS
171171
172172
use Protocol::Redis;
173-
my $redis = Protocol::Redis->new(api => 1) or die "API v1 not supported";
173+
my $redis = Protocol::Redis->new(api => 1);
174174
175175
$redis->parse("+foo\r\n");
176176
@@ -207,11 +207,10 @@ should specify API version during Protocol::Redis construction.
207207
208208
=head2 C<new>
209209
210-
my $redis = Protocol::Redis->new(api => 1)
211-
or die "API v1 not supported";
210+
my $redis = Protocol::Redis->new(api => 1);
212211
213212
Construct Protocol::Redis object with specific API version support.
214-
If specified API version not supported constructor returns undef.
213+
If specified API version not supported constructor should raise an exception.
215214
Client libraries should always specify API version.
216215
217216
=head2 C<parse>

0 commit comments

Comments
 (0)