Return-Path: X-Original-To: apmail-deltacloud-dev-archive@www.apache.org Delivered-To: apmail-deltacloud-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A2D51940F for ; Thu, 8 Dec 2011 14:25:33 +0000 (UTC) Received: (qmail 79938 invoked by uid 500); 8 Dec 2011 14:25:33 -0000 Delivered-To: apmail-deltacloud-dev-archive@deltacloud.apache.org Received: (qmail 79914 invoked by uid 500); 8 Dec 2011 14:25:33 -0000 Mailing-List: contact dev-help@deltacloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@deltacloud.apache.org Delivered-To: mailing list dev@deltacloud.apache.org Received: (qmail 79906 invoked by uid 99); 8 Dec 2011 14:25:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Dec 2011 14:25:33 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of marios@redhat.com designates 209.132.183.28 as permitted sender) Received: from [209.132.183.28] (HELO mx1.redhat.com) (209.132.183.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Dec 2011 14:25:27 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id pB8EP6qG023977 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 8 Dec 2011 09:25:06 -0500 Received: from name.redhat.com (ovpn-112-21.ams2.redhat.com [10.36.112.21]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id pB8EOshd002099 for ; Thu, 8 Dec 2011 09:25:05 -0500 From: marios@redhat.com To: dev@deltacloud.apache.org Subject: [PATCH 4/4] Adds exception to String::pluralize for 'data' ("metadata".pluralize != "metadatas") Date: Thu, 8 Dec 2011 16:24:52 +0200 Message-Id: <1323354292-23210-5-git-send-email-marios@redhat.com> In-Reply-To: <1323354292-23210-1-git-send-email-marios@redhat.com> References: <1323354292-23210-1-git-send-email-marios@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 From: marios Signed-off-by: marios --- 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 de56c99..b3e2dbe 100644 --- a/server/lib/deltacloud/core_ext/string.rb +++ b/server/lib/deltacloud/core_ext/string.rb @@ -35,6 +35,7 @@ class String def pluralize return self + 'es' if self =~ /ess$/ return self[0, self.length-1] + "ies" if self =~ /ty$/ + return self if self =~ /data$/ self + "s" end -- 1.7.6.4