svn commit: r543725 - in head/devel: . rubygem-delegate
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Thu Jul 30 09:46:37 UTC 2020
Author: sunpoet
Date: Thu Jul 30 09:46:36 2020
New Revision: 543725
URL: https://svnweb.freebsd.org/changeset/ports/543725
Log:
Add rubygem-delegate 0.1.0
This library provides three different ways to delegate method calls to an
object. The easiest to use is SimpleDelegator. Pass an object to the constructor
and all methods supported by the object will be delegated. This object can be
changed later.
Going a step further, the top level DelegateClass method allows you to easily
setup delegation through class inheritance. This is considerably more flexible
and thus probably the most common use for this library.
Finally, if you need full control over the delegation scheme, you can inherit
from the abstract class Delegator and customize as needed. (If you find yourself
needing this control, have a look at Forwardable which is also in the standard
library. It may suit your needs better.)
WWW: https://github.com/ruby/delegate
Added:
head/devel/rubygem-delegate/
head/devel/rubygem-delegate/Makefile (contents, props changed)
head/devel/rubygem-delegate/distinfo (contents, props changed)
head/devel/rubygem-delegate/pkg-descr (contents, props changed)
Modified:
head/devel/Makefile
Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile Thu Jul 30 09:46:26 2020 (r543724)
+++ head/devel/Makefile Thu Jul 30 09:46:36 2020 (r543725)
@@ -5967,6 +5967,7 @@
SUBDIR += rubygem-delayed_job
SUBDIR += rubygem-delayer
SUBDIR += rubygem-delayer-deferred
+ SUBDIR += rubygem-delegate
SUBDIR += rubygem-deprecated
SUBDIR += rubygem-deprecated2
SUBDIR += rubygem-descendants_tracker
Added: head/devel/rubygem-delegate/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/rubygem-delegate/Makefile Thu Jul 30 09:46:36 2020 (r543725)
@@ -0,0 +1,20 @@
+# Created by: Po-Chuan Hsieh <sunpoet at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= delegate
+PORTVERSION= 0.1.0
+CATEGORIES= devel rubygems
+MASTER_SITES= RG
+
+MAINTAINER= sunpoet at FreeBSD.org
+COMMENT= Provide three abilities to delegate method calls to an object
+
+LICENSE= BSD2CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE.txt
+
+USES= gem
+USE_RUBY= yes
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
Added: head/devel/rubygem-delegate/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/rubygem-delegate/distinfo Thu Jul 30 09:46:36 2020 (r543725)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1595865761
+SHA256 (rubygem/delegate-0.1.0.gem) = e947092eb8ab05dd60629e393392d19918ddfadf4169d9417035ce2380bcd6ae
+SIZE (rubygem/delegate-0.1.0.gem) = 10240
Added: head/devel/rubygem-delegate/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/rubygem-delegate/pkg-descr Thu Jul 30 09:46:36 2020 (r543725)
@@ -0,0 +1,15 @@
+This library provides three different ways to delegate method calls to an
+object. The easiest to use is SimpleDelegator. Pass an object to the constructor
+and all methods supported by the object will be delegated. This object can be
+changed later.
+
+Going a step further, the top level DelegateClass method allows you to easily
+setup delegation through class inheritance. This is considerably more flexible
+and thus probably the most common use for this library.
+
+Finally, if you need full control over the delegation scheme, you can inherit
+from the abstract class Delegator and customize as needed. (If you find yourself
+needing this control, have a look at Forwardable which is also in the standard
+library. It may suit your needs better.)
+
+WWW: https://github.com/ruby/delegate
More information about the svn-ports-all
mailing list