From 225f66432b813adc455cf1d33f31ab049789dffb Mon Sep 17 00:00:00 2001 From: Cheng-Lung Sung Date: Tue, 3 May 2011 05:54:53 +0000 Subject: [PATCH] Rash is an extension to Hashie Rash subclasses Hashie::Mash to convert all keys in the hash to underscore. The purpose of this is when working w/ Java (or any other apis) that return hashes (including nested) that have camelCased keys You will now be able to access those keys through underscored key names (camelCase still available). WWW: http://github.com/tcocca/rash --- devel/Makefile | 1 + devel/rubygem-rash/Makefile | 22 ++++++++++++++++++++++ devel/rubygem-rash/distinfo | 2 ++ devel/rubygem-rash/pkg-descr | 12 ++++++++++++ 4 files changed, 37 insertions(+) create mode 100644 devel/rubygem-rash/Makefile create mode 100644 devel/rubygem-rash/distinfo create mode 100644 devel/rubygem-rash/pkg-descr diff --git a/devel/Makefile b/devel/Makefile index 1cbcee7ffc5a..20e1ccce1960 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -3237,6 +3237,7 @@ SUBDIR += rubygem-rake SUBDIR += rubygem-rapt SUBDIR += rubygem-rascut + SUBDIR += rubygem-rash SUBDIR += rubygem-rcov SUBDIR += rubygem-rgl SUBDIR += rubygem-rparsec diff --git a/devel/rubygem-rash/Makefile b/devel/rubygem-rash/Makefile new file mode 100644 index 000000000000..36f9e471a740 --- /dev/null +++ b/devel/rubygem-rash/Makefile @@ -0,0 +1,22 @@ +# New ports collection makefile for: rubygem-rash +# Date created: May 03, 2011 +# Whom: Cheng-Lung Sung +# +# $FreeBSD$ +# + +PORTNAME= rash +PORTVERSION= 0.3.0 +CATEGORIES= devel rubygems +MASTER_SITES= RG + +MAINTAINER= clsung@FreeBSD.org +COMMENT= Simple extension to Hashie::Mash for rubyified keys + +RUN_DEPENDS= rubygem-hashie>=1.0.0:${PORTSDIR}/devel/rubygem-hashie + +USE_RUBY= yes +USE_RUBYGEMS= yes +RUBYGEM_AUTOPLIST=yes + +.include diff --git a/devel/rubygem-rash/distinfo b/devel/rubygem-rash/distinfo new file mode 100644 index 000000000000..a07ac42cdac1 --- /dev/null +++ b/devel/rubygem-rash/distinfo @@ -0,0 +1,2 @@ +SHA256 (rubygem/rash-0.3.0.gem) = 3103bffd808e276fb3bb902cfa65eda58e37bb2e12af7ce16ac89181dd346fc0 +SIZE (rubygem/rash-0.3.0.gem) = 6656 diff --git a/devel/rubygem-rash/pkg-descr b/devel/rubygem-rash/pkg-descr new file mode 100644 index 000000000000..b52d629db291 --- /dev/null +++ b/devel/rubygem-rash/pkg-descr @@ -0,0 +1,12 @@ +Rash is an extension to Hashie + +Rash subclasses Hashie::Mash to convert all keys in the hash +to underscore. + +The purpose of this is when working w/ Java (or any other apis) +that return hashes (including nested) that have camelCased keys + +You will now be able to access those keys through underscored +key names (camelCase still available). + +WWW: http://github.com/tcocca/rash