From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.142.191.1 with SMTP id o1cs20411wff; Sat, 5 Dec 2009 12:21:07 -0800 (PST) Received: from mr.google.com ([10.90.124.10]) by 10.90.124.10 with SMTP id w10mr5593421agc.6.1260044466904 (num_hops = 1); Sat, 05 Dec 2009 12:21:06 -0800 (PST) Received: by 10.90.124.10 with SMTP id w10mr657499agc.6.1260044465378; Sat, 05 Dec 2009 12:21:05 -0800 (PST) X-BeenThere: rack-devel@googlegroups.com Received: by 10.86.239.10 with SMTP id m10ls63312fgh.0.p; Sat, 05 Dec 2009 12:21:03 -0800 (PST) Received: by 10.86.170.38 with SMTP id s38mr57273fge.16.1260044463685; Sat, 05 Dec 2009 12:21:03 -0800 (PST) Received: by 10.204.13.70 with SMTP id b6mr141823bka.17.1260028300988; Sat, 05 Dec 2009 07:51:40 -0800 (PST) Received: by 10.204.13.70 with SMTP id b6mr141822bka.17.1260028300952; Sat, 05 Dec 2009 07:51:40 -0800 (PST) Return-Path: Received: from mail-fx0-f217.google.com (mail-fx0-f217.google.com [209.85.220.217]) by gmr-mx.google.com with ESMTP id 18si208952bwz.13.2009.12.05.07.51.39; Sat, 05 Dec 2009 07:51:39 -0800 (PST) Received-SPF: pass (google.com: domain of kevwil@gmail.com designates 209.85.220.217 as permitted sender) client-ip=209.85.220.217; Received: by mail-fx0-f217.google.com with SMTP id 9so3214063fxm.10 for ; Sat, 05 Dec 2009 07:51:39 -0800 (PST) MIME-Version: 1.0 Received: by 10.239.191.145 with SMTP id b17mr460429hbi.72.1260028299258; Sat, 05 Dec 2009 07:51:39 -0800 (PST) In-Reply-To: <2a8d4a710912042242i49e7385x17630050274e2ea9@mail.gmail.com> References: <683a886f0912041804p29185909j9abcb55c555e0f89@mail.gmail.com> <2a8d4a710912042242i49e7385x17630050274e2ea9@mail.gmail.com> Date: Sat, 5 Dec 2009 08:51:39 -0700 Message-ID: <683a886f0912050751o4528a89bxde7b48d15274422b@mail.gmail.com> Subject: Re: Rack-compatible server issues From: Kevin Williams To: rack-devel@googlegroups.com Reply-To: rack-devel@googlegroups.com Precedence: list Mailing-list: list rack-devel@googlegroups.com; contact rack-devel+owners@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: X-Thread-Url: http://groups.google.com/group/rack-devel/t/26d7532ef68e0e27 X-Message-Url: http://groups.google.com/group/rack-devel/msg/8c7d730b7909772f List-Unsubscribe: , List-Subscribe: , Content-Type: text/plain; charset=UTF-8 On Fri, Dec 4, 2009 at 11:42 PM, Matt Todd wrote: >> http://gist.github.com/249506 >> >> If I pass just the lambda, my server runs fine, but if I pass the >> whole builder-created app (any combination of middleware), I get one >> of the middleware classes returned from the #call(env) method. > > In that code, you're calling a use after the lambda... that lambda is > essentially disappearing. You should return that lambda. > If it's any value, I've never liked using the builder personally. > Matt That makes sense. I can't say I'm a big fan of Builder either, but I'll have to make it work for Rack apps that want to be created that way. I haven't even come close to making the URLMap work, either. The Rack docs say to run Rack::Lint before and after. Is that just an old statement, or is there a better way to run Lint? Kevin