BSD Ports

devel/ruby-globalid 1.4.0 NetBSD

Reference models by URI

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
License
mit
Categories
devel, ruby
Package size
39.2 KiB, 114.7 KiB installed

Description

A Global ID is an app wide URI that uniquely identifies a model instance. This is helpful when you need a single identifier to reference different classes of objects. One example is job scheduling. We need to reference a model object rather than serialize the object itself. We can pass a Global ID that can be used to locate the model when it's time to perform the job. The job scheduler doesn't need to know the details of model naming and IDs, just that it has a global identifier that references a model. Another example is a drop-down list of options, consisting of both Users and Groups. Normally we'd need to come up with our own ad hoc scheme to reference them. With Global IDs, we have a universal identifier that works for objects of both classes.

Install

Binary package:

pkgin install ruby33-globalid

From pkgsrc:

cd /usr/pkgsrc/devel/ruby-globalid && 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.

RepositoryVersion
NetBSD 10.1 x86_641.4.0
NetBSD 10.1 aarch641.3.0
SmartOS / illumos x86_641.4.0
macOS 15 arm641.4.0

Dependencies

Run dependencies 2

Configuration

No options to configure.

Service scripts
none
Flavors
ruby34-globalid-1.4.0, ruby40-globalid-1.4.0