Import ruby-arrayfields 4.7.0

allow keyword access to array instances.  arrayfields works by adding
only a few methods to arrays, namely #fields= and fields, but the
#fields= method is hooked to extend an array on a per object basis.  in
otherwords __only__ those arrays whose fields are set will have
auto-magical keyword access bestowed on them - all other arrays remain
unaffected.  arrays with keyword access require much less memory when
compared to hashes/objects and yet still provide fast lookup and
preserve data order.
This commit is contained in:
jeremy 2010-12-20 17:32:49 +00:00
parent 127980ac4e
commit f36e8d1cb6
4 changed files with 58 additions and 0 deletions

View File

@ -0,0 +1,25 @@
# $OpenBSD: Makefile,v 1.1.1.1 2010/12/20 17:32:49 jeremy Exp $
COMMENT= allow keyword access to array instances
DISTNAME= arrayfields-4.7.0
CATEGORIES= devel
HOMEPAGE= http://codeforpeople.com/lib/ruby/arrayfields/
MAINTAINER= Jeremy Evans <jeremy@openbsd.org>
# Ruby license
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MODULES= lang/ruby
CONFIGURE_STYLE= ruby gem
do-regress:
@cd ${WRKBUILD} && ${RUBY} test/*.rb
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (arrayfields-4.7.0.gem) = tpOUIrxr5QBucguZ9fa7kA==
RMD160 (arrayfields-4.7.0.gem) = +lvcWlWiSXVlVSzMBOLS4bUGX+U=
SHA1 (arrayfields-4.7.0.gem) = dXZeF9wPT3CGDQERdx+OdCu2C4Q=
SHA256 (arrayfields-4.7.0.gem) = NXl+cXu6rWx8uxgk06/AjloF73BPJhOZeW9uWNlfgYM=
SIZE (arrayfields-4.7.0.gem) = 13312

View File

@ -0,0 +1,8 @@
allow keyword access to array instances. arrayfields works by adding
only a few methods to arrays, namely #fields= and fields, but the
#fields= method is hooked to extend an array on a per object basis. in
otherwords __only__ those arrays whose fields are set will have
auto-magical keyword access bestowed on them - all other arrays remain
unaffected. arrays with keyword access require much less memory when
compared to hashes/objects and yet still provide fast lookup and
preserve data order.

View File

@ -0,0 +1,20 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2010/12/20 17:32:49 jeremy Exp $
${GEM_LIB}/cache/${DISTNAME}.gem
${GEM_LIB}/gems/${DISTNAME}/
${GEM_LIB}/gems/${DISTNAME}/README
${GEM_LIB}/gems/${DISTNAME}/README.tmpl
${GEM_LIB}/gems/${DISTNAME}/gemspec.rb
${GEM_LIB}/gems/${DISTNAME}/gen_readme.rb
${GEM_LIB}/gems/${DISTNAME}/install.rb
${GEM_LIB}/gems/${DISTNAME}/lib/
${GEM_LIB}/gems/${DISTNAME}/lib/arrayfields.rb
${GEM_LIB}/gems/${DISTNAME}/sample/
${GEM_LIB}/gems/${DISTNAME}/sample/a.rb
${GEM_LIB}/gems/${DISTNAME}/sample/b.rb
${GEM_LIB}/gems/${DISTNAME}/sample/c.rb
${GEM_LIB}/gems/${DISTNAME}/sample/d.rb
${GEM_LIB}/gems/${DISTNAME}/sample/e.rb
${GEM_LIB}/gems/${DISTNAME}/test/
${GEM_LIB}/gems/${DISTNAME}/test/arrayfields.rb
${GEM_LIB}/gems/${DISTNAME}/test/memtest.rb
${GEM_LIB}/specifications/${DISTNAME}.gemspec