freebsd-ports/devel/rubygem-retryable/Makefile
Sunpoet Po-Chuan Hsieh f835bfeb78 - Add rubygem-retryable 2.0.0
Retryable uns a code block, and retries it when an exception occurs. It's great
when working with flakey webservices (for example).

It's configured using four optional parameters :tries, :on, :sleep, :matching,
:ensure, :exception_cb and runs the passed block. Should an exception occur,
it'll retry for (n-1) times.

Should the number of retries be reached without success, the last exception will
be raised.

WWW: https://github.com/nfedyashev/retryable
RG:  https://rubygems.org/gems/retryable
2015-01-05 17:35:58 +00:00

18 lines
325 B
Makefile

# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$
PORTNAME= retryable
PORTVERSION= 2.0.0
CATEGORIES= devel rubygems
MASTER_SITES= RG
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Allow for retrying of code blocks
LICENSE= MIT
USE_RUBY= yes
USE_RUBYGEMS= yes
RUBYGEM_AUTOPLIST= yes
.include <bsd.port.mk>