aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2015-01-06 01:35:58 +0800
committersunpoet <sunpoet@FreeBSD.org>2015-01-06 01:35:58 +0800
commite46e746021de72912f4d7ad2160974085ec0d61c (patch)
treeb4b5335568e0f6bd7c0e6ed10afb11c22d4ff998 /devel
parente844a1f699d61e8d5e0f0df165038b965066720a (diff)
downloadfreebsd-ports-gnome-e46e746021de72912f4d7ad2160974085ec0d61c.tar.gz
freebsd-ports-gnome-e46e746021de72912f4d7ad2160974085ec0d61c.tar.zst
freebsd-ports-gnome-e46e746021de72912f4d7ad2160974085ec0d61c.zip
- 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
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/rubygem-retryable/Makefile18
-rw-r--r--devel/rubygem-retryable/distinfo2
-rw-r--r--devel/rubygem-retryable/pkg-descr12
4 files changed, 33 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 0bf74ca877af..48e3514b9e5f 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4552,6 +4552,7 @@
SUBDIR += rubygem-ref
SUBDIR += rubygem-request_store
SUBDIR += rubygem-require_all
+ SUBDIR += rubygem-retryable
SUBDIR += rubygem-rgl
SUBDIR += rubygem-rr
SUBDIR += rubygem-rrd-ffi
diff --git a/devel/rubygem-retryable/Makefile b/devel/rubygem-retryable/Makefile
new file mode 100644
index 000000000000..0756cb540303
--- /dev/null
+++ b/devel/rubygem-retryable/Makefile
@@ -0,0 +1,18 @@
+# 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>
diff --git a/devel/rubygem-retryable/distinfo b/devel/rubygem-retryable/distinfo
new file mode 100644
index 000000000000..4bd1bbc3539f
--- /dev/null
+++ b/devel/rubygem-retryable/distinfo
@@ -0,0 +1,2 @@
+SHA256 (rubygem/retryable-2.0.0.gem) = f4b25b0d7d658bb0b67a59dd4dbd89443e99688fe7d135849303c51384bef315
+SIZE (rubygem/retryable-2.0.0.gem) = 8704
diff --git a/devel/rubygem-retryable/pkg-descr b/devel/rubygem-retryable/pkg-descr
new file mode 100644
index 000000000000..ee0441ce0189
--- /dev/null
+++ b/devel/rubygem-retryable/pkg-descr
@@ -0,0 +1,12 @@
+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