File tree Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 1
1
This file documents the revision history for Perl extension Protocol::Redis
2
2
3
+ 1.0020 03.09.2024 00:00:00
4
+ - Protocol::Redis implementation should fail on instantiating with unknown version (Grinnz)
5
+
3
6
1.0011 25.12.2019 00:00:00
4
7
- Fix improper integer value in protocol test (Grinnz)
5
8
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ Protocol::Redis - Redis protocol parser/encoder with asynchronous capabilities.
5
5
=head1 SYNOPSIS
6
6
7
7
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);
9
9
10
10
$redis->parse("+foo\r\n");
11
11
@@ -42,11 +42,10 @@ should specify API version during Protocol::Redis construction.
42
42
43
43
=head2 C<new>
44
44
45
- my $redis = Protocol::Redis->new(api => 1)
46
- or die "API v1 not supported";
45
+ my $redis = Protocol::Redis->new(api => 1);
47
46
48
47
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 .
50
49
Client libraries should always specify API version.
51
50
52
51
=head2 C<parse>
@@ -124,7 +123,7 @@ Yaroslav Korshak (yko)
124
123
125
124
=head1 COPYRIGHT AND LICENSE
126
125
127
- Copyright (C) 2011-2019, Sergey Zasenko.
126
+ Copyright (C) 2011-2024, Serhii Zasenko.
128
127
129
128
This program is free software, you can redistribute it and/or modify it under
130
129
the same terms as Perl 5.10.
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ use strict;
4
4
use warnings;
5
5
use 5.008_001;
6
6
7
- our $VERSION = ' 1.0011 ' ;
7
+ our $VERSION = ' 1.0020 ' ;
8
8
9
9
require Carp;
10
10
@@ -170,7 +170,7 @@ Protocol::Redis - Redis protocol parser/encoder with asynchronous capabilities.
170
170
=head1 SYNOPSIS
171
171
172
172
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);
174
174
175
175
$redis->parse("+foo\r\n");
176
176
@@ -207,11 +207,10 @@ should specify API version during Protocol::Redis construction.
207
207
208
208
=head2 C<new >
209
209
210
- my $redis = Protocol::Redis->new(api => 1)
211
- or die "API v1 not supported";
210
+ my $redis = Protocol::Redis->new(api => 1);
212
211
213
212
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 .
215
214
Client libraries should always specify API version.
216
215
217
216
=head2 C<parse >
You can’t perform that action at this time.
0 commit comments