Skip to content

Instantly share code, notes, and snippets.

View clkao's full-sized avatar

Chia-liang Kao clkao

View GitHub Profile
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
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
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 } );
[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
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'
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-Response/cookie.t ................... 1/?
# Failed test at t/Plack-Response/cookie.t line 20.
# 'bar=xxx%20yyy; expires=¤­, 29- 1-2010 09:24:28 GMT'
# doesn't match '(?-xism:bar=xxx%20yyy; expires=\w+, \d+-\w+-\d+ \d\d:\d\d:\d\d GMT)'
# Looks like you failed 1 test of 2.
commit bef3ee559c86026c74c1bf935b0fc97819166198
Author: Chia-liang Kao <[email protected]>
Date: Wed Jan 20 14:08:10 2010 +0800
Fix Moose::Meta::Method pod that mentioned Class::MOP::Class.
diff --git a/lib/Moose/Meta/Method.pm b/lib/Moose/Meta/Method.pm
index c34c1fc..d864e2b 100644
--- a/lib/Moose/Meta/Method.pm
+++ b/lib/Moose/Meta/Method.pm
package Sub::Chained;
use Moose;
sub chained {
__PACKAGE__->new();
}
sub AUTOLOAD {
my $self = shift;
my $name = our $AUTOLOAD;
sync.github-miyagawa.into=/Users/clkao/git/github/miyagawa
sync.github-miyagawa.github=miyagawa
....
data-model-tutorial [ Clone failed! ]
...trying again, anonymously [ Clone failed! ]