Skip to content

Commit 8580603

Browse files
committed
Light fixes in code and POD
1 parent 68cc2b0 commit 8580603

File tree

4 files changed

+25
-19
lines changed

4 files changed

+25
-19
lines changed

README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
AnyEvent-RipeRedis version 0.28
1+
AnyEvent-RipeRedis version 0.29_01
22
======================
33

44
INSTALLATION

lib/AnyEvent/RipeRedis.pm

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use strict;
55
use warnings;
66
use base qw( Exporter );
77

8-
our $VERSION = '0.28';
8+
our $VERSION = '0.29_01';
99

1010
use AnyEvent::RipeRedis::Error;
1111

@@ -20,7 +20,7 @@ our %ERROR_CODES;
2020
BEGIN {
2121
%ERROR_CODES = %AnyEvent::RipeRedis::Error::ERROR_CODES;
2222
our @EXPORT_OK = keys %ERROR_CODES;
23-
our %EXPORT_TAGS = ( err_codes => \@EXPORT_OK, );
23+
our %EXPORT_TAGS = ( err_codes => \@EXPORT_OK );
2424
}
2525

2626
use constant {
@@ -1215,7 +1215,7 @@ an error messages to C<STDERR>.
12151215
To execute the command you must call specific method with corresponding name.
12161216
The reply to the command is passed to the callback in first argument. If any
12171217
error occurred during the command execution, the error object is passed to the
1218-
callback in second argument. Error object is an instance of the class
1218+
callback in second argument. Error object is the instance of the class
12191219
L<AnyEvent::RipeRedis::Error>.
12201220
12211221
The command callback is optional. If it is not specified and any error
@@ -1382,7 +1382,7 @@ C<UNSUBSCRIBE>, C<PUNSUBSCRIBE> and C<QUIT> commands.
13821382
The detailed information about Redis Pub/Sub can be found here:
13831383
L<http://redis.io/topics/pubsub>
13841384
1385-
=head2 subscribe( @channels, ( $cb | \%cbs ) )
1385+
=head2 subscribe( @channels, ( $cb->( $msg, $channel ) | \%cbs ) )
13861386
13871387
Subscribes the client to the specified channels.
13881388
@@ -1428,7 +1428,7 @@ C<on_message> callback.
14281428
}
14291429
);
14301430
1431-
=head2 psubscribe( @patterns, ( $cb | \%cbs ) )
1431+
=head2 psubscribe( @patterns, ( $cb->( $msg, $pattern, $channel ) | \%cbs ) )
14321432
14331433
Subscribes the client to the given patterns. See C<subscribe()> method for
14341434
details.
@@ -1763,52 +1763,52 @@ L<http://redis.io/commands/info>
17631763
17641764
=head2 host()
17651765
1766-
Get current host of the client.
1766+
Gets current host of the client.
17671767
17681768
=head2 port()
17691769
1770-
Get current port of the client.
1770+
Gets current port of the client.
17711771
17721772
=head2 select( $index, [, $cb->( $reply, $err ) ] )
17731773
17741774
Selects the database by numeric index.
17751775
17761776
=head2 database()
17771777
1778-
Get selected database index.
1778+
Gets selected database index.
17791779
17801780
=head2 utf8( [ $boolean ] )
17811781
17821782
Enables or disables UTF-8 mode.
17831783
17841784
=head2 connection_timeout( [ $fractional_seconds ] )
17851785
1786-
Get or set the C<connection_timeout> of the client. The C<undef> value resets
1786+
Gets or sets the C<connection_timeout> of the client. The C<undef> value resets
17871787
the C<connection_timeout> to default value.
17881788
17891789
=head2 read_timeout( [ $fractional_seconds ] )
17901790
1791-
Get or set the C<read_timeout> of the client.
1791+
Gets or sets the C<read_timeout> of the client.
17921792
17931793
=head2 reconnect( [ $boolean ] )
17941794
17951795
Enables or disables reconnection mode of the client.
17961796
17971797
=head2 reconnect_interval( [ $fractional_seconds ] )
17981798
1799-
Get or set C<reconnect_interval> of the client.
1799+
Gets or sets C<reconnect_interval> of the client.
18001800
18011801
=head2 on_connect( [ $callback ] )
18021802
1803-
Get or set the C<on_connect> callback.
1803+
Gets or sets the C<on_connect> callback.
18041804
18051805
=head2 on_disconnect( [ $callback ] )
18061806
1807-
Get or set the C<on_disconnect> callback.
1807+
Gets or sets the C<on_disconnect> callback.
18081808
18091809
=head2 on_error( [ $callback ] )
18101810
1811-
Get or set the C<on_error> callback.
1811+
Gets or sets the C<on_error> callback.
18121812
18131813
=head1 SEE ALSO
18141814

lib/AnyEvent/RipeRedis/Error.pm

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

7-
our $VERSION = '0.28';
7+
our $VERSION = '0.29_01';
88

99
our %ERROR_CODES = (
1010
E_CANT_CONN => 1,
@@ -90,10 +90,15 @@ Get error code.
9090
9191
L<AnyEvent::RipeRedis>
9292
93+
=head1 AUTHOR
94+
95+
Eugene Ponizovsky, E<lt>[email protected]E<gt>
96+
97+
Sponsored by SMS Online, E<lt>[email protected]E<gt>
98+
9399
=head1 COPYRIGHT AND LICENSE
94100
95-
Copyright (c) 2012-2016, Eugene Ponizovsky, E<lt>[email protected]E<gt>.
96-
All rights reserved.
101+
Copyright (c) 2012-2016, Eugene Ponizovsky, SMS Online. All rights reserved.
97102
98103
This module is free software; you can redistribute it and/or modify it under
99104
the same terms as Perl itself.

t/02-accessors.t

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use 5.008000;
22
use strict;
33
use warnings;
44

5-
use Test::More tests => 37;
5+
use Test::More tests => 38;
66
use AnyEvent::RipeRedis qw( :err_codes );
77
use AnyEvent::RipeRedis::Error;
88

@@ -33,6 +33,7 @@ can_ok( $redis, 'connection_timeout' );
3333
can_ok( $redis, 'read_timeout' );
3434
can_ok( $redis, 'utf8' );
3535
can_ok( $redis, 'reconnect' );
36+
can_ok( $redis, 'reconnect_interval' );
3637
can_ok( $redis, 'on_connect' );
3738
can_ok( $redis, 'on_disconnect' );
3839
can_ok( $redis, 'on_error' );

0 commit comments

Comments
 (0)