From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.86.59.13 with SMTP id h13cs444839fga; Tue, 2 Mar 2010 14:15:50 -0800 (PST) Received: by 10.224.108.135 with SMTP id f7mr3855886qap.248.1267568148787; Tue, 02 Mar 2010 14:15:48 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 4si14446258qwe.16.2010.03.02.14.15.48; Tue, 02 Mar 2010 14:15:48 -0800 (PST) Received-SPF: pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-talk-bounces@rubyforge.org; dkim=neutral (body hash did not verify) header.i=@gmail.com Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 006CC1858338; Tue, 2 Mar 2010 17:15:47 -0500 (EST) Received: from mail-pw0-f50.google.com (mail-pw0-f50.google.com [209.85.160.50]) by rubyforge.org (Postfix) with ESMTP id 701591858324 for ; Tue, 2 Mar 2010 17:10:17 -0500 (EST) Received: by pwi8 with SMTP id 8so447825pwi.23 for ; Tue, 02 Mar 2010 14:10:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:content-type:subject:from:to :in-reply-to:references:date:message-id:user-agent :content-transfer-encoding; bh=yS/ik58BVKoqbsT4VVQSiuGU+7x4UtM3ggN9rNofjYA=; b=oJkBcJccKsaQQB3a1GO/Ev/1itNa16zBEftEnfpbXnR+fG7lN/YgwykizeF/kSqEKF PW/h2wFAY2lQM3Z+zfH7o9T/QMI7XilO9AsDMIss9U3LhQfqNDpP+hmicMqDuwU5VLj5 V8mGCxFKIAWeiu5n1/N+8d7B+p9VLraDwLI0Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:subject:from:to:in-reply-to:references:date:message-id :user-agent:content-transfer-encoding; b=wxwFP7+4R0Xep4XwBi3TZcbAj67Ix99D4di/620R7paDjGkpH5VTPjj4J0Zjk/MR9Y yYTWfLIw+J0B0To9q9+Svx0vGgI0xV5osX7TKaQaAd7SeatBim3nySeD6ceDEpEDFOoK MIjgo9F91+LGeMYe+DLoxE1VkY6+/+hwJmP1o= Received: by 10.142.249.10 with SMTP id w10mr3791261wfh.207.1267567817443; Tue, 02 Mar 2010 14:10:17 -0800 (PST) Received: from localhost (S0106001bfcff80bd.gv.shawcable.net [24.69.153.203]) by mx.google.com with ESMTPS id 20sm5173444pzk.11.2010.03.02.14.10.16 (version=SSLv3 cipher=RC4-MD5); Tue, 02 Mar 2010 14:10:16 -0800 (PST) From: rick.tessner To: sup-talk In-reply-to: <1267557651-7110-2-git-send-email-bwalton@artsci.utoronto.ca> References: <1267557651-7110-2-git-send-email-bwalton@artsci.utoronto.ca> Date: Tue, 02 Mar 2010 14:10:15 -0800 Message-Id: <1267567699-sup-491@onnadayr.ca> User-Agent: Sup/git Subject: Re: [sup-talk] [PATCH] Remove use of Object tap method X-BeenThere: sup-talk@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: User & developer discussion of Sup List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-talk-bounces@rubyforge.org Errors-To: sup-talk-bounces@rubyforge.org Excerpts from Ben Walton's message of Tue Mar 02 11:20:51 -0800 2010: > Remove ruby 1.9-ism in buffer.rb. This keeps things running on older > ruby versions. What about adding a lib/sup/tap.rb that looks like this: unless Object.respond_to?(:tap) class Object def tap yield self self end end end and then adding a: require 'tap' to lib/sup.rb? 'tap' is a really handy little method that cleans up code nicely. :) -- Rick Tessner rick.tessner@gmail.com _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk