Skip to content
This repository
Browse code

Cleanup

  • Loading branch information...
commit f6f77be1cf9ca5c92ecd9203fe4913a1074aea03 1 parent dad5e79
Viacheslav Tykhanovskyi authored
5 Changes
... ... @@ -1,6 +1,9 @@
1 1 Revision history for perl module PocketIO
2 2
3   -0.13 2012-01-28
  3 +0.14 2012-02-23
  4 +
  5 + - Fixed exception handling bugs (Jason May)
  6 + - Provide the status code when throwing a websocket exception (Jason May)
4 7
5 8 0.12 2012-01-25
6 9
2  Makefile.PL
@@ -18,7 +18,7 @@ requires 'Scalar::Util' => '0';
18 18
19 19 requires 'AnyEvent' => '0';
20 20 requires 'JSON' => '0';
21   -requires 'Protocol::SocketIO' => '0';
  21 +requires 'Protocol::SocketIO' => '0.04';
22 22 requires 'Protocol::WebSocket' => '0.009006';
23 23
24 24 requires 'Test::More' => '0';
4 lib/PocketIO.pm
@@ -3,7 +3,7 @@ package PocketIO;
3 3 use strict;
4 4 use warnings;
5 5
6   -our $VERSION = '0.13';
  6 +our $VERSION = '0.14';
7 7
8 8 use overload '&{}' => sub { shift->to_app(@_) }, fallback => 1;
9 9
@@ -335,6 +335,8 @@ Uwe Voelker
335 335
336 336 Oskari Okko Ojala
337 337
  338 +Jason May
  339 +
338 340 =head1 AUTHOR
339 341
340 342 Viacheslav Tykhanovskyi, C<vti@cpan.org>.
11 t/conn/parsing.t
@@ -3,7 +3,7 @@ use warnings;
3 3 use utf8;
4 4 use Encode;
5 5
6   -use Test::More tests => 10;
  6 +use Test::More tests => 6;
7 7
8 8 use_ok('PocketIO::Connection');
9 9
@@ -24,12 +24,3 @@ is_deeply $output => {foo => 'bar'};
24 24
25 25 $conn->parse_message('4:1::{"foo":"' . encode_utf8('привет') . '"}');
26 26 is_deeply $output => {foo => 'привет'};
27   -
28   -# FIXME private methods testing? are you nuts?!!!
29   -is $conn->_build_message('foo') => '3:::foo';
30   -is $conn->_build_message({foo => 'bar'}) => '4:::{"foo":"bar"}';
31   -
32   -is $conn->_build_message('привет') => '3:::'
33   - . encode_utf8('привет');
34   -is $conn->_build_message({foo => 'привет'}) => '4:::{"foo":"'
35   - . encode_utf8('привет') . '"}';

0 comments on commit f6f77be

Please sign in to comment.
Something went wrong with that request. Please try again.