Return-Path: X-Original-To: apmail-incubator-deltacloud-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-deltacloud-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7A1549F40 for ; Fri, 18 Nov 2011 15:17:06 +0000 (UTC) Received: (qmail 47279 invoked by uid 500); 18 Nov 2011 15:17:03 -0000 Delivered-To: apmail-incubator-deltacloud-dev-archive@incubator.apache.org Received: (qmail 47262 invoked by uid 500); 18 Nov 2011 15:17:03 -0000 Mailing-List: contact deltacloud-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: deltacloud-dev@incubator.apache.org Delivered-To: mailing list deltacloud-dev@incubator.apache.org Received: (qmail 47219 invoked by uid 99); 18 Nov 2011 15:17:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Nov 2011 15:17:03 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of litong01@us.ibm.com designates 32.97.110.149 as permitted sender) Received: from [32.97.110.149] (HELO e31.co.us.ibm.com) (32.97.110.149) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Nov 2011 15:16:53 +0000 Received: from /spool/local by e31.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 18 Nov 2011 08:16:33 -0700 Received: from d03relay02.boulder.ibm.com ([9.17.195.227]) by e31.co.us.ibm.com ([192.168.1.131]) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 18 Nov 2011 08:16:29 -0700 Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by d03relay02.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id pAIFGKfR155144 for ; Fri, 18 Nov 2011 08:16:21 -0700 Received: from d03av02.boulder.ibm.com (loopback [127.0.0.1]) by d03av02.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id pAIFGKAB021911 for ; Fri, 18 Nov 2011 08:16:20 -0700 Received: from d03nm119.boulder.ibm.com (d03nm119.boulder.ibm.com [9.17.195.145]) by d03av02.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id pAIFGK8E021895 for ; Fri, 18 Nov 2011 08:16:20 -0700 In-Reply-To: <1321623153-12783-3-git-send-email-mfojtik@redhat.com> References: <1321623153-12783-1-git-send-email-mfojtik@redhat.com> <1321623153-12783-3-git-send-email-mfojtik@redhat.com> Subject: Re: [PATCH core 2/4] Core: Fixed .pluralize to deal with values like 'property' => 'properties' X-KeepSent: 28FBDBFD:526E08FA-8725794C:0053E227; type=4; name=$KeepSent To: deltacloud-dev@incubator.apache.org Cc: deltacloud-dev@incubator.apache.org X-Mailer: Lotus Notes Release 8.5.1FP5 SHF29 November 12, 2010 Message-ID: From: Tong Li Date: Fri, 18 Nov 2011 10:16:19 -0500 X-MIMETrack: Serialize by Router on D03NM119/03/M/IBM(Release 8.5.1FP2|March 17, 2010) at 11/18/2011 08:16:19 MIME-Version: 1.0 Content-type: multipart/alternative; Boundary="0__=08BBF3DFDFC064B78f9e8a93df938690918c08BBF3DFDFC064B7" Content-Disposition: inline x-cbid: 11111815-7282-0000-0000-000003EA1162 --0__=08BBF3DFDFC064B78f9e8a93df938690918c08BBF3DFDFC064B7 Content-type: text/plain; charset=US-ASCII OK Tong Li Emerging Technologies & Standards Building 501/B205 litong01@us.ibm.com mfojtik@redhat.com wrote on 11/18/2011 08:32:31 AM: > From: mfojtik@redhat.com > To: deltacloud-dev@incubator.apache.org > Date: 11/18/2011 08:32 AM > Subject: [PATCH core 2/4] Core: Fixed .pluralize to deal with values > like 'property' => 'properties' > > From: Michal Fojtik > > > Signed-off-by: Michal fojtik > --- > server/lib/deltacloud/core_ext/string.rb | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/server/lib/deltacloud/core_ext/string.rb b/server/lib/ > deltacloud/core_ext/string.rb > index 53b3984..de56c99 100644 > --- a/server/lib/deltacloud/core_ext/string.rb > +++ b/server/lib/deltacloud/core_ext/string.rb > @@ -34,6 +34,7 @@ class String > > def pluralize > return self + 'es' if self =~ /ess$/ > + return self[0, self.length-1] + "ies" if self =~ /ty$/ > self + "s" > end > > -- > 1.7.4.4 > --0__=08BBF3DFDFC064B78f9e8a93df938690918c08BBF3DFDFC064B7--