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.)
Mk/**ruby.mk: Switch from USE_RUBY=yes to USES=ruby
Switch from Mk/bsd.ruby.mk to Mk/Uses/ruby.mk
Notable changes are.
- Mk/bsd.ruby.mk is moved to Mk/Uses/ruby.mk.
- USE_RUBY=yes is replaced with USES=ruby.
- USE_RUBY_EXTCONF is replaced with USES=ruby:extconf.
- USE_RUBY_RDOC is replaced with USES=ruby:rdoc.
- USE_RUBY_SETUP is replaces with USES=ruby:setup.
- RUBY_NO_BUILD_DEPENDS and RUBY_NO_RUN_DEPENDS are replaced with
USES=ruby:{build,none,run}.
- RUBY_REQUIRE isn't used anywhere, so removed.
- USES=gem now implies USES=ruby.
This is mainly the work of yasu@ at https://reviews.freebsd.org/D27863
I have just made some cosmetic changes and ran exp-run to test that the
tree is not in a BROKEN state.
Approved by: portmgr
Differential Revision: https://reviews.freebsd.org/D37925
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
devel: remove 'Created by' lines
A big Thank You to the original contributors of these ports:
* "Waitman Gobble" <uzimac@da3m0n8t3r.com>
* <jkoshy@FreeBSD.org>
* Aaron Dalton <aaron@FreeBSD.org>
* Aaron Dalton <aaron@daltons.ca>
* Aaron H. K. Diep <ahkdiep@gmail.com>
* Aaron Hurt <ahurt@anbcs.com>
* Abel Chow <abel_chow@yahoo.com>
* Adam McLaurin
* Adam Saponara <as@php.net>
* Adam Weinberger <adamw@FreeBSD.org>
* Ade Lovett <ade@FreeBSD.org>
(Only the first 15 lines of the commit message are shown above )
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