From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS6939 64.71.128.0/18 X-Spam-Status: No, score=-1.9 required=3.0 tests=AWL,BAYES_00, MSGID_FROM_MTA_HEADER shortcircuit=no autolearn=unavailable version=3.3.2 Path: news.gmane.org!not-for-mail From: Eric Wong Newsgroups: gmane.comp.lang.ruby.raindrops.general Subject: Re: Raindrops::Middleware::Proxy claims to respond to #body when it does not? Date: Fri, 18 May 2012 00:07:19 +0000 Message-ID: <20120518000719.GA24152@dcvr.yhbt.net> References: <20120517231806.GA16830@dcvr.yhbt.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1337299653 17915 80.91.229.3 (18 May 2012 00:07:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 18 May 2012 00:07:33 +0000 (UTC) To: raindrops@librelist.org Original-X-From: raindrops@librelist.org Fri May 18 02:07:32 2012 Return-path: Envelope-to: gclrrg-raindrops@m.gmane.org List-Archive: List-Help: List-Id: List-Post: List-Subscribe: List-Unsubscribe: Precedence: list Original-Sender: raindrops@librelist.org Xref: news.gmane.org gmane.comp.lang.ruby.raindrops.general:67 Archived-At: Received: from zedshaw.xen.prgmr.com ([64.71.167.205]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SVAjD-0004fj-LJ for gclrrg-raindrops@m.gmane.org; Fri, 18 May 2012 02:07:31 +0200 Received: from zedshaw.xen.prgmr.com (localhost [IPv6:::1]) by zedshaw.xen.prgmr.com (Postfix) with ESMTP id 2A35A21DB9F for ; Fri, 18 May 2012 00:15:06 +0000 (UTC) Ben Somers wrote: > Would it make sense to take a second hint from Rack::BodyProxy and add > a #method_missing to Raindrops::Middleware::Proxy that delegates to > its body? I think that's the answer to my concern about an unintuitive > #respond_to? method. > > http://rubydoc.info/github/rack/rack/master/Rack/BodyProxy:method_missing Yes, it makes sense. Care to send a patch + test? Otherwise I'll get to it tonight.