Date: Thu, 16 May 2024 06:29:33 GMT From: Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 8d3d94495004 - main - devel/rubygem-thread-local: Add rubygem-thread-local 1.1.0 Message-ID: <202405160629.44G6TXii032342@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=8d3d94495004e8ef85dec4b88353dd5edbf60305 commit 8d3d94495004e8ef85dec4b88353dd5edbf60305 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2024-05-16 06:13:42 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2024-05-16 06:21:50 +0000 devel/rubygem-thread-local: Add rubygem-thread-local 1.1.0 Thread::Local provides a simple high level interface for per-class thread locals. Implements a standard interface for "shared global state". It avoids reinventing thread-local semantics in your own code by using this implementation. Features: - Convert global state to thread local state easily. - Avoid race conditions and data corruption. - Provides a standard interface for policy driven design. --- devel/Makefile | 1 + devel/rubygem-thread-local/Makefile | 16 ++++++++++++++++ devel/rubygem-thread-local/distinfo | 3 +++ devel/rubygem-thread-local/pkg-descr | 9 +++++++++ 4 files changed, 29 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 1e37b5b9ba7b..f8795fcf4e26 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -7618,6 +7618,7 @@ SUBDIR += rubygem-thor SUBDIR += rubygem-thor0 SUBDIR += rubygem-thor12 + SUBDIR += rubygem-thread-local SUBDIR += rubygem-thread_safe SUBDIR += rubygem-thrift SUBDIR += rubygem-thwait diff --git a/devel/rubygem-thread-local/Makefile b/devel/rubygem-thread-local/Makefile new file mode 100644 index 000000000000..810488ed5e85 --- /dev/null +++ b/devel/rubygem-thread-local/Makefile @@ -0,0 +1,16 @@ +PORTNAME= thread-local +PORTVERSION= 1.1.0 +CATEGORIES= devel rubygems +MASTER_SITES= RG + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Provide a class-level mixin to make thread local state easy +WWW= https://github.com/socketry/thread-local + +LICENSE= MIT + +USES= gem + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/devel/rubygem-thread-local/distinfo b/devel/rubygem-thread-local/distinfo new file mode 100644 index 000000000000..f6196375eb76 --- /dev/null +++ b/devel/rubygem-thread-local/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1714227814 +SHA256 (rubygem/thread-local-1.1.0.gem) = 2fb568d31f0ef278063f45a3923c5ed62ee5c33da8134103bc7d2ecdb87bd2e7 +SIZE (rubygem/thread-local-1.1.0.gem) = 6144 diff --git a/devel/rubygem-thread-local/pkg-descr b/devel/rubygem-thread-local/pkg-descr new file mode 100644 index 000000000000..094aa784cd7f --- /dev/null +++ b/devel/rubygem-thread-local/pkg-descr @@ -0,0 +1,9 @@ +Thread::Local provides a simple high level interface for per-class thread +locals. Implements a standard interface for "shared global state". It avoids +reinventing thread-local semantics in your own code by using this +implementation. + +Features: +- Convert global state to thread local state easily. +- Avoid race conditions and data corruption. +- Provides a standard interface for policy driven design.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202405160629.44G6TXii032342>