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 A25B3DC66 for ; Mon, 5 Nov 2012 16:31:23 +0000 (UTC) Received: (qmail 68607 invoked by uid 500); 5 Nov 2012 16:31:23 -0000 Delivered-To: apmail-deltacloud-dev-archive@deltacloud.apache.org Received: (qmail 68481 invoked by uid 500); 5 Nov 2012 16:31:22 -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 68443 invoked by uid 99); 5 Nov 2012 16:31:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Nov 2012 16:31:22 +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 (nike.apache.org: domain of mfojtik@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; Mon, 05 Nov 2012 16:31:14 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id qA5GUiHX022581 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 5 Nov 2012 11:30:44 -0500 Received: from boosh.local (vpn1-7-241.ams2.redhat.com [10.36.7.241]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id qA5GUWEL022982; Mon, 5 Nov 2012 11:30:36 -0500 Message-ID: <5097E9A7.8030200@redhat.com> Date: Mon, 05 Nov 2012 17:30:31 +0100 From: Michal Fojtik Organization: Red Hat Inc. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121016 Thunderbird/16.0.1 MIME-Version: 1.0 To: dev@deltacloud.apache.org Subject: Re: [PATCH core] Core: Added .to_hash method to all Deltacloud models References: <1352127859-15982-1-git-send-email-mfojtik@redhat.com> In-Reply-To: <1352127859-15982-1-git-send-email-mfojtik@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-Virus-Checked: Checked by ClamAV on apache.org On 11/05/2012 04:04 PM, mfojtik@redhat.com wrote: > From: Michal Fojtik > > * .to_hash produce Ruby Hash that can be converted to JSON > * This patch makes 'crack' library obsolete > * NOTE: This patch might break JSON backward compatibility. > Just FYI: This is just a 'work in progress' patch, I still need to write some tests to prove the JSON output produced using this way is the same as for all models. I will try to work this out this week. Please feel free to comment this patch, if you have any doubts or you see some minor bugs/incompatibilities or you're missing something in the JSON output. Thanks! -- Michal -- Michal Fojtik Deltacloud API, CloudForms