devel/ruby-fiber-storage 1.0.1 NetBSD
Provides a compatibility shim for fiber storage
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- License
- mit
- Categories
- devel, ruby
- Package size
- 12.9 KiB, 21.7 KiB installed
Description
Fiber::Storage
This gem provides a shim for Fiber.[], Fiber.[]=, Fiber#storage, Fiber#storage=, which was introduced in Ruby 3.2.
Motivation
Ruby 3.2 introduces inheritable fiber storage for per-request or per-operation state. This gem provides a shim for Ruby 3.1 and earlier to make adoption easier. It isn't able to provide the full range of features, but it should be sufficient for most use cases.
Notably, it does not support inheritance across threads or lazy Enumerator. This is a limitation of the shim implementation.
Install
Binary package:
pkgin install ruby33-fiber-storage
From pkgsrc:
cd /usr/pkgsrc/devel/ruby-fiber-storage && make install clean
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | Version |
|---|---|
| NetBSD 10.1 x86_64 | 1.0.1 |
| NetBSD 10.1 aarch64 | 1.0.1 |
| SmartOS / illumos x86_64 | 1.0.1 |
| macOS 15 arm64 | 1.0.1 |
Dependencies
Run dependencies 1
Required by 1
Configuration
No options to configure.
- Service scripts
- none
- Flavors
ruby34-fiber-storage-1.0.1,ruby40-fiber-storage-1.0.1