Add p5-Hash-Objectify 0.008

Hash::Objectify turns a hash reference into a simple object with accessors for
each of the keys.

One application of this module could be to create lightweight response objects
without the extra work of setting up an entire response class with the framework
of your choice.

Using Hash::Objectify is slower than accessing the keys of the hash directly,
but does provide "typo protection" since a misspelled method is an error.

WWW: http://search.cpan.org/dist/Hash-Objectify/
This commit is contained in:
Sunpoet Po-Chuan Hsieh
2017-04-05 19:55:28 +00:00
parent 87100719d4
commit d9505b8dfa
5 changed files with 41 additions and 0 deletions

View File

@@ -2547,6 +2547,7 @@
SUBDIR += p5-Hash-MultiKey
SUBDIR += p5-Hash-MultiValue
SUBDIR += p5-Hash-NoRef
SUBDIR += p5-Hash-Objectify
SUBDIR += p5-Hash-Slice
SUBDIR += p5-Hash-Union
SUBDIR += p5-Hash-Util-FieldHash-Compat

View File

@@ -0,0 +1,24 @@
# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$
PORTNAME= Hash-Objectify
PORTVERSION= 0.008
CATEGORIES= devel perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Create objects from hashes on the fly
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= p5-Class-XSAccessor>=0:devel/p5-Class-XSAccessor
RUN_DEPENDS:= ${BUILD_DEPENDS}
TEST_DEPENDS= p5-Test-Fatal>=0:devel/p5-Test-Fatal
NO_ARCH= yes
USES= perl5
USE_PERL5= configure
.include <bsd.port.mk>

View File

@@ -0,0 +1,3 @@
TIMESTAMP = 1491407096
SHA256 (Hash-Objectify-0.008.tar.gz) = 236d5829cdebf3ba648d34e1295cd9099a20506d8d0284668e617e0058cebeed
SIZE (Hash-Objectify-0.008.tar.gz) = 17750

View File

@@ -0,0 +1,11 @@
Hash::Objectify turns a hash reference into a simple object with accessors for
each of the keys.
One application of this module could be to create lightweight response objects
without the extra work of setting up an entire response class with the framework
of your choice.
Using Hash::Objectify is slower than accessing the keys of the hash directly,
but does provide "typo protection" since a misspelled method is an error.
WWW: http://search.cpan.org/dist/Hash-Objectify/

View File

@@ -0,0 +1,2 @@
%%SITE_PERL%%/Hash/Objectify.pm
%%PERL5_MAN3%%/Hash::Objectify.3.gz