1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00

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
This commit is contained in:
Cheng-Lung Sung 2011-05-03 05:54:53 +00:00
parent e954de6f93
commit 225f66432b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=273539
4 changed files with 37 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,22 @@
# New ports collection makefile for: rubygem-rash
# Date created: May 03, 2011
# Whom: Cheng-Lung Sung <clsung@FreeBSD.org>
#
# $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 <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (rubygem/rash-0.3.0.gem) = 3103bffd808e276fb3bb902cfa65eda58e37bb2e12af7ce16ac89181dd346fc0
SIZE (rubygem/rash-0.3.0.gem) = 6656

View File

@ -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