Skip to content

Instantly share code, notes, and snippets.

t/14-groups.t (Wstat: 65280 Tests: 162 Failed: 7)
Failed tests: 152-154, 156-157, 159, 161
Non-zero exit status: 255
Parse errors: Bad plan. You planned 206 tests but ran 162.
t/44-encodings.t (Wstat: 2816 Tests: 320 Failed: 11)
Failed tests: 40-42, 44-46, 49-51, 300-301
Non-zero exit status: 11
t/75-imap.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 133 tests but ran 0.
t/Plack-Handler/fcgi_client.t ......... 12/? Use of uninitialized value $stdout in pattern match (m//) at /Users/clkao/git/Plack/lib/Plack/App/FCGIDispatcher.pm line 46, <$input> line 1.
Use of uninitialized value $stdout in concatenation (.) or string at /Users/clkao/git/Plack/lib/Plack/App/FCGIDispatcher.pm line 47, <$input> line 1.
Can't call method "print" on an undefined value at /Users/clkao/git/Plack/lib/Plack/Util.pm line 124, <$input> line 1.
t/Plack-Handler/fcgi_client.t ......... 19/?
# Failed test at /Users/clkao/perl5.10/lib/5.10.1/Test/Builder.pm line 893.
# got: '500'
# expected: '200'
[clkao@mtl-2:Plack clkao (master)]$ prove -lv t/Plack-Handler/fcgi_client.t
t/Plack-Handler/fcgi_client.t ..
# GET
ok 1
ok 2
ok 3
# POST
ok 4
ok 5
ok 6
diff --git a/lib/Jifty/JSON.pm b/lib/Jifty/JSON.pm
index 711b0b3..35d020c 100644
--- a/lib/Jifty/JSON.pm
+++ b/lib/Jifty/JSON.pm
@@ -63,7 +63,7 @@ sub decode_json {
}
sub encode_json {
- JSON::to_json( $_[0], { utf8 => 1, allow_nonref => 1, %{$_[1] || {}} } );
+ JSON::to_json( $_[0], { utf8 => 1, allow_nonref => 1, %{$_[1] || {}}, allow_blessed => 1 } );
mtl-2:Plack clkao$ perl -I ../Plack-Server-AnyEvent/lib -Ilib benchmarks/ab.pl
Testing implementations: AnyEvent, Standalone, Standalone, Nomo
app: eg/dot-psgi/Hello.psgi
ab: ab -t 1 -c 10 -k
URL: http://127.0.0.1/
-- server: AnyEvent
Finished 108 requests
Requests per second: 106.55 [#/sec] (mean)
-- server: Standalone
Testing implementations: HTTP::Server::PSGI, HTTP::Server::PSGI, Twiggy, Starman
app: eg/dot-psgi/Hello.psgi
ab: ab -t 1 -c 10 -k
URL: http://127.0.0.1/
-- server: HTTP::Server::PSGI
Finished 1863 requests
Requests per second: 1862.76 [#/sec] (mean)
-- server: HTTP::Server::PSGI (workers=10)
Finished 2784 requests
[Fri Feb 26 20:44:29 2010] [warning]: Use of uninitialized value in pattern match (m//) at /Users/clkao/work/bps/rt-3.8/local/plugins/RT-Extension-History-Folded/html/Ticket/Elements/ShowMessageStanza line 21, <GEN255> line 33. (/Users/clkao/work/bps/rt-3.8/local/plugins/RT-Extension-History-Folded/html/Ticket/Elements/ShowMessageStanza:21)
my $bus = AnyMQ->new;
builder {
enable "Static", path => sub { s!^/static/!! }, root => 'static';
enable "Hippie", root => '/_hippie',
init => sub {
my $room = shift;
my $h = shift;
my $sub = $bus->new_listener($h->id);
$sub->subscribe($bus->topic($room));
$sub->poll(sub { $h->send_msg($_[0]) });
my $bus = AnyMQ->new;
builder {
enable "Static", path => sub { s!^/static/!! }, root => 'static';
enable "Hippie",
root => '/_hippie',
handler => sub {
my $env = shift;
my $room = $env->{'hippie.args'};
my $topic = $bus->topic($room);
use Plack::Builder;
builder {
mount '/_hippie' => sub {
my $env= shift; warn "hi hippie" ;
return [ '200', [ 'Content-Type' => 'text/plain' ], [ "Hippie" ] ]
};
sub { [ '200', [ 'Content-Type' => 'text/plain' ], [ "none hippie" ] ] };
}