Browse files

Replace kyoto.jpg with medium size baybridge.jpg to trim down the tar…

…ball size
  • Loading branch information...
1 parent a0516a6 commit c53fd2c05f993efde2a1595f6ebf1c5af306ae91 @miyagawa miyagawa committed Apr 16, 2010
View
4 MANIFEST
@@ -129,12 +129,12 @@ lib/Plack/Test/Suite.pm
lib/Plack/Util.pm
lib/Plack/Util/Accessor.pm
Makefile.PL
-MANIFEST
+MANIFEST This list of files
META.yml
README
scripts/plackup
+share/baybridge.jpg
share/face.jpg
-share/kyoto.jpg
t/00_compile.t
t/FCGIUtils.pm
t/HTTP-Message-PSGI/utf8_req.t
View
2 eg/dot-psgi/image.psgi
@@ -1,5 +1,5 @@
use File::Basename;
-my $path = $ENV{PSGI_IMAGE_FILE} || dirname(__FILE__) . "/../../share/kyoto.jpg";
+my $path = $ENV{PSGI_IMAGE_FILE} || dirname(__FILE__) . "/../../share/baybridge.jpg";
my $handler = sub {
open my $fh, "<:raw", $path or die $!;
return [ 200, [ "Content-Type" => "image/jpeg", "X-Sendfile" => $path, "Content-Length" => -s $fh ], $fh ];
View
8 lib/Plack/Test/Suite.pm
@@ -161,15 +161,15 @@ our @TEST = (
'bigger file',
sub {
my $cb = shift;
- my $res = $cb->(GET "http://127.0.0.1/kyoto.jpg");
+ my $res = $cb->(GET "http://127.0.0.1/baybridge.jpg");
is $res->code, 200;
is $res->header('content_type'), 'image/jpeg';
- is length $res->content, 2397701;
- is Digest::MD5::md5_hex($res->content), '9c6d7249a77204a88be72e9b2fe279e8';
+ is length $res->content, 79838;
+ is Digest::MD5::md5_hex($res->content), '983726ae0e4ce5081bef5fb2b7216950';
},
sub {
my $env = shift;
- open my $fh, '<', "$share_dir/kyoto.jpg";
+ open my $fh, '<', "$share_dir/baybridge.jpg";
binmode $fh;
return [
200,
View
BIN share/baybridge.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN share/kyoto.jpg
Deleted file not rendered
View
4 t/Plack-Middleware/content_length.t
@@ -10,11 +10,11 @@ my @tests = (
},
{
app => sub {
- open my $fh, "<", "share/kyoto.jpg";
+ open my $fh, "<", "share/baybridge.jpg";
[ 200, [ 'Content-Type' => 'image/jpeg' ], $fh ];
},
env => { REQUEST_METHOD => 'GET' },
- headers => [ 'Content-Type' => 'image/jpeg', 'Content-Length' => 2397701 ],
+ headers => [ 'Content-Type' => 'image/jpeg', 'Content-Length' => 79838 ],
},
{
app => sub {
View
4 t/Plack-Request/upload-large.t
@@ -5,7 +5,7 @@ use Plack::Request;
use Plack::Test;
use HTTP::Request::Common;
-my $file = "share/kyoto.jpg";
+my $file = "share/baybridge.jpg";
my @backends = qw( Server MockHTTP );
sub flip_backend { $Plack::Test::Impl = shift @backends }
@@ -14,7 +14,7 @@ my $app = sub {
my $req = Plack::Request->new(shift);
is $req->uploads->{image}->size, -s $file;
is $req->uploads->{image}->content_type, 'image/jpeg';
- is $req->uploads->{image}->basename, 'kyoto.jpg';
+ is $req->uploads->{image}->basename, 'baybridge.jpg';
$req->new_response(200)->finalize;
};

0 comments on commit c53fd2c

Please sign in to comment.